pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/m4



Module Name:    pkgsrc
Committed By:   nia
Date:           Mon Apr  7 15:25:50 UTC 2025

Modified Files:
        pkgsrc/devel/m4: Makefile

Log Message:
m4: Fix build on UnixWare 7.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 pkgsrc/devel/m4/Makefile

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

Modified files:

Index: pkgsrc/devel/m4/Makefile
diff -u pkgsrc/devel/m4/Makefile:1.82 pkgsrc/devel/m4/Makefile:1.83
--- pkgsrc/devel/m4/Makefile:1.82       Fri Mar 29 00:37:19 2024
+++ pkgsrc/devel/m4/Makefile    Mon Apr  7 15:25:50 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.82 2024/03/29 00:37:19 js Exp $
+# $NetBSD: Makefile,v 1.83 2025/04/07 15:25:50 nia Exp $
 
 DISTNAME=      m4-1.4.19
 PKGREVISION=   1
@@ -17,13 +17,25 @@ CONFIGURE_ARGS.Cygwin+=     ac_cv_func___fpe
 INFO_FILES=            yes
 TEST_TARGET=           check
 
+.include "../../mk/bsd.prefs.mk"
+
 CFLAGS.AIX+=   -D_LINUX_SOURCE_COMPAT
+
 .if ${MACHINE_ARCH} == "i386"
-CFLAGS.QNX+=   -march=i486  # Defaults to i386 otherwise, which lacks atomics
+CFLAGS.QNX+=           -march=i486  # Defaults to i386 otherwise, which lacks atomics
+CFLAGS.UnixWare+=      -march=i486  # Defaults to i386 otherwise, which lacks atomics
 .endif
 
 AUTO_MKDIRS=           yes
 
+.if ${OPSYS} == "UnixWare"
+# cannot handle stat functions defined as macros by uw7 libc
+SUBST_CLASSES+=                offset
+SUBST_STAGE.offset=    pre-configure
+SUBST_FILES.offset=    configure
+SUBST_SED.offset=      -e 's/FILE_OFFSET_BITS 64/FILE_OFFSET_BITS 32/g'
+.endif
+
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/examples/*.m4 ${DESTDIR}${PREFIX}/share/examples/m4
        ${LN} -sf ${PREFIX}/bin/gm4 ${DESTDIR}${PREFIX}/${PKGGNUDIR}bin/m4



Home | Main Index | Thread Index | Old Index