. Support STAGE

. Simplify Makefile
This commit is contained in:
Renato Botelho 2013-10-31 23:35:00 +00:00
parent 838b86e1ce
commit 47fbd11274
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332301
2 changed files with 35 additions and 14 deletions

View File

@ -23,18 +23,14 @@ CONFIGURE_ENV+= PERL="${PERL}" INSTALL_PROGRAM="${INSTALL_SCRIPT}"
PORTDOCS= README.jis RELEASE.jis
NO_STAGE= yes
post-configure:
@${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Fan/Fan.pm
.include <bsd.port.pre.mk>
@${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' \
${WRKSRC}/Fan/Fan.pm
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,6 +1,30 @@
--- Makefile.in.orig Wed Apr 20 08:24:33 2005
+++ Makefile.in Wed Apr 20 08:26:40 2005
@@ -40,10 +40,13 @@
--- Makefile.in.orig 1997-09-26 11:43:03.000000000 -0300
+++ Makefile.in 2013-10-30 11:19:37.000000000 -0200
@@ -23,28 +23,31 @@
rm -f *.old *.bak *.core Makefile
# install:: ${BINDIR}/farm
-install:: ${BINDIR}/rotate
-install:: ${BINDIR}/ftpmirror
-install:: ${SYSCONFDIR}/ftpmirror.cf-sample
+install:: ${DESTDIR}${BINDIR}/rotate
+install:: ${DESTDIR}${BINDIR}/ftpmirror
+install:: ${DESTDIR}${SYSCONFDIR}/ftpmirror.cf-sample
-${BINDIR}/rotate: rotate
+${DESTDIR}${BINDIR}/rotate: rotate
${INSTALL_PROGRAM} $? $@
-${BINDIR}/farm: farm
+${DESTDIR}${BINDIR}/farm: farm
${INSTALL_PROGRAM} $? $@
-${BINDIR}/ftpmirror: ftpmirror
+${DESTDIR}${BINDIR}/ftpmirror: ftpmirror
${INSTALL_PROGRAM} $? $@
-${SYSCONFDIR}/ftpmirror.cf-sample: ftpmirror.cf-sample
+${DESTDIR}${SYSCONFDIR}/ftpmirror.cf-sample: ftpmirror.cf-sample
${INSTALL_DATA} $? $@
# for subdirectories...
@ -9,9 +33,10 @@
@ for d in ${SUBDIR} ; do \
( echo "make $@ in $$d..." && cd $$d && make $@ ) ; \
done
+
+install:: Fan/Makefile
+ ( echo "make pure_install in Fan..." && cd Fan && make pure_install ) ; \
+
# Fan subdirectory requres Makefile first.
Fan/Makefile:: Fan/Makefile.PL
cd Fan; ${PERL} Makefile.PL