summaryrefslogtreecommitdiff
path: root/emulators/vice/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/vice/options.mk')
-rw-r--r--emulators/vice/options.mk78
1 files changed, 61 insertions, 17 deletions
diff --git a/emulators/vice/options.mk b/emulators/vice/options.mk
index a9eb3acf4dc..879dbfb20af 100644
--- a/emulators/vice/options.mk
+++ b/emulators/vice/options.mk
@@ -1,28 +1,72 @@
-# $NetBSD: options.mk,v 1.5 2010/07/24 09:44:57 wiz Exp $
+# $NetBSD: options.mk,v 1.6 2011/04/04 13:42:08 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.vice
-PKG_SUPPORTED_OPTIONS= esound ffmpeg lame gnome
+PKG_SUPPORTED_OPTIONS= ffmpeg lame vice-fullscreen vice-hwscaling vice-ethernet
+PKG_OPTIONS_REQUIRED_GROUPS = gui
+PKG_OPTIONS_GROUP.gui = xaw gnome sdl
+PKG_SUGGESTED_OPTIONS= ffmpeg lame vice-fullscreen vice-hwscaling vice-ethernet
+PKG_SUGGESTED_OPTIONS+= xaw
.include "../../mk/bsd.options.mk"
-.if !empty(PKG_OPTIONS:Mesound)
-.include "../../audio/esound/buildlink3.mk"
-.else
-CONFIGURE_ARGS+= --without-esd
+.if !empty(PKG_OPTIONS:Mxaw)
+. include "../../x11/libXt/buildlink3.mk"
+. include "../../x11/libXmu/buildlink3.mk"
+. include "../../x11/libXaw/buildlink3.mk"
+. include "../../x11/libXpm/buildlink3.mk"
+PLIST_SRC += PLIST.x11
.endif
-.if !empty(PKG_OPTIONS:Mffmpeg)
-CONFIGURE_ARGS+= --enable-ffmpeg
-USE_TOOLS+= pkg-config
-.include "../../multimedia/ffmpeg/buildlink3.mk"
-. if !empty(PKG_OPTIONS:Mlame)
-. include "../../audio/lame/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mgnome)
+CONFIGURE_ARGS+= --enable-gnomeui
+PLIST_SRC+= PLIST.x11
+. include "../../x11/gtk2/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Msdl)
+CONFIGURE_ARGS+= --enable-sdlui
+PLIST_SRC+= PLIST.sdl
+. include "../../devel/SDL/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mvice-fullscreen)
+CONFIGURE_ARGS+= --enable-fullscreen
+. if !empty(PKG_OPTIONS:Mxaw)
+. include "../../x11/libXrandr/buildlink3.mk"
+. include "../../x11/libXxf86vm/buildlink3.mk"
+. endif
+. if !empty(PKG_OPTIONS:Mgnome)
+. include "../../x11/libXrandr/buildlink3.mk"
+. include "../../x11/libXxf86vm/buildlink3.mk"
+. endif
+. if !empty(PKG_OPTIONS:Msdl)
. endif
.endif
-.if !empty(PKG_OPTIONS:Mgnome)
-CONFIGURE_ARGS+= --enable-gnomeui
-USE_TOOLS+= pkg-config
-.include "../../x11/gtk2/buildlink3.mk"
-.include "../../devel/libgnomeui/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mvice-hwscaling)
+. if !empty(PKG_OPTIONS:Mxaw)
+. include "../../x11/libXv/buildlink3.mk"
+. endif
+. if !empty(PKG_OPTIONS:Mgnome)
+. include "../../graphics/gtkglext/buildlink3.mk"
+. endif
+. if !empty(PKG_OPTIONS:Msdl)
+. endif
+.endif
+
+.if !empty(PKG_OPTIONS:Mvice-ethernet)
+CONFIGURE_ARGS+= --enable-ethernet
+. include "../../net/libpcap/buildlink3.mk"
+.endif
+
+# If desired, ffmpeg and lame can be build-time-only dependencies,
+# since they are loaded dynamically only.
+.if !empty(PKG_OPTIONS:Mffmpeg)
+#BUILDLINK_DEPMETHOD.ffmpeg?= build
+CONFIGURE_ARGS+= --enable-ffmpeg
+. include "../../multimedia/ffmpeg/buildlink3.mk"
+.endif
+.if !empty(PKG_OPTIONS:Mlame)
+#BUILDLINK_DEPMETHOD.lame?= build
+. include "../../audio/lame/buildlink3.mk"
.endif