diff options
author | danfe <danfe@FreeBSD.org> | 2016-04-15 01:41:13 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2016-04-15 01:41:13 +0800 |
commit | 180235b2ccc90579b5a4f078cee8b070059520ad (patch) | |
tree | 8e4bde16f35643999a247a5d5f8d6770d4fe5106 /misc | |
parent | 479dab337fa704c41728acd294727cde92d1ad77 (diff) | |
download | freebsd-ports-gnome-180235b2ccc90579b5a4f078cee8b070059520ad.tar.gz freebsd-ports-gnome-180235b2ccc90579b5a4f078cee8b070059520ad.tar.zst freebsd-ports-gnome-180235b2ccc90579b5a4f078cee8b070059520ad.zip |
- Utilize option helper targets and drop unneeded newline and include of
<bsd.port.options.mk>
- Do not attempt to create ${STAGEDIR}${DESKTOPDIR}: `share/applications'
was added to mtree (Templates/BSD.local.dist) in r331266 2.5 years ago
Diffstat (limited to 'misc')
-rw-r--r-- | misc/gonvert/Makefile | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/misc/gonvert/Makefile b/misc/gonvert/Makefile index 7b436a42868d..7747f088de31 100644 --- a/misc/gonvert/Makefile +++ b/misc/gonvert/Makefile @@ -18,14 +18,11 @@ NO_BUILD= yes PORTDOCS= CHANGELOG FAQ README THANKS OPTIONS_DEFINE= DOCS NLS - OPTIONS_SUB= yes NLS_CONFIGURE_ENABLE= nls NLS_USES= gettext -.include <bsd.port.options.mk> - post-patch: @${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g ; \ s|/usr/share|${PREFIX}/share|g ; \ @@ -33,7 +30,6 @@ post-patch: do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ - @${MKDIR} ${STAGEDIR}${DESKTOPDIR} ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR} @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.glade ${STAGEDIR}${DATADIR} @@ -41,13 +37,13 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${STAGEDIR}${DATADIR}/pixmaps/ ${LN} -sf ${DATADIR}/pixmaps/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/ -.if ${PORT_OPTIONS:MNLS} +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR} + +do-install-NLS-on: @${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/pl/LC_MESSAGES ${INSTALL_DATA} ${WRKSRC}/i18n/pl_messages.gmo \ ${STAGEDIR}${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo -.endif - - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |