summaryrefslogtreecommitdiff
path: root/audio/ocp/options.mk
diff options
context:
space:
mode:
authorshattered <shattered@pkgsrc.org>2012-04-30 08:26:41 +0000
committershattered <shattered@pkgsrc.org>2012-04-30 08:26:41 +0000
commitbc2c0b2f818cc6b7fe887cd4da8f88d4de6a16bb (patch)
tree5edb8db7299ca8f9b2ed9ed967f38406789ec202 /audio/ocp/options.mk
parent9fef8a0895853be0c4c720cea055d421d3a394c7 (diff)
downloadpkgsrc-bc2c0b2f818cc6b7fe887cd4da8f88d4de6a16bb.tar.gz
Add x11 and sdl options (sdl does not work yet).
Diffstat (limited to 'audio/ocp/options.mk')
-rw-r--r--audio/ocp/options.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/audio/ocp/options.mk b/audio/ocp/options.mk
new file mode 100644
index 00000000000..0b0af7ff787
--- /dev/null
+++ b/audio/ocp/options.mk
@@ -0,0 +1,28 @@
+# $NetBSD: options.mk,v 1.1 2012/04/30 08:26:41 shattered Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ocp
+PKG_SUPPORTED_OPTIONS= x11
+
+.include "../../mk/bsd.options.mk"
+
+# broken (crashes at startup)
+.if !empty(PKG_OPTIONS:Msdl)
+CONFIGURE_ARGS+= --with-sdl=yes
+PLIST.sdl= yes
+PLIST.desktop= yes
+.include "../../devel/SDL/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-sdl
+.endif
+
+.if !empty(PKG_OPTIONS:Mx11)
+CONFIGURE_ARGS+= --with-x11=yes
+PLIST.x11= yes
+PLIST.desktop= yes
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/xextproto/buildlink3.mk"
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../x11/libXxf86vm/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-x11
+.endif