From add4605f874d5cb8fe86764a5320203501c9ebd2 Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 3 Aug 2004 20:47:50 +0000 Subject: Convert to use bsd.options.mk, and add a gnome option. PKGREVISION not bumped since by default nothing changes. Set USE_LANGUAGES instead of USE_GCC_SHLIB. --- emulators/vice/Makefile | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'emulators') diff --git a/emulators/vice/Makefile b/emulators/vice/Makefile index f6db4f5caea..f81f04f508d 100644 --- a/emulators/vice/Makefile +++ b/emulators/vice/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.47 2004/07/30 20:32:01 kristerw Exp $ +# $NetBSD: Makefile,v 1.48 2004/08/03 20:47:50 wiz Exp $ # DISTNAME= vice-1.14 @@ -25,19 +25,25 @@ USE_BUILDLINK3= YES USE_PKGLOCALEDIR= YES USE_X11= YES USE_GNU_TOOLS+= make +USE_LANGUAGES+= c c++ GNU_CONFIGURE= YES -USE_GCC_SHLIB= YES CONFIGURE_ARGS+= --enable-fullscreen INFO_FILES= vice.info -BUILD_DEFS+= VICE_USE_FFMPEG -BUILD_DEFS+= USE_ESOUND - .include "../../mk/bsd.prefs.mk" .if !empty(VICE_USE_FFMPEG:M[Yy][Ee][Ss]) -CONFIGURE_ARGS+= --enable-ffmpeg +PKG_OPTIONS.vice+= ffmpeg +.endif + +PKG_OPTIONS_VAR= PKG_OPTIONS.vice +PKG_SUPPORTED_OPTIONS= esound ffmpeg gnome + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mgnome) +CONFIGURE_ARGS+= --enable-gnomeui .endif # These changes are rather common, so sed instead of patch: @@ -55,7 +61,7 @@ post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/vice ${MV} ${PREFIX}/share/doc/vice/*.html ${PREFIX}/share/doc/html/vice -.if !empty(USE_ESOUND:M[Yy][Ee][Ss]) +.if !empty(PKG_OPTIONS:Mesound) .include "../../audio/esound/buildlink3.mk" .endif .include "../../devel/readline/buildlink3.mk" @@ -63,8 +69,11 @@ post-install: .include "../../devel/zlib/buildlink3.mk" .include "../../graphics/png/buildlink3.mk" .include "../../graphics/xpm/buildlink3.mk" -.if !empty(VICE_USE_FFMPEG:M[Yy][Ee][Ss]) +.if !empty(PKG_OPTIONS:Mffmpeg) .include "../../multimedia/ffmpeg/buildlink3.mk" .endif +.if !empty(PKG_OPTIONS:Mgnome) +.include "../../x11/gnome-libs/buildlink3.mk" +.endif .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3