diff options
author | nemysis <nemysis@FreeBSD.org> | 2014-02-04 21:57:45 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2014-02-04 21:57:45 +0800 |
commit | 7739b40ddd4e5c709ec3382bd6e3d6c5befa25fd (patch) | |
tree | c266cd3a2ae10d133d005291c1632719f9123248 /games | |
parent | 4dbbeb1a7feff54b22d3c270e6e11b7f2c5de25b (diff) | |
download | freebsd-ports-gnome-7739b40ddd4e5c709ec3382bd6e3d6c5befa25fd.tar.gz freebsd-ports-gnome-7739b40ddd4e5c709ec3382bd6e3d6c5befa25fd.tar.zst freebsd-ports-gnome-7739b40ddd4e5c709ec3382bd6e3d6c5befa25fd.zip |
- Remove USES desktop-file-utils
- Add NLS Option and REINPLACE
- Add OPTIONS_SUB
- Strip executable
- Recreate pkg-plist with make makeplist
Diffstat (limited to 'games')
-rw-r--r-- | games/connectagram/Makefile | 14 | ||||
-rw-r--r-- | games/connectagram/pkg-plist | 18 |
2 files changed, 22 insertions, 10 deletions
diff --git a/games/connectagram/Makefile b/games/connectagram/Makefile index 351ddc298ee8..cbbe1422d12a 100644 --- a/games/connectagram/Makefile +++ b/games/connectagram/Makefile @@ -13,18 +13,30 @@ COMMENT= Word unscrambling game LICENSE= GPLv3 USE_BZIP2= yes -USES= desktop-file-utils qmake +USES= qmake USE_QT4= moc_build rcc_build gui network iconengines_run \ imageformats_run INSTALLS_ICONS= yes PORTDOCS= CREDITS ChangeLog +OPTIONS_DEFINE= DOCS NLS +OPTIONS_SUB= yes + .include <bsd.port.options.mk> +post-patch: +.if ! ${PORT_OPTIONS:MNLS} + @${REINPLACE_CMD} -i '' '/qm.files/,/qm.path/s/^/#/' \ + ${WRKSRC}/${PORTNAME}.pro +.endif + post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + @(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}) @(cd ${WRKSRC}/icons && ${COPYTREE_SHARE} patterns ${STAGEDIR}${DATADIR}) + @(cd ${WRKSRC}/icons && ${COPYTREE_SHARE} hicolor ${STAGEDIR}${PREFIX}/share/icons/) ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ diff --git a/games/connectagram/pkg-plist b/games/connectagram/pkg-plist index fc2d397456e6..b42359c5eef0 100644 --- a/games/connectagram/pkg-plist +++ b/games/connectagram/pkg-plist @@ -8,14 +8,14 @@ share/applications/connectagram.desktop %%DATADIR%%/patterns/3.png %%DATADIR%%/patterns/4.png %%DATADIR%%/patterns/5.png -%%DATADIR%%/translations/connectagram_cs.qm -%%DATADIR%%/translations/connectagram_de.qm -%%DATADIR%%/translations/connectagram_el.qm -%%DATADIR%%/translations/connectagram_en.qm -%%DATADIR%%/translations/connectagram_fr.qm -%%DATADIR%%/translations/connectagram_ro.qm -%%DATADIR%%/translations/connectagram_ru.qm -%%DATADIR%%/translations/connectagram_tr.qm +%%NLS%%%%DATADIR%%/translations/connectagram_cs.qm +%%NLS%%%%DATADIR%%/translations/connectagram_de.qm +%%NLS%%%%DATADIR%%/translations/connectagram_el.qm +%%NLS%%%%DATADIR%%/translations/connectagram_en.qm +%%NLS%%%%DATADIR%%/translations/connectagram_fr.qm +%%NLS%%%%DATADIR%%/translations/connectagram_ro.qm +%%NLS%%%%DATADIR%%/translations/connectagram_ru.qm +%%NLS%%%%DATADIR%%/translations/connectagram_tr.qm share/icons/hicolor/128x128/apps/connectagram.png share/icons/hicolor/16x16/apps/connectagram.png share/icons/hicolor/22x22/apps/connectagram.png @@ -27,7 +27,7 @@ share/icons/hicolor/64x64/apps/connectagram.png share/icons/hicolor/scalable/apps/connectagram.svg share/pixmaps/connectagram.png share/pixmaps/connectagram.xpm -@dirrm %%DATADIR%%/translations +%%NLS%%@dirrm %%DATADIR%%/translations @dirrm %%DATADIR%%/patterns @dirrm %%DATADIR%%/data/fr @dirrm %%DATADIR%%/data/en |