configure: add --exec-prefix and fix pkgconfig file paths.

This commit is contained in:
Juan RP
2012-01-18 11:28:55 +01:00
parent dfc7ff4232
commit 9147488b19
3 changed files with 21 additions and 13 deletions

View File

@@ -5,7 +5,9 @@ PCFILE = libxbps.pc
.PHONY: all
all:
sed -e "s|@@VERSION@@|${VERSION}|g;s|@@PREFIX@@|${PREFIX}|g" \
sed -e "s|@@VERSION@@|${VERSION}|g" \
-e "s|@@PREFIX@@|${PREFIX}|g" \
-e "s|@@EPREFIX@@|${EPREFIX}|g" \
${PCFILE}.in > ${PCFILE}
.PHONY: install

View File

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