pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/SDL



Module Name:    pkgsrc
Committed By:   nia
Date:           Fri Apr  1 10:45:27 UTC 2022

Modified Files:
        pkgsrc/devel/SDL: buildlink3.mk

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 pkgsrc/devel/SDL/buildlink3.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/SDL/buildlink3.mk
diff -u pkgsrc/devel/SDL/buildlink3.mk:1.34 pkgsrc/devel/SDL/buildlink3.mk:1.35
--- pkgsrc/devel/SDL/buildlink3.mk:1.34 Sat Apr  3 10:14:31 2021
+++ pkgsrc/devel/SDL/buildlink3.mk      Fri Apr  1 10:45:27 2022
@@ -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 @@ pkgbase := SDL
 .endif # SDL_BUILDLINK3_MK
 
 BUILDLINK_TREE+=       -SDL
+
+.endif # SDL12_TYPE



Home | Main Index | Thread Index | Old Index