diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | shopify.pc.in | 10 |
3 files changed, 14 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 7bbe76c..a185925 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,3 +2,5 @@ lib_LTLIBRARIES = libshopify.la libshopify_la_SOURCES = shopify.c libshopify_la_CPPFLAGS = $(DEPS_CFLAGS) include_HEADERS = shopify.h +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = shopify.pc diff --git a/configure.ac b/configure.ac index 7901596..aa2530f 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([libshopify], [0.0], [erik@darapsa.co.id]) +AC_INIT([shopify], [0.0], [erik@darapsa.co.id]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PROG_CC AM_PROG_AR @@ -11,5 +11,5 @@ AC_CHECK_FUNCS([strrchr]) AC_FUNC_MALLOC AC_FUNC_REALLOC AC_TYPE_SIZE_T -AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile shopify.pc]) AC_OUTPUT diff --git a/shopify.pc.in b/shopify.pc.in new file mode 100644 index 0000000..0f51563 --- /dev/null +++ b/shopify.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: @PACKAGE_NAME@ +Version: @PACKAGE_VERSION@ +Description: Shopify Admin API Library for C +URL: http://darapsa.org/?p=libshopify.git +Cflags: -I${includedir} +Libs: -L${libdir} -l@PACKAGE_NAME@ -lmicrohttpd -lgcrypt -lgnutls -lpcre2-8 -lcurl -ljson-c |