diff options
author | garga <garga@FreeBSD.org> | 2013-11-01 07:35:00 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2013-11-01 07:35:00 +0800 |
commit | 1573e60c8e0ca6905043b996f8787bda1af0dcdf (patch) | |
tree | 6bff924ee889903af3e118ae69a92d975e828380 /ftp/ftpmirror | |
parent | 16403d7c511e2044c8200c1501f6612054f48532 (diff) | |
download | freebsd-ports-gnome-1573e60c8e0ca6905043b996f8787bda1af0dcdf.tar.gz freebsd-ports-gnome-1573e60c8e0ca6905043b996f8787bda1af0dcdf.tar.zst freebsd-ports-gnome-1573e60c8e0ca6905043b996f8787bda1af0dcdf.zip |
. Support STAGE
. Simplify Makefile
Diffstat (limited to 'ftp/ftpmirror')
-rw-r--r-- | ftp/ftpmirror/Makefile | 14 | ||||
-rw-r--r-- | ftp/ftpmirror/files/patch-Makefile.in | 35 |
2 files changed, 35 insertions, 14 deletions
diff --git a/ftp/ftpmirror/Makefile b/ftp/ftpmirror/Makefile index 09ed1eef271c..4c5e4b4954c8 100644 --- a/ftp/ftpmirror/Makefile +++ b/ftp/ftpmirror/Makefile @@ -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> diff --git a/ftp/ftpmirror/files/patch-Makefile.in b/ftp/ftpmirror/files/patch-Makefile.in index 8491ac1429af..b29c6a91c6fd 100644 --- a/ftp/ftpmirror/files/patch-Makefile.in +++ b/ftp/ftpmirror/files/patch-Makefile.in @@ -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 |