1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Add AP_EXTRA to support extra arguments to apxs during build.

AP_INC and AP_LIB were added.

Reminded by: mod_vdbh port
This commit is contained in:
Clement Laforet 2004-04-16 14:07:16 +00:00
parent 9659b8cfc9
commit 291e472f16
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107228
2 changed files with 16 additions and 2 deletions

View File

@ -72,6 +72,13 @@ PLIST_SUB+= AP_MODULE="${MODULENAME}.so"
PLIST?= ${WRKDIR}/ap-plist
.endif
.if defined(AP_INC)
AP_EXTRAS+= -I ${AP_INC}
.endif
.if defined(AP_LIB)
AP_EXTRAS+= -L ${AP_LIB}
.endif
.if defined(AP_FAST_BUILD)
ap-gen-plist:
@ -84,7 +91,7 @@ ap-gen-plist:
@${DO_NADA}
.endif
do-build: ap-gen-plist
@cd ${WRKSRC} && ${APXS} -c -o ${MODULENAME}.${AP_BUILDEXT} ${SRC_FILE}
@cd ${WRKSRC} && ${APXS} -c ${AP_EXTRAS} -o ${MODULENAME}.${AP_BUILDEXT} ${SRC_FILE}
do-install:
@${APXS} -i -a -n ${SHORTMODNAME} ${WRKSRC}/${MODULENAME}.${AP_BUILDEXT}

View File

@ -72,6 +72,13 @@ PLIST_SUB+= AP_MODULE="${MODULENAME}.so"
PLIST?= ${WRKDIR}/ap-plist
.endif
.if defined(AP_INC)
AP_EXTRAS+= -I ${AP_INC}
.endif
.if defined(AP_LIB)
AP_EXTRAS+= -L ${AP_LIB}
.endif
.if defined(AP_FAST_BUILD)
ap-gen-plist:
@ -84,7 +91,7 @@ ap-gen-plist:
@${DO_NADA}
.endif
do-build: ap-gen-plist
@cd ${WRKSRC} && ${APXS} -c -o ${MODULENAME}.${AP_BUILDEXT} ${SRC_FILE}
@cd ${WRKSRC} && ${APXS} -c ${AP_EXTRAS} -o ${MODULENAME}.${AP_BUILDEXT} ${SRC_FILE}
do-install:
@${APXS} -i -a -n ${SHORTMODNAME} ${WRKSRC}/${MODULENAME}.${AP_BUILDEXT}