summaryrefslogtreecommitdiff
path: root/multimedia/vlc/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/vlc/options.mk')
-rw-r--r--multimedia/vlc/options.mk76
1 files changed, 68 insertions, 8 deletions
diff --git a/multimedia/vlc/options.mk b/multimedia/vlc/options.mk
index a83b5275cf7..c72425ddd6b 100644
--- a/multimedia/vlc/options.mk
+++ b/multimedia/vlc/options.mk
@@ -1,13 +1,57 @@
-# $NetBSD: options.mk,v 1.6 2008/04/12 22:43:08 jlam Exp $
+# $NetBSD: options.mk,v 1.7 2008/09/08 18:58:24 ahoka Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.vlc
-PKG_SUPPORTED_OPTIONS= skins wxwidgets faad arts
-PKG_SUGGESTED_OPTIONS= wxwidgets faad
+PKG_SUPPORTED_OPTIONS= debug faad arts dbus skins sdl esound x11
+PKG_SUGGESTED_OPTIONS= x11 esound
.include "../../mk/bsd.options.mk"
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
+## ESOUND audio backend
+
+.if !empty(PKG_OPTIONS:Mesound)
+CONFIGURE_ARGS+= --enable-esd
+.include "../../audio/esound/buildlink3.mk"
+PLIST.esound= yes
+.endif
+
+## SDL backend support
+
+.if !empty(PKG_OPTIONS:Msdl)
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../graphics/SDL_image/buildlink3.mk"
+PLIST.sdl= yes
+.else
+CONFIGURE_ARGS+= --disable-sdl
+CONFIGURE_ARGS+= --disable-sdl-image
+.endif
+
+## DBUS message bus support
+## also libnotify because it uses dbus
+## so taking them apart would make no sense.
+
+.if !empty(PKG_OPTIONS:Mdbus)
+CONFIGURE_ARGS+= --enable-dbus
+.include "../../sysutils/dbus/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-notify
+.include "../../sysutils/libnotify/buildlink3.mk"
+PLIST.dbus= yes
+.else
+CONFIGURE_ARGS+= --disable-dbus
+.endif
+
+## DEBUG build or release build
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug
+CONFIGURE_ARGS+= --disable-optimizations
+.else
+CONFIGURE_ARGS+= --enable-release
+.endif
+
+## SKINS frontend
+
.if !empty(PKG_OPTIONS:Mskins)
CONFIGURE_ARGS+= --enable-skins2
PLIST.skins= yes
@@ -15,14 +59,28 @@ PLIST.skins= yes
CONFIGURE_ARGS+= --disable-skins2
.endif
-.if !empty(PKG_OPTIONS:Mwxwidgets)
-.include "../../x11/wxGTK/buildlink3.mk"
-CONFIGURE_ARGS+= --enable-wxwidgets
-PLIST.wxwidgets= yes
+## X11 dependecy and QT4 frontend
+
+.if !empty(PKG_OPTIONS:Mx11)
+DEPENDS+= dejavu-ttf>=2.0:../../fonts/dejavu-ttf
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../x11/libXv/buildlink3.mk"
+.include "../../x11/libXxf86vm/buildlink3.mk"
+.include "../../x11/libXdamage/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../x11/qt4-libs/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-qt4
+CONFIGURE_ARGS+= --enable-x11
+PLIST.x11= yes
.else
-CONFIGURE_ARGS+= --disable-wxwidgets
+CONFIGURE_ARGS+= --disable-x11
+CONFIGURE_ARGS+= --disable-qt4
.endif
+## FAAD support (faad is non-redistributable)
+
.if !empty(PKG_OPTIONS:Mfaad)
CONFIGURE_ARGS+= --enable-faad
PLIST.faad= yes
@@ -31,6 +89,8 @@ PLIST.faad= yes
CONFIGURE_ARGS+= --disable-faad
.endif
+## ARTS audio system support
+
.if !empty(PKG_OPTIONS:Marts)
CONFIGURE_ARGS+= --enable-arts
PLIST.arts= yes