Install a pkgconfig file for libxbps.

This commit is contained in:
Juan RP
2012-01-17 17:26:18 +01:00
parent d0e1477eeb
commit 834344a1af
6 changed files with 45 additions and 1 deletions

23
data/Makefile Normal file
View File

@@ -0,0 +1,23 @@
-include ../config.mk
VERSION = 0.12
PCFILE = libxbps.pc
.PHONY: all
all:
sed -e "s|@@VERSION@@|${VERSION}|g;s|@@PREFIX@@|${PREFIX}|g" \
${PCFILE}.in > ${PCFILE}
.PHONY: install
install:
install -d $(DESTDIR)$(PKGCONFIGDIR)
install -m644 $(PCFILE) $(DESTDIR)$(PKGCONFIGDIR)
.PHONY: uninstall
uninstall:
-rm -f $(DESTDIR)$(PKGCONFIGDIR)/$(PCFILE)
.PHONY: clean
clean:
-rm -f $(PCFILE)

10
data/libxbps.pc.in Normal file
View File

@@ -0,0 +1,10 @@
prefix=@@PREFIX@@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: XBPS API Library
Description: The X Binary Package System library
Version: @@VERSION@@
Libs: -lprop -lxbps
Cflags: -I${includedir} -L${libdir}