mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- add stage support
This commit is contained in:
parent
a1d47aac42
commit
37bd565d71
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347676
@ -14,7 +14,6 @@ LICENSE= APACHE20
|
||||
|
||||
MANUAL_PACKAGE_BUILD= needs apr and apache with DBD options enabled
|
||||
|
||||
|
||||
USE_APACHE= 22+
|
||||
UNIQUENAME= ${PORTNAME}
|
||||
|
||||
@ -28,7 +27,6 @@ OPTIONS_DEFAULT= PHP_MODULE
|
||||
PHP_MODULE_DESC= Enable PHP
|
||||
DEBUG_MODULE_DESC= Enable debugging
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MDEBUG_MODULE}
|
||||
@ -39,24 +37,26 @@ STRIP= # keep debug information
|
||||
.if ${PORT_OPTIONS:MPHP_MODULE}
|
||||
MAKE_ENV+= WITH_PHP=true
|
||||
USE_PHP= yes
|
||||
USE_PHP_MOD= yes
|
||||
WANT_PHP_MOD= yes
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
pre-patch:
|
||||
@${REINPLACE_CMD} -e "s|= apxs|= ${APXS}|" \
|
||||
-e "s|= rm|= ${RM}|" -e "s|= ln|= ${LN}|" \
|
||||
-e "s|= cp|= ${CP}|" ${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
@cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
|
||||
.endif
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|@APXS_STAGE@|-S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR}|' \
|
||||
${WRKSRC}/Makefile
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
pre-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- ./Makefile.orig 2012-04-06 15:11:08.000000000 +0200
|
||||
+++ ./Makefile 2012-04-06 15:11:27.000000000 +0200
|
||||
@@ -16,8 +16,12 @@
|
||||
--- ./Makefile.orig 2014-03-09 18:49:26.000000000 +0100
|
||||
+++ ./Makefile 2014-03-09 18:51:04.000000000 +0100
|
||||
@@ -16,10 +16,15 @@
|
||||
CP = /bin/cp -f
|
||||
|
||||
CFLAGS = -Wc,-W -Wc,-Wall
|
||||
@ -12,15 +12,18 @@
|
||||
+.endif
|
||||
#CFLAGS+= -DWITH_PHP -DWITH_UID_GID -DWITH_CACHE
|
||||
LDFLAGS =
|
||||
+APXS_STAGE= @APXS_STAGE@
|
||||
|
||||
@@ -28,8 +32,8 @@
|
||||
default: all
|
||||
|
||||
@@ -28,8 +33,8 @@
|
||||
$(APACHE_MODULE): $(SRCS)
|
||||
$(APXS) -c $(CFLAGS) $(LDFLAGS) $(SRCS)
|
||||
|
||||
-install: all
|
||||
- $(APXS) -i -a -n $(NAME) $(MODULE_LA)
|
||||
+install: $(MODULE_LA)
|
||||
+ $(APXS) -i -A -n $(NAME) $(MODULE_LA)
|
||||
+ $(APXS) $(APXS_STAGE) -i -n $(NAME) $(MODULE_LA)
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJS) $(APACHE_MODULE) *.slo *.lo mod_myvhost.la .libs
|
||||
|
Loading…
Reference in New Issue
Block a user