diff options
author | adam <adam@pkgsrc.org> | 2005-03-22 08:46:26 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2005-03-22 08:46:26 +0000 |
commit | cd164f904bb369aeba9130fa308c11352d6a9727 (patch) | |
tree | efa2b7e2c07f04f2a5805f3324c9bc0a2629dbf4 /emulators/atari800 | |
parent | 45e9f35557449f1a660180a9d6610f769d3e9414 (diff) | |
download | pkgsrc-cd164f904bb369aeba9130fa308c11352d6a9727.tar.gz |
Use options framework: build either with X11 or SDL
Diffstat (limited to 'emulators/atari800')
-rw-r--r-- | emulators/atari800/Makefile | 12 | ||||
-rw-r--r-- | emulators/atari800/options.mk | 17 |
2 files changed, 24 insertions, 5 deletions
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 |