pkgsrc-Changes archive

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

CVS commit: pkgsrc/x11/xorg-cf-files



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Tue Jun 27 10:41:06 UTC 2023

Modified Files:
        pkgsrc/x11/xorg-cf-files: Makefile

Log Message:
x11/xorg-cf-files: Make empty host.def when cross-compiling.

Otherwise, MAKE_PROGRAM from the build environment gets baked into
the package, which is wrong.

NetBSD does this in xsrc, so it must not matter that much!  In any
case, I think most of this xorg-cf-files business is long since
obsolete in the modular X.org era?


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 pkgsrc/x11/xorg-cf-files/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/xorg-cf-files/Makefile
diff -u pkgsrc/x11/xorg-cf-files/Makefile:1.42 pkgsrc/x11/xorg-cf-files/Makefile:1.43
--- pkgsrc/x11/xorg-cf-files/Makefile:1.42      Wed Feb 22 07:44:55 2023
+++ pkgsrc/x11/xorg-cf-files/Makefile   Tue Jun 27 10:41:06 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2023/02/22 07:44:55 wiz Exp $
+# $NetBSD: Makefile,v 1.43 2023/06/27 10:41:06 riastradh Exp $
 
 DISTNAME=              xorg-cf-files-1.0.8
 CATEGORIES=            x11 devel
@@ -30,6 +30,8 @@ SUBST_SED.fixpaths+=  -e 's,/usr/ccs/bin/
 SUBST_SED.fixpaths+=   -e 's,/usr/ccs/bin/yacc,${PREFIX}/bin/yacc,g'
 .endif
 
+.include "../../mk/bsd.prefs.mk"
+
 post-extract:
        ${CP} ${FILESDIR}/host.def ${WRKSRC}
        ${CP} ${FILESDIR}/xorgsite.def ${WRKSRC}
@@ -45,6 +47,7 @@ pre-configure:
                -e "s|@@INSTALL@@|${INSTALL}|g" \
                ${WRKSRC}/${sys}.cf.before > ${WRKSRC}/${sys}.cf
 .endfor
+.if ${USE_CROSS_COMPILE:tl} != "yes" # MAKE_PROGRAM is wrong; empty host.def is fine
        ${SED} -e "s|@PREFIX@|${PREFIX}|g"              \
                -e "s|@PKGMANDIR@|${PKGMANDIR}|"        \
                -e "s|@MAKE@|${MAKE_PROGRAM}|"  ${FILESDIR}/host.def > \
@@ -52,6 +55,7 @@ pre-configure:
        if [ ${X11BASE} != ${PREFIX} ]; then \
                ${ECHO} '#define RealProjectRoot ${X11BASE}' >> ${WRKSRC}/host.def; \
        fi
+.endif
 
 .include "../../x11/xorgproto/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index