pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/atari800 Use options framework: build either...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/454b63ec593e
branches:  trunk
changeset: 491157:454b63ec593e
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Mar 22 08:46:26 2005 +0000

description:
Use options framework: build either with X11 or SDL

diffstat:

 emulators/atari800/Makefile   |  12 +++++++-----
 emulators/atari800/options.mk |  17 +++++++++++++++++
 2 files changed, 24 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r a1f4c05b3180 -r 454b63ec593e emulators/atari800/Makefile
--- a/emulators/atari800/Makefile       Tue Mar 22 08:18:04 2005 +0000
+++ b/emulators/atari800/Makefile       Tue Mar 22 08:46:26 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2005/01/05 11:00:26 adam Exp $
+# $NetBSD: Makefile,v 1.28 2005/03/22 08:46:26 adam Exp $
 
 DISTNAME=      atari800-1.3.5
 CATEGORIES=    emulators
@@ -16,11 +16,11 @@
 NO_BIN_ON_CDROM=       ${RESTRICTED}
 
 WRKSRC=                        ${WRKDIR}/${DISTNAME}/src
-USE_BUILDLINK3=                YES
+USE_BUILDLINK3=                yes
 USE_GNU_TOOLS+=                make
-USE_X11=               YES
-GNU_CONFIGURE=         YES
-CONFIGURE_ARGS+=       --target=x11
+GNU_CONFIGURE=         yes
+
+.include "options.mk"
 
 # override HOME to avoid picking up a bad ${HOME}/.atari800 during the build
 MAKE_FLAGS+=   HOME=${WRKSRC}
@@ -35,5 +35,7 @@
        ${INSTALL_DATA} ${WRKDIR}/*.rom ${WRKDIR}/*.xfd ${WRKDIR}/*.atr \
                ${WRKSRC}/atari800.cfg ${PREFIX}/share/atari800/
 
+.include "../../devel/zlib/buildlink3.mk"
+
 .include "../../mk/ossaudio.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r a1f4c05b3180 -r 454b63ec593e emulators/atari800/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/atari800/options.mk     Tue Mar 22 08:46:26 2005 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: options.mk,v 1.1 2005/03/22 08:46:26 adam Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.atari800
+PKG_DEFAULT_OPTIONS=   x11
+PKG_SUPPORTED_OPTIONS= sdl x11
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mx11)
+USE_X11=               yes
+CONFIGURE_ARGS+=       --target=x11
+.endif
+
+.if !empty(PKG_OPTIONS:Msdl)
+CONFIGURE_ARGS+=       --target=sdl
+.include "../../devel/SDL/buildlink3.mk"
+.endif



Home | Main Index | Thread Index | Old Index