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

1
.gitignore vendored
View File

@ -12,6 +12,7 @@ bin/xbps-dgraph/xbps-dgraph
*.a
*.xml
*.png
*.pc
api/
doc/xbps_api_doxyfile
ftperr.h

View File

@ -1,6 +1,6 @@
-include config.mk
SUBDIRS = include lib bin etc
SUBDIRS = include lib bin etc data
ifdef BUILD_API_DOCS
SUBDIRS += doc

8
NEWS
View File

@ -1,5 +1,13 @@
xbps-0.12.0 (???):
* Added a pkg-config file to simplify writing code with libxbps.
* libxbps: improved support for finding newest package versions available
in repository pool.
* libxbps: added support for finding exact package name/version matches
in repository pool.
* Fixed registering repositories with trailing '/' chars in
configuration file: xbps.conf.

2
configure vendored
View File

@ -78,6 +78,7 @@ done
: ${MANDIR:=${PREFIX}/share/man}
: ${INCLUDEDIR:=${PREFIX}/include}
: ${ETCDIR:=${PREFIX}/etc}
: ${PKGCONFIGDIR:=${LIBDIR}/pkgconfig}
: ${TOPDIR:=..}
_which()
@ -136,6 +137,7 @@ echo "INCLUDEDIR ?= $INCLUDEDIR" >>$CONFIG_MK
echo "LIBDIR ?= $LIBDIR" >>$CONFIG_MK
echo "MANDIR ?= $MANDIR" >>$CONFIG_MK
echo "SHAREDIR ?= $SHAREDIR" >>$CONFIG_MK
echo "PKGCONFIGDIR ?= $PKGCONFIGDIR" >>$CONFIG_MK
ETCDIR="${ETCDIR}/xbps"
echo "ETCDIR ?= $ETCDIR" >>$CONFIG_MK

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}