diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-29 11:17:56 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-29 11:17:56 +0800 |
commit | a0509bf263f8d34958aea83be48ca42665fdbb30 (patch) | |
tree | 2b0a285f0aaeac22dab8fefe08fb74f9d9ad8587 | |
parent | 05b8435ac9cd0c3c762375484281bf20bd21a648 (diff) |
pkg conf file
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 9 | ||||
-rw-r--r-- | pikul.pc.in | 11 |
4 files changed, 18 insertions, 6 deletions
@@ -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 |