From a0509bf263f8d34958aea83be48ca42665fdbb30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 29 Sep 2022 11:17:56 +0800 Subject: pkg conf file --- .gitignore | 2 +- Makefile.am | 2 ++ configure.ac | 9 ++++----- pikul.pc.in | 11 +++++++++++ 4 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 pikul.pc.in 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 -- cgit v1.2.3