pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/dosbox-x dosbox-x: Add missing options file
details: https://anonhg.NetBSD.org/pkgsrc/rev/04672d83927a
branches: trunk
changeset: 340132:04672d83927a
user: nia <nia%pkgsrc.org@localhost>
date: Sun Sep 22 23:28:55 2019 +0000
description:
dosbox-x: Add missing options file
diffstat:
emulators/dosbox-x/options.mk | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
diffs (47 lines):
diff -r d366f80361a0 -r 04672d83927a emulators/dosbox-x/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/dosbox-x/options.mk Sun Sep 22 23:28:55 2019 +0000
@@ -0,0 +1,43 @@
+# $NetBSD: options.mk,v 1.1 2019/09/22 23:28:55 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.dosbox-x
+PKG_SUPPORTED_OPTIONS= alsa ffmpeg opengl x11
+PKG_SUGGESTED_OPTIONS.Linux= alsa
+PKG_SUGGESTED_OPTIONS= ffmpeg opengl
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${OPSYS} != "Darwin"
+PKG_SUGGESTED_OPTIONS+= x11
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Malsa)
+CONFIGURE_ARGS+= --enable-alsa-midi
+.include "../../audio/alsa-lib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-alsa-midi
+.endif
+
+.if !empty(PKG_OPTIONS:Mffmpeg)
+CONFIGURE_ARGS+= --enable-avcodec
+.include "../../multimedia/ffmpeg4/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-avcodec
+.endif
+
+.if !empty(PKG_OPTIONS:Mopengl)
+CONFIGURE_ARGS+= --enable-opengl
+.else
+CONFIGURE_ARGS+= --disable-opengl
+.endif
+
+.if !empty(PKG_OPTIONS:Mx11)
+CONFIGURE_ARGS+= --enable-x11
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/libxkbfile/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-x11
+.endif
Home |
Main Index |
Thread Index |
Old Index