summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac9
-rw-r--r--pikul.pc.in11
4 files changed, 18 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index c82f506..6480da2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,7 +4,7 @@
*.bs
*.o
*.old
-*.p*
+*.pm
*.swp
aclocal.m4
ar-lib
diff --git a/Makefile.am b/Makefile.am
index ff1a123..c520137 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,3 +4,5 @@ libpikul_la_SOURCES = pikul.c \
libpikul_la_CPPFLAGS = $(DEPS_CFLAGS)
libpikul_la_LDFLAGS = $(DEPS_LIBS)
include_HEADERS = pikul.h
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = pikul.pc
diff --git a/configure.ac b/configure.ac
index 5dbace7..deb9048 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,14 +1,13 @@
-AC_INIT([pikul], [0.0], [pt@darapsa.co.id])
+AC_INIT([pikul], [0.0], [prabowo@darapsa.org])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC
AM_PROG_AR
LT_INIT
PKG_CHECK_MODULES([DEPS], [libcurl json-c])
-AC_TYPE_SIZE_T
AC_C_INLINE
+AC_CHECK_FUNCS([memset])
AC_FUNC_MALLOC
AC_FUNC_REALLOC
-AC_CHECK_FUNCS([memset])
-AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([Makefile])
+AC_TYPE_SIZE_T
+AC_CONFIG_FILES([Makefile pikul.pc])
AC_OUTPUT
diff --git a/pikul.pc.in b/pikul.pc.in
new file mode 100644
index 0000000..26b348e
--- /dev/null
+++ b/pikul.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: @PACKAGE_NAME@
+Version: @PACKAGE_VERSION@
+Description: C library generalising APIs from multi shipping providers
+URL: http://darapsa.org/?p=libpikul.git
+Cflags: -I${includedir}
+Libs: -L${libdir} -l@PACKAGE_NAME@ -lcurl -ljson-c