aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2014-01-30 11:34:12 +0800
committermiwi <miwi@FreeBSD.org>2014-01-30 11:34:12 +0800
commitc108e8460b6991363e711d880000c77c88d9cf63 (patch)
tree807a1df8ddfffbd5b66e483e627f4ecf9fdf9d6f /www
parentec1ac6cd1f4a29743af23957f43a6dfa0ac37d97 (diff)
downloadfreebsd-ports-gnome-c108e8460b6991363e711d880000c77c88d9cf63.tar.gz
freebsd-ports-gnome-c108e8460b6991363e711d880000c77c88d9cf63.tar.zst
freebsd-ports-gnome-c108e8460b6991363e711d880000c77c88d9cf63.zip
- Stage support
Diffstat (limited to 'www')
-rw-r--r--www/analog/Makefile49
-rw-r--r--www/analog/pkg-plist1
2 files changed, 22 insertions, 28 deletions
diff --git a/www/analog/Makefile b/www/analog/Makefile
index 3b138b90a6e3..64355357eb34 100644
--- a/www/analog/Makefile
+++ b/www/analog/Makefile
@@ -27,41 +27,34 @@ ALL_TARGET= ${PORTNAME}
SUB_FILES= pkg-message
-MAN1= analog.1
-
LIMGDIR?= www/data/images
IMGDIR= ${PREFIX}/${LIMGDIR}
PLIST_SUB= IMGDIR="${LIMGDIR}"
-NO_STAGE= yes
.include <bsd.port.pre.mk>
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/analog ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/analog.man ${MANPREFIX}/man/man1/analog.1
- ${INSTALL_DATA} ${WRKSRC}/analog.cfg ${PREFIX}/etc/analog.cfg-dist
- @${MKDIR} ${DATADIR}/lang
- ${INSTALL_DATA} ${WRKSRC}/lang/* ${DATADIR}/lang
- @${MKDIR} ${IMGDIR}
- ${INSTALL_DATA} ${WRKSRC}/images/* ${IMGDIR}
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/examples/*.cfg ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/anlgform.html ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/anlgform.pl ${EXAMPLESDIR}
- @${MKDIR} ${EXAMPLESDIR}/css
- ${INSTALL_DATA} ${WRKSRC}/examples/css/Readme.txt ${EXAMPLESDIR}/css
- ${INSTALL_DATA} ${WRKSRC}/examples/css/default.css ${EXAMPLESDIR}/css
- @${MKDIR} ${EXAMPLESDIR}/css/jreeves
- ${INSTALL_DATA} ${WRKSRC}/examples/css/jreeves/* ${EXAMPLESDIR}/css/jreeves
-.endif
-.if !exists(${PREFIX}/etc/analog.cfg)
- @cd ${PREFIX}/etc && ${CP} -f analog.cfg-dist analog.cfg
+ ${INSTALL_PROGRAM} ${WRKSRC}/analog ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/analog.man ${STAGEDIR}${MANPREFIX}/man/man1/analog.1
+ ${INSTALL_DATA} ${WRKSRC}/analog.cfg ${STAGEDIR}${PREFIX}/etc/analog.cfg-dist
+ ${MKDIR} ${STAGEDIR}${DATADIR}/lang
+ ${INSTALL_DATA} ${WRKSRC}/lang/* ${STAGEDIR}${DATADIR}/lang
+ ${MKDIR} ${STAGEDIR}${IMGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/images/* ${STAGEDIR}${IMGDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.cfg ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/anlgform.html ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/anlgform.pl ${STAGEDIR}${EXAMPLESDIR}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/css
+ ${INSTALL_DATA} ${WRKSRC}/examples/css/Readme.txt ${STAGEDIR}${EXAMPLESDIR}/css
+ ${INSTALL_DATA} ${WRKSRC}/examples/css/default.css ${STAGEDIR}${EXAMPLESDIR}/css
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/css/jreeves
+ ${INSTALL_DATA} ${WRKSRC}/examples/css/jreeves/* ${STAGEDIR}${EXAMPLESDIR}/css/jreeves
+
+.if !exists(${STAGEDIR}${PREFIX}/etc/analog.cfg)
+ @cd ${STAGEDIR}${PREFIX}/etc && ${CP} -f analog.cfg-dist analog.cfg
.endif
- @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/www/analog/pkg-plist b/www/analog/pkg-plist
index da7c0b5e9872..31e81150751a 100644
--- a/www/analog/pkg-plist
+++ b/www/analog/pkg-plist
@@ -387,6 +387,7 @@ etc/analog.cfg-dist
%%IMGDIR%%/sq8.png
%%IMGDIR%%/sq9.png
%%IMGDIR%%/sqg.png
+man/man1/analog.1.gz
@dirrmtry %%IMGDIR%%
@dirrmtry www/data
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/css/jreeves