pkgsrc-Changes archive

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

CVS commit: pkgsrc/x11/gtk2



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Fri Apr 12 19:41:56 UTC 2024

Modified Files:
        pkgsrc/x11/gtk2: Makefile

Log Message:
x11/gtk2: Make this cross-compile.

Maybe we should have a separate package just for the
gtk2-update-icon-cache binary to reduce the toolchain weight here.


To generate a diff of this commit:
cvs rdiff -u -r1.341 -r1.342 pkgsrc/x11/gtk2/Makefile

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

Modified files:

Index: pkgsrc/x11/gtk2/Makefile
diff -u pkgsrc/x11/gtk2/Makefile:1.341 pkgsrc/x11/gtk2/Makefile:1.342
--- pkgsrc/x11/gtk2/Makefile:1.341      Fri Apr 12 19:40:24 2024
+++ pkgsrc/x11/gtk2/Makefile    Fri Apr 12 19:41:56 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.341 2024/04/12 19:40:24 riastradh Exp $
+# $NetBSD: Makefile,v 1.342 2024/04/12 19:41:56 riastradh Exp $
 
 DISTNAME=      gtk+-2.24.33
 PKGNAME=       ${DISTNAME:S/gtk/gtk2/}
@@ -58,6 +58,17 @@ CONFIGURE_ARGS.Darwin+=      --disable-visibi
 
 CPPFLAGS+=             -DPREFIX="\"${PREFIX}\""
 
+.if ${USE_CROSS_COMPILE:tl} == "yes"
+TOOL_DEPENDS+=         glib2-tools>=0:../../devel/glib2-tools
+CONFIGURE_ARGS+=       GLIB_GENMARSHAL=${TOOLBASE:Q}/bin/glib-genmarshal
+CONFIGURE_ARGS+=       GLIB_MKENUMS=${TOOLBASE:Q}/bin/glib-mkenums
+
+# XXX Sure would be nice if this didn't rely on pulling in all the
+# graphics stack dependencies at build-time for this single program.
+TOOL_DEPENDS+=         ${PKGNAME}:../../${PKGPATH}
+CONFIGURE_ARGS+=       GTK_UPDATE_ICON_CACHE=${TOOLBASE:Q}/bin/gtk2-update-icon-cache
+.endif
+
 #SUBST_CLASSES+=       pthread
 #SUBST_STAGE.pthread=  pre-configure
 #SUBST_MESSAGE.pthread=        Fixing pthread flags.



Home | Main Index | Thread Index | Old Index