pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/gettext-lib



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Nov  5 21:53:40 UTC 2023

Added Files:
        pkgsrc/devel/gettext-lib: hacks.mk

Log Message:
gettext-lib: Fix build on Mac OS X Tiger


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/gettext-lib/hacks.mk

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

Added files:

Index: pkgsrc/devel/gettext-lib/hacks.mk
diff -u /dev/null pkgsrc/devel/gettext-lib/hacks.mk:1.1
--- /dev/null   Sun Nov  5 21:53:40 2023
+++ pkgsrc/devel/gettext-lib/hacks.mk   Sun Nov  5 21:53:40 2023
@@ -0,0 +1,21 @@
+# $NetBSD: hacks.mk,v 1.1 2023/11/05 21:53:40 nia Exp $
+
+.if !defined(GETTEXT_LIB_HACKS_MK)
+GETTEXT_LIB_HACKS_MK=  # defined
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${OPSYS} == "Darwin" && ${OPSYS_VERSION} < 100500
+# There is a bug in the PowerPC SDK that causes struct __darwin_ucontext
+# to be undefined when transcluding <sys/signal.h> via stdlib.h.
+#
+# This hack simply disables defining the mcontext_t typedefs, which
+# has no negative effects on 10.4.
+PKG_HACKS+=            powerpc-signalh
+CPPFLAGS+=             -D_MCONTEXT_T=1
+CPPFLAGS+=             -D_MCONTEXT64_T=1
+CPPFLAGS+=             -D_UCONTEXT_T=1
+CPPFLAGS+=             -D_UCONTEXT64_T=1
+.endif
+
+.endif # GETTEXT_LIB_HACKS_MK



Home | Main Index | Thread Index | Old Index