pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/SDL SDL: add a user-configurable mk.conf option ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cf965c9687d8
branches:  trunk
changeset: 376048:cf965c9687d8
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Apr 01 10:45:27 2022 +0000

description:
SDL: add a user-configurable mk.conf option to decide whether to use
SDL or sdl12-compat. This is disabled by default until sdl12-compat is
in a better state (e.g. dosbox does not work for me).

use the original SDL 1.2:
SDL12_TYPE=     retro

use sdl12-compat:
SDL12_TYPE=     compat

diffstat:

 devel/SDL/buildlink3.mk |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 94603cd7f0f4 -r cf965c9687d8 devel/SDL/buildlink3.mk
--- a/devel/SDL/buildlink3.mk   Fri Apr 01 10:43:18 2022 +0000
+++ b/devel/SDL/buildlink3.mk   Fri Apr 01 10:45:27 2022 +0000
@@ -1,10 +1,15 @@
-# $NetBSD: buildlink3.mk,v 1.34 2021/04/03 10:14:31 nia Exp $
+# $NetBSD: buildlink3.mk,v 1.35 2022/04/01 10:45:27 nia Exp $
+
+SDL12_TYPE?=           retro
+
+.if ${SDL12_TYPE:tl} == "compat"
+.  include "../../devel/sdl12-compat/buildlink3.mk"
+.else
 
 BUILDLINK_TREE+=       SDL
 
 .if !defined(SDL_BUILDLINK3_MK)
 SDL_BUILDLINK3_MK:=
-
 BUILDLINK_API_DEPENDS.SDL+=    SDL>=1.2.5nb5
 BUILDLINK_ABI_DEPENDS.SDL+=    SDL>=1.2.15nb17
 BUILDLINK_PKGSRCDIR.SDL?=      ../../devel/SDL
@@ -45,3 +50,5 @@
 .endif # SDL_BUILDLINK3_MK
 
 BUILDLINK_TREE+=       -SDL
+
+.endif # SDL12_TYPE



Home | Main Index | Thread Index | Old Index