From cd164f904bb369aeba9130fa308c11352d6a9727 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 22 Mar 2005 08:46:26 +0000 Subject: Use options framework: build either with X11 or SDL --- emulators/atari800/Makefile | 12 +++++++----- emulators/atari800/options.mk | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 emulators/atari800/options.mk (limited to 'emulators/atari800') diff --git a/emulators/atari800/Makefile b/emulators/atari800/Makefile index 6c2bbac9a58..b7b9612b6e4 100644 --- a/emulators/atari800/Makefile +++ b/emulators/atari800/Makefile @@ -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_FTP= ${RESTRICTED} 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 @@ post-install: ${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 --git a/emulators/atari800/options.mk b/emulators/atari800/options.mk new file mode 100644 index 00000000000..01e35fc4f62 --- /dev/null +++ b/emulators/atari800/options.mk @@ -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 -- cgit v1.2.3