Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 16FB884E93 for ; Sun, 5 Nov 2023 21:53:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id xhXngHQjIkhf for ; Sun, 5 Nov 2023 21:53:40 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 67DAB84CF9 for ; Sun, 5 Nov 2023 21:53:40 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 59810FA2C; Sun, 5 Nov 2023 21:53:40 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1699221220279890" MIME-Version: 1.0 Date: Sun, 5 Nov 2023 21:53:40 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/devel/gettext-lib To: pkgsrc-changes@NetBSD.org Approved: commit_and_comment Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20231105215340.59810FA2C@cvs.NetBSD.org> This is a multi-part message in MIME format. --_----------=_1699221220279890 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1699221220279890 Content-Disposition: inline Content-Length: 896 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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 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 --_----------=_1699221220279890--