pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/warzone2100 warzone2100: option to select backen...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/044b62afbb33
branches:  trunk
changeset: 326802:044b62afbb33
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Fri Dec 14 17:29:32 2018 +0000

description:
warzone2100: option to select backend (sdl2/qt5)

diffstat:

 games/warzone2100/options.mk |  26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diffs (30 lines):

diff -r cc085fda3193 -r 044b62afbb33 games/warzone2100/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/warzone2100/options.mk      Fri Dec 14 17:29:32 2018 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: options.mk,v 1.1 2018/12/14 17:29:32 triaxx Exp $
+#
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.warzone2100
+PKG_OPTIONS_REQUIRED_GROUPS=   backend
+PKG_OPTIONS_GROUP.backend=     sdl2 qt5
+PKG_SUGGESTED_OPTIONS=         sdl2
+
+.include "../../mk/bsd.options.mk"
+.include "../../mk/bsd.options.mk"
+
+###
+### Use SDL backend.
+###
+.if !empty(PKG_OPTIONS:Msdl2)
+CONFIGURE_ARGS+=       --with-backend=sdl
+.include "../../devel/SDL2/buildlink3.mk"
+.endif
+
+###
+### Use QT5 backend.
+###
+.if !empty(PKG_OPTIONS:Mqt5)
+CONFIGURE_ARGS+=       --with-backend=qt
+.include "../../x11/qt5-qtx11extras/buildlink3.mk"
+.endif



Home | Main Index | Thread Index | Old Index