pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/SDL2
Module Name: pkgsrc
Committed By: riastradh
Date: Thu Jun 6 20:45:16 UTC 2024
Modified Files:
pkgsrc/devel/SDL2: buildlink3.mk
Log Message:
devel/SDL2/buildlink3.mk: Expose sdl2-config to cross-builds.
Although sdl2-config is part of the cross-built package, we execute
it out of the cross-destdir nevertheless because it's a shell script
and it provides the necessary configuration relative to the sysroot
for building dependencies.
No change to native builds because this is conditional on
USE_CROSS_COMPILE.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/SDL2/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/SDL2/buildlink3.mk
diff -u pkgsrc/devel/SDL2/buildlink3.mk:1.21 pkgsrc/devel/SDL2/buildlink3.mk:1.22
--- pkgsrc/devel/SDL2/buildlink3.mk:1.21 Sat Apr 6 08:04:57 2024
+++ pkgsrc/devel/SDL2/buildlink3.mk Thu Jun 6 20:45:16 2024
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.21 2024/04/06 08:04:57 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.22 2024/06/06 20:45:16 riastradh Exp $
BUILDLINK_TREE+= SDL2
@@ -16,6 +16,15 @@ BUILDLINK_API_DEPENDS.SDL2+= SDL2>=2.0
BUILDLINK_PKGSRCDIR.SDL2?= ../../devel/SDL2
BUILDLINK_INCDIRS.SDL2+= include/SDL2
+. if ${USE_CROSS_COMPILE:tl} == "yes"
+# sdl2-config is a shell script that we need to run at build-time to
+# learn about the target system's SDL2 toolchain options. This is
+# grody but it may not be trivial to replace by something more sensible
+# like pkg-config.
+TOOLS_CREATE+= sdl2-config
+TOOLS_PATH.sdl2-config= ${CROSS_DESTDIR}${LOCALBASE}/bin/sdl2-config
+. endif
+
pkgbase := SDL2
.include "../../mk/pkg-build-options.mk"
Home |
Main Index |
Thread Index |
Old Index