From dd05aa01acaa3ba3b5ede2536a8927ee74dc501e Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Wed, 19 Apr 2017 09:05:03 +0000 Subject: - Limit dos2unix to not corrupt binary files - Make iconon symlink relative - Switch to options helpers --- games/openbubbles/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'games/openbubbles') diff --git a/games/openbubbles/Makefile b/games/openbubbles/Makefile index 4277a1f43c58..e3c1ebc12fa8 100644 --- a/games/openbubbles/Makefile +++ b/games/openbubbles/Makefile @@ -15,12 +15,12 @@ COMMENT= Clone of Evan Bailey's game Bubbles LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -USES= tar:bzip2 +USES= dos2unix tar:bzip2 +DOS2UNIX_FILES= ${WRKSRC}/src/BFont.cpp USE_SDL= sdl gfx image GNU_CONFIGURE= yes PORTDOCS= AUTHORS ChangeLog NEWS README -OPTIONS_DEFINE= DOCS INSTALLS_ICONS= yes ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 128x128 @@ -28,15 +28,18 @@ ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 128x128 DESKTOP_ENTRIES="OpenBubbles" "" "${PORTNAME}" \ "${PORTNAME}" "Game;ArcadeGame;" "" +OPTIONS_DEFINE= DOCS + post-install: .for s in ${ICON_SIZES} @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \ ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png .endfor - ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \ + ${LN} -sf ../../share/icons/hicolor/48x48/apps/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} -- cgit v1.2.3