From owner-svn-ports-all@FreeBSD.ORG Sun Mar 30 16:11:59 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E43C7B7D; Sun, 30 Mar 2014 16:11:59 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C2CA5E09; Sun, 30 Mar 2014 16:11:59 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2UGBx6H057230; Sun, 30 Mar 2014 16:11:59 GMT (envelope-from dinoex@svn.freebsd.org) Received: (from dinoex@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2UGBxgX057227; Sun, 30 Mar 2014 16:11:59 GMT (envelope-from dinoex@svn.freebsd.org) Message-Id: <201403301611.s2UGBxgX057227@svn.freebsd.org> From: Dirk Meyer Date: Sun, 30 Mar 2014 16:11:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349644 - in head/games/xboing: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2014 16:12:00 -0000 Author: dinoex Date: Sun Mar 30 16:11:58 2014 New Revision: 349644 URL: http://svnweb.freebsd.org/changeset/ports/349644 QAT: https://qat.redports.org/buildarchive/r349644/ Log: - use STAGEDIR - use OPTIONS_DEFINE Modified: head/games/xboing/Makefile head/games/xboing/files/patch-Imakefile head/games/xboing/pkg-plist Modified: head/games/xboing/Makefile ============================================================================== --- head/games/xboing/Makefile Sun Mar 30 15:57:14 2014 (r349643) +++ head/games/xboing/Makefile Sun Mar 30 16:11:58 2014 (r349644) @@ -14,24 +14,18 @@ COMMENT= X11 arcade game LICENSE= MIT -NO_STAGE= yes - USES= imake USE_XORG= xpm xext x11 WRKSRC= ${WRKDIR}/xboing -MAN1= xboing.1 -.if defined(WITHOUT_AUDIO) +OPTIONS_DEFINE=SOUND +OPTIONS_DEFAULT=SOUND +OPTIONS_SUB=yes + +.include + +.if ${PORT_OPTIONS:MSOUND} MAKE_ENV+= WITHOUT_AUDIO=True -PLIST_SUB+= WITH_SOUND="@comment " -.else -PLIST_SUB+= WITH_SOUND="" .endif -post-install: - ${CHOWN} root:games ${PREFIX}/bin/xboing - ${CHMOD} 2755 ${PREFIX}/bin/xboing - ${CHOWN} root:games ${PREFIX}/lib/X11/xboing/.xboing.scr - ${CHMOD} 664 ${PREFIX}/lib/X11/xboing/.xboing.scr - .include Modified: head/games/xboing/files/patch-Imakefile ============================================================================== --- head/games/xboing/files/patch-Imakefile Sun Mar 30 15:57:14 2014 (r349643) +++ head/games/xboing/files/patch-Imakefile Sun Mar 30 16:11:58 2014 (r349644) @@ -1,5 +1,5 @@ ---- Imakefile.orig Thu Nov 21 19:28:46 1996 -+++ Imakefile Sun Jun 20 18:39:19 1999 +--- Imakefile.orig 1996-11-22 02:28:46.000000000 +0100 ++++ Imakefile 2014-03-30 17:51:01.000000000 +0200 @@ -24,23 +24,28 @@ XCOMM This is the directory where the highscore, level & sound data will be XCOMM placed. Default will be the current directory. @@ -44,3 +44,43 @@ XCOMM -DNEED_USLEEP=\"True\" \ XCOMM -DNO_LOCKING=\"True\" +@@ -182,30 +187,30 @@ + @echo "XBoing directory is " $(XBOING_DIR) + @: + @echo "Creating directory " $(XBOING_DIR) +- @if [ ! -d $(XBOING_DIR) ]; then mkdir $(XBOING_DIR); fi +- $(INSTALL) -c $(INSTDATFLAGS) docs/problems.doc $(XBOING_DIR) ++ @if [ ! -d ${DESTDIR}$(XBOING_DIR) ]; then mkdir ${DESTDIR}$(XBOING_DIR); fi ++ $(INSTALL) -c $(INSTDATFLAGS) docs/problems.doc ${DESTDIR}$(XBOING_DIR) + @: + @echo "Creating directory " $(LEVEL_INSTALL_DIR) +- @if [ ! -d $(LEVEL_INSTALL_DIR) ]; then mkdir $(LEVEL_INSTALL_DIR); fi ++ @if [ ! -d ${DESTDIR}$(LEVEL_INSTALL_DIR) ]; then mkdir ${DESTDIR}$(LEVEL_INSTALL_DIR); fi + @: + @echo "Copying level data into directory " $(LEVEL_INSTALL_DIR) + @cd ./levels; set -x; for file in *.data; do \ +- $(INSTALL) -c $(INSTDATFLAGS) $$file $(LEVEL_INSTALL_DIR);\ ++ $(INSTALL) -c $(INSTDATFLAGS) $$file ${DESTDIR}$(LEVEL_INSTALL_DIR);\ + done + @: + @if [ "$(AUDIO_AVAILABLE)" = "True" ]; \ + then \ + echo "Creating directory " $(SOUNDS_DIR); \ +- if [ ! -d $(SOUNDS_DIR) ]; then mkdir $(SOUNDS_DIR); fi;\ ++ if [ ! -d ${DESTDIR}$(SOUNDS_DIR) ]; then mkdir ${DESTDIR}$(SOUNDS_DIR); fi;\ + echo "Copying sound files into directory " $(SOUNDS_DIR);\ + cd ./sounds; set -x; for file in *.au; do \ +- $(INSTALL) -c $(INSTDATFLAGS) $$file $(SOUNDS_DIR); \ ++ $(INSTALL) -c $(INSTDATFLAGS) $$file ${DESTDIR}$(SOUNDS_DIR); \ + done; \ + fi + @: +- @echo "Creating a highscore file " $(HIGH_SCORE_FILE) +- @touch $(HIGH_SCORE_FILE); +- @chmod a+rw $(HIGH_SCORE_FILE); ++ @echo "Creating a highscore file " ${DESTDIR}$(HIGH_SCORE_FILE) ++ @touch ${DESTDIR}$(HIGH_SCORE_FILE); ++ @chmod a+rw ${DESTDIR}$(HIGH_SCORE_FILE); + + XCOMM I use this for my daily backup of my code. + Modified: head/games/xboing/pkg-plist ============================================================================== --- head/games/xboing/pkg-plist Sun Mar 30 15:57:14 2014 (r349643) +++ head/games/xboing/pkg-plist Sun Mar 30 16:11:58 2014 (r349644) @@ -83,53 +83,59 @@ lib/X11/xboing/levels/level78.data lib/X11/xboing/levels/level79.data lib/X11/xboing/levels/level80.data lib/X11/xboing/levels/new.data -%%WITH_SOUND%%lib/X11/xboing/sounds/Doh1.au -%%WITH_SOUND%%lib/X11/xboing/sounds/Doh2.au -%%WITH_SOUND%%lib/X11/xboing/sounds/Doh3.au -%%WITH_SOUND%%lib/X11/xboing/sounds/Doh4.au -%%WITH_SOUND%%lib/X11/xboing/sounds/ammo.au -%%WITH_SOUND%%lib/X11/xboing/sounds/applause.au -%%WITH_SOUND%%lib/X11/xboing/sounds/ball2ball.au -%%WITH_SOUND%%lib/X11/xboing/sounds/balllost.au -%%WITH_SOUND%%lib/X11/xboing/sounds/ballshot.au -%%WITH_SOUND%%lib/X11/xboing/sounds/boing.au -%%WITH_SOUND%%lib/X11/xboing/sounds/bomb.au -%%WITH_SOUND%%lib/X11/xboing/sounds/bonus.au -%%WITH_SOUND%%lib/X11/xboing/sounds/buzzer.au -%%WITH_SOUND%%lib/X11/xboing/sounds/click.au -%%WITH_SOUND%%lib/X11/xboing/sounds/ddloo.au -%%WITH_SOUND%%lib/X11/xboing/sounds/evillaugh.au -%%WITH_SOUND%%lib/X11/xboing/sounds/game_over.au -%%WITH_SOUND%%lib/X11/xboing/sounds/gate.au -%%WITH_SOUND%%lib/X11/xboing/sounds/hithere.au -%%WITH_SOUND%%lib/X11/xboing/sounds/hypspc.au -%%WITH_SOUND%%lib/X11/xboing/sounds/intro.au -%%WITH_SOUND%%lib/X11/xboing/sounds/key.au -%%WITH_SOUND%%lib/X11/xboing/sounds/looksbad.au -%%WITH_SOUND%%lib/X11/xboing/sounds/metal.au -%%WITH_SOUND%%lib/X11/xboing/sounds/mgun.au -%%WITH_SOUND%%lib/X11/xboing/sounds/ouch.au -%%WITH_SOUND%%lib/X11/xboing/sounds/paddle.au -%%WITH_SOUND%%lib/X11/xboing/sounds/ping.au -%%WITH_SOUND%%lib/X11/xboing/sounds/shark.au -%%WITH_SOUND%%lib/X11/xboing/sounds/shoot.au -%%WITH_SOUND%%lib/X11/xboing/sounds/shotgun.au -%%WITH_SOUND%%lib/X11/xboing/sounds/spring.au -%%WITH_SOUND%%lib/X11/xboing/sounds/stamp.au -%%WITH_SOUND%%lib/X11/xboing/sounds/sticky.au -%%WITH_SOUND%%lib/X11/xboing/sounds/supbons.au -%%WITH_SOUND%%lib/X11/xboing/sounds/toggle.au -%%WITH_SOUND%%lib/X11/xboing/sounds/tone.au -%%WITH_SOUND%%lib/X11/xboing/sounds/touch.au -%%WITH_SOUND%%lib/X11/xboing/sounds/wallsoff.au -%%WITH_SOUND%%lib/X11/xboing/sounds/warp.au -%%WITH_SOUND%%lib/X11/xboing/sounds/weeek.au -%%WITH_SOUND%%lib/X11/xboing/sounds/whizzo.au -%%WITH_SOUND%%lib/X11/xboing/sounds/whoosh.au -%%WITH_SOUND%%lib/X11/xboing/sounds/wzzz.au -%%WITH_SOUND%%lib/X11/xboing/sounds/wzzz2.au -%%WITH_SOUND%%lib/X11/xboing/sounds/youagod.au +man/man1/xboing.1.gz +%%SOUND%%lib/X11/xboing/sounds/Doh1.au +%%SOUND%%lib/X11/xboing/sounds/Doh2.au +%%SOUND%%lib/X11/xboing/sounds/Doh3.au +%%SOUND%%lib/X11/xboing/sounds/Doh4.au +%%SOUND%%lib/X11/xboing/sounds/ammo.au +%%SOUND%%lib/X11/xboing/sounds/applause.au +%%SOUND%%lib/X11/xboing/sounds/ball2ball.au +%%SOUND%%lib/X11/xboing/sounds/balllost.au +%%SOUND%%lib/X11/xboing/sounds/ballshot.au +%%SOUND%%lib/X11/xboing/sounds/boing.au +%%SOUND%%lib/X11/xboing/sounds/bomb.au +%%SOUND%%lib/X11/xboing/sounds/bonus.au +%%SOUND%%lib/X11/xboing/sounds/buzzer.au +%%SOUND%%lib/X11/xboing/sounds/click.au +%%SOUND%%lib/X11/xboing/sounds/ddloo.au +%%SOUND%%lib/X11/xboing/sounds/evillaugh.au +%%SOUND%%lib/X11/xboing/sounds/game_over.au +%%SOUND%%lib/X11/xboing/sounds/gate.au +%%SOUND%%lib/X11/xboing/sounds/hithere.au +%%SOUND%%lib/X11/xboing/sounds/hypspc.au +%%SOUND%%lib/X11/xboing/sounds/intro.au +%%SOUND%%lib/X11/xboing/sounds/key.au +%%SOUND%%lib/X11/xboing/sounds/looksbad.au +%%SOUND%%lib/X11/xboing/sounds/metal.au +%%SOUND%%lib/X11/xboing/sounds/mgun.au +%%SOUND%%lib/X11/xboing/sounds/ouch.au +%%SOUND%%lib/X11/xboing/sounds/paddle.au +%%SOUND%%lib/X11/xboing/sounds/ping.au +%%SOUND%%lib/X11/xboing/sounds/shark.au +%%SOUND%%lib/X11/xboing/sounds/shoot.au +%%SOUND%%lib/X11/xboing/sounds/shotgun.au +%%SOUND%%lib/X11/xboing/sounds/spring.au +%%SOUND%%lib/X11/xboing/sounds/stamp.au +%%SOUND%%lib/X11/xboing/sounds/sticky.au +%%SOUND%%lib/X11/xboing/sounds/supbons.au +%%SOUND%%lib/X11/xboing/sounds/toggle.au +%%SOUND%%lib/X11/xboing/sounds/tone.au +%%SOUND%%lib/X11/xboing/sounds/touch.au +%%SOUND%%lib/X11/xboing/sounds/wallsoff.au +%%SOUND%%lib/X11/xboing/sounds/warp.au +%%SOUND%%lib/X11/xboing/sounds/weeek.au +%%SOUND%%lib/X11/xboing/sounds/whizzo.au +%%SOUND%%lib/X11/xboing/sounds/whoosh.au +%%SOUND%%lib/X11/xboing/sounds/wzzz.au +%%SOUND%%lib/X11/xboing/sounds/wzzz2.au +%%SOUND%%lib/X11/xboing/sounds/youagod.au lib/X11/xboing/problems.doc @dirrm lib/X11/xboing/levels -%%WITH_SOUND%%@dirrm lib/X11/xboing/sounds +%%SOUND%%@dirrm lib/X11/xboing/sounds @dirrm lib/X11/xboing +@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/.xboing.scr +@exec chmod 664 %D/lib/X11/xboing/.xboing.scr