mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
Make the module build honor the APXS variable.
PR: ports/79810 Noticed by: Jeremy Reed <reed@reedmedia.net>
This commit is contained in:
parent
d44a718b6e
commit
72a520f063
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134407
@ -20,8 +20,6 @@ PERL_CONFIGURE= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
APXS?= ${LOCALBASE}/sbin/apxs
|
||||
|
||||
# define WITHOUT_APACHE to prevent mod_speedycgi from being built even if Apache is installed
|
||||
|
||||
.if !exists(${APXS}) || defined(WITHOUT_APACHE)
|
||||
@ -40,6 +38,12 @@ AP_LIBEXEC?= ${PREFIX}/libexec/apache
|
||||
PLIST_SUB+= AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///}
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${PERL} -pi -e 's,apxs -q,${APXS} -q,;' \
|
||||
${WRKSRC}/src/SpeedyMake.pl
|
||||
@${PERL} -pi -e 's,APXS=apxs,APXS=${APXS},;' \
|
||||
${WRKSRC}/mod_speedycgi/Makefile.tmpl
|
||||
|
||||
post-configure:
|
||||
@${PERL} -pi -e 's,^PREFIX = /usr$$,PREFIX = ${PREFIX},g;' \
|
||||
${WRKSRC}/Makefile ${WRKSRC}/*/Makefile
|
||||
|
Loading…
Reference in New Issue
Block a user