configure: add --exec-prefix and fix pkgconfig file paths.
This commit is contained in:
parent
dfc7ff4232
commit
9147488b19
22
configure
vendored
22
configure
vendored
@ -28,13 +28,14 @@ an installation prefix other than \`/usr/local' using \`--prefix',
|
||||
for instance \`--prefix=\$HOME'.
|
||||
|
||||
--prefix=DIR install architecture-independent files in PREFIX
|
||||
--exec-prefix=DIR install architecture-dependent files in EPREFIX
|
||||
--sbindir=DIR system admin executables [PREFIX/sbin]
|
||||
--libdir=DIR object code libraries [PREFIX/lib]
|
||||
--includedir=DIR C header files [PREFIX/include]
|
||||
--mandir=DIR man documentation [PREFIX/share/man]
|
||||
--datadir=DIR read-only architecture-independent data [PREFIX/share]
|
||||
--includedir=DIR C header files [EPREFIX/include]
|
||||
--mandir=DIR man documentation [EPREFIX/share/man]
|
||||
--datadir=DIR read-only architecture-independent data [EPREFIX/share]
|
||||
--etcdir=DIR configuration files [PREFIX/etc]
|
||||
--pkgconfigdir=DIR pkg-config directory [PREFIX/lib/pkgconfig]
|
||||
--pkgconfigdir=DIR pkg-config directory [EPREFIX/lib/pkgconfig]
|
||||
|
||||
--debug Build with debugging code and symbols
|
||||
--verbose Disable silent build to see compilation details
|
||||
@ -51,6 +52,7 @@ for x; do
|
||||
case "$opt" in
|
||||
--debug) DEBUG=yes;;
|
||||
--prefix) PREFIX=$var;;
|
||||
--exec-prefix) EPREFIX=$var;;
|
||||
--sbindir) SBINDIR=$var;;
|
||||
--mandir) MANDIR=$var;;
|
||||
--datadir) SHAREDIR=$var;;
|
||||
@ -73,12 +75,13 @@ done
|
||||
: ${SED:=sed}
|
||||
|
||||
: ${PREFIX:=/usr/local}
|
||||
: ${EPREFIX:=${PREFIX}}
|
||||
: ${SYSCONFDIR:=${PREFIX}/etc}
|
||||
: ${SBINDIR:=${PREFIX}/sbin}
|
||||
: ${LIBDIR:=${PREFIX}/lib}
|
||||
: ${SHAREDIR:=${PREFIX}/share}
|
||||
: ${MANDIR:=${PREFIX}/share/man}
|
||||
: ${INCLUDEDIR:=${PREFIX}/include}
|
||||
: ${LIBDIR:=${EPREFIX}/lib}
|
||||
: ${SHAREDIR:=${EPREFIX}/share}
|
||||
: ${MANDIR:=${EPREFIX}/share/man}
|
||||
: ${INCLUDEDIR:=${EPREFIX}/include}
|
||||
: ${ETCDIR:=${PREFIX}/etc}
|
||||
: ${PKGCONFIGDIR:=${LIBDIR}/pkgconfig}
|
||||
: ${TOPDIR:=..}
|
||||
@ -134,6 +137,7 @@ echo "/* $OS */" >$CONFIG_H
|
||||
|
||||
echo "TOPDIR ?= $TOPDIR" >>$CONFIG_MK
|
||||
echo "PREFIX ?= $PREFIX" >>$CONFIG_MK
|
||||
echo "EPREFIX ?= $EPREFIX" >>$CONFIG_MK
|
||||
echo "SBINDIR ?= $SBINDIR" >>$CONFIG_MK
|
||||
echo "INCLUDEDIR ?= $INCLUDEDIR" >>$CONFIG_MK
|
||||
echo "LIBDIR ?= $LIBDIR" >>$CONFIG_MK
|
||||
@ -596,6 +600,8 @@ fi
|
||||
echo
|
||||
echo " XBPS has been configured with the following options:"
|
||||
echo
|
||||
echo " PREFIX = $PREFIX"
|
||||
echo " EPREFIX = $EPREFIX"
|
||||
echo " SBINDIR = $SBINDIR"
|
||||
echo " LIBDIR = $LIBDIR"
|
||||
echo " INCLUDEDIR = $INCLUDEDIR"
|
||||
|
@ -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
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user