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:
parent
9659b8cfc9
commit
291e472f16
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107228
@ -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}
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user