Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Aug 2004 13:36:02 +0800 (CST)
From:      Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/70686: Enable OPTIONS feature of ports/games/asc
Message-ID:  <200408200536.i7K5a2Ps007889@alumni.csie.nctu.edu.tw>
Resent-Message-ID: <200408200540.i7K5eK6K035081@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         70686
>Category:       ports
>Synopsis:       Enable OPTIONS feature of ports/games/asc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 20 05:40:20 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Ying-Chieh Chen
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
NCTU CSIE
>Environment:
System: FreeBSD alumni 4.10-STABLE FreeBSD 4.10-STABLE #25: Fri Jul 2 07:46:15 CST 2004 wcpan@ccduty:/bsdhome/bsd4/obj/bsdhome/bsd4/src/sys/CSIEBSD i386


	
>Description:

	Enable OPTIONS feature of ports/games/asc
	Please commit it, thanks!

>How-To-Repeat:

	cd /usr/ports/games/asc
	Apply the patch
	make install

>Fix:

--- asc.patch begins here ---
diff -ruN /usr/ports/games/asc/Makefile asc/Makefile
--- /usr/ports/games/asc/Makefile	Tue Mar 16 12:23:38 2004
+++ asc/Makefile	Fri Aug 20 13:30:17 2004
@@ -12,10 +12,6 @@
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	asc-hq
 DISTNAME=	${PORTNAME}-source-${PORTVERSION}
-.if defined(WITH_MUSIC)
-DISTFILES=	${DISTNAME}${EXTRACT_SUFX} frontiers.mp3 time_to_strike.mp3 machine_wars.mp3
-EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
-.endif
 
 MAINTAINER=	yinjieh@csie.nctu.edu.tw
 COMMENT=	A turn based, multiplayer strategic game with very nice graphics
@@ -35,6 +31,15 @@
 
 CONFIGURE_ARGS=	--disable-paraguitest
 
+OPTIONS=	MUSIC "Install extra music files" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MUSIC)
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} frontiers.mp3 time_to_strike.mp3 machine_wars.mp3
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
+.endif
+
 .if defined(WITH_MUSIC)
 PLIST_SUB+=	MUSIC:=""
 .else
@@ -57,4 +62,4 @@
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- asc.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408200536.i7K5a2Ps007889>