diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | midtrans.pc.in | 11 |
3 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 2e1e5d4..11ebf5a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,3 +7,5 @@ if IOS libmidtrans_la_LDFLAGS += -static endif include_HEADERS = midtrans.h +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = midtrans.pc diff --git a/configure.ac b/configure.ac index 06c015f..0e5400c 100644 --- a/configure.ac +++ b/configure.ac @@ -16,6 +16,6 @@ AC_FUNC_MALLOC AC_FUNC_REALLOC AC_TYPE_SIZE_T AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile midtrans.pc]) AC_CONFIG_MACRO_DIRS([m4]) AC_OUTPUT diff --git a/midtrans.pc.in b/midtrans.pc.in new file mode 100644 index 0000000..5d7fa27 --- /dev/null +++ b/midtrans.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: @PACKAGE_NAME@ +Version: @PACKAGE_VERSION@ +Description: Cross-platform library for accessing Midtrans API +URL: http://darapsa.org/?p=libmidtrans.git +Cflags: -I${includedir} +Libs: -L${libdir} -l@PACKAGE_NAME@ -ljson-c -lcurl -lz -lcrypto -lssl |