From b1b3914915b19244db88b70e08f8b437b409afa4 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 24 Sep 2015 22:26:03 +0000 Subject: [PATCH] Simplify a bit the plist Use options helpers --- games/xboing/Makefile | 6 +----- games/xboing/pkg-plist | 10 ++-------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/games/xboing/Makefile b/games/xboing/Makefile index 9b32ff53af81..bd4bb55486ca 100644 --- a/games/xboing/Makefile +++ b/games/xboing/Makefile @@ -21,11 +21,7 @@ OPTIONS_DEFINE=SOUND OPTIONS_DEFAULT=SOUND OPTIONS_SUB=yes -.include - -.if ${PORT_OPTIONS:MSOUND} -MAKE_ENV+= WITHOUT_AUDIO=True -.endif +SOUND_MAKE_ENV= WITHOUT_AUDIO=True post-install: ${RM} ${STAGEDIR}${PREFIX}/lib/X11/xboing/.xboing.scr diff --git a/games/xboing/pkg-plist b/games/xboing/pkg-plist index c9ee62b020f1..1d0b9c211507 100644 --- a/games/xboing/pkg-plist +++ b/games/xboing/pkg-plist @@ -1,4 +1,4 @@ -bin/xboing +@(root,games,2755) bin/xboing lib/X11/xboing/levels/demo.data lib/X11/xboing/levels/editor.data lib/X11/xboing/levels/level01.data @@ -130,14 +130,8 @@ man/man1/xboing.1.gz %%SOUND%%lib/X11/xboing/sounds/wzzz2.au %%SOUND%%lib/X11/xboing/sounds/youagod.au lib/X11/xboing/problems.doc -@exec chown root:games %D/bin/xboing -@exec chmod 2755 %D/bin/xboing @exec touch %D/lib/X11/xboing/.xboing.scr -@exec chown root:games %D/lib/X11/xboing -@exec chmod 775 %D/lib/X11/xboing @exec chown root:games %D/lib/X11/xboing/.xboing.scr @exec chmod 664 %D/lib/X11/xboing/.xboing.scr @unexec if test ! -s %D/lib/X11/xboing/.xboing.scr ; then rm -f %D/lib/X11/xboing/.xboing.scr ; fi -%%SOUND%%@dirrm lib/X11/xboing/sounds -@dirrm lib/X11/xboing/levels -@dirrm lib/X11/xboing +@dir(root,games,775) lib/X11/xboing