Skip to content

Commit

Permalink
Merge pull request #35 from rezso/master
Browse files Browse the repository at this point in the history
Add .pc file
  • Loading branch information
Yeraze authored Feb 25, 2017
2 parents 9d32c6c + 8d62cd7 commit 73ef200
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Makefile
ytnef/Makefile
ytnefprint/Makefile
lib/Makefile
lib/libytnef.pc
test-data/Makefile
])

Expand Down
3 changes: 3 additions & 0 deletions lib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ nobase_include_HEADERS = \
mapi.h mapidefs.h mapitags.h \
tnef-types.h tnef-errors.h

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libytnef.pc

EXTRA_DIST = libytnef.spec
2 changes: 1 addition & 1 deletion lib/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ AC_C_BIGENDIAN
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset])

AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([Makefile libytnef.pc])
AC_OUTPUT
AC_OUTPUT(libytnef.spec)
11 changes: 11 additions & 0 deletions lib/libytnef.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: libytnef
Description: Yerase's TNEF Stream Reader library
URL: https://github.com/Yeraze/ytnef
Version: @VERSION@
Libs: -L${libdir} -lytnef
Cflags: -I${includedir}

0 comments on commit 73ef200

Please sign in to comment.