mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Hand off library & include information from the menu to configure properly.
No response from: maintainer
This commit is contained in:
parent
7896b483a6
commit
934f51c421
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58233
@ -17,8 +17,6 @@ MAINTAINER= lance@evitel.net
|
||||
USE_SUBMAKE= yes
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-include-path="${LOCALBASE}/include/" \
|
||||
--with-lib-path="${LOCALBASE}/lib/"
|
||||
|
||||
MAN1= radgrep.1 radlast.1 raduse.1 radwho.1
|
||||
MAN8= builddbm.8 radctl.8 radiusd.8 radping.8 radzap.8
|
||||
@ -29,7 +27,10 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
||||
|
||||
STARTUP_FILE= ${PREFIX}/etc/rc.d/gnu-radius.sh
|
||||
|
||||
.if !defined(BATCH)
|
||||
.if defined(BATCH)
|
||||
CONFIGURE_ARGS+=--with-include-path="${LOCALBASE}/include/" \
|
||||
--with-lib-path="${LOCALBASE}/lib/"
|
||||
.else
|
||||
post-fetch:
|
||||
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
|
||||
.endif
|
||||
|
10
net/gnu-radius/scripts/configure
vendored
10
net/gnu-radius/scripts/configure
vendored
@ -40,6 +40,9 @@ fi
|
||||
|
||||
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
||||
|
||||
INCLUDE_PATH=${LOCALBASE}/include/
|
||||
LIB_PATH=${LOCALBASE}/lib/
|
||||
|
||||
while [ "$1" ]; do
|
||||
case $1 in
|
||||
\"Client\")
|
||||
@ -52,12 +55,12 @@ while [ "$1" ]; do
|
||||
\"MySQL\")
|
||||
echo "LIB_DEPENDS+= mysqlclient.10:\${PORTSDIR}/databases/mysql323-client:install"
|
||||
echo "CONFIGURE_ARGS+= --with-mysql"
|
||||
echo "CONFIGURE_ARGS+= --with-lib-path=${LOCALBASE}/lib/mysql/"
|
||||
LIB_PATH="$LIB_PATH:${LOCALBASE}/lib/mysql/"
|
||||
;;
|
||||
\"PostgreSQL\")
|
||||
echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7:install"
|
||||
echo "CONFIGURE_ARGS+= --with-postgres"
|
||||
echo "CONFIGURE_ARGS+= --with-include-path=${LOCALBASE}/include/pgsql/"
|
||||
INCLUDE_PATH="$INCLUDE_PATH:${LOCALBASE}/include/pgsql/"
|
||||
;;
|
||||
\"SNMP\")
|
||||
echo "CONFIGURE_ARGS+= --enable-snmp"
|
||||
@ -74,6 +77,9 @@ while [ "$1" ]; do
|
||||
shift
|
||||
done
|
||||
|
||||
echo "CONFIGURE_ARGS+= --with-include-path=\"$INCLUDE_PATH\""
|
||||
echo "CONFIGURE_ARGS+= --with-lib-path=\"$LIB_PATH\""
|
||||
|
||||
if [ -z $GUILE ]; then
|
||||
echo "CONFIGURE_ARGS+= --without-guile"
|
||||
echo ${PLIST}
|
||||
|
Loading…
Reference in New Issue
Block a user