# $NetBSD: Makefile.common,v 1.27 2024/02/25 15:42:05 wiz Exp $ # # used by devel/gettext/Makefile # used by devel/gettext-asprintf/Makefile # used by devel/gettext-lib/Makefile # used by devel/gettext-m4/Makefile # used by devel/gettext-tools/Makefile DISTNAME= gettext-0.22.5 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU:=gettext/} MAINTAINER?= pkgsrc-users@NetBSD.org HOMEPAGE= https://www.gnu.org/software/gettext/gettext.html LICENSE= gnu-gpl-v3 CONFLICTS= gettext<=0.10.35 USE_LIBTOOL= yes GNU_CONFIGURE= yes GNU_CONFIGURE_STRICT= no # several sub-configures .include "../../mk/bsd.fast.prefs.mk" # There is a bug in the 10.4 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 this version. .if ${OPSYS} == "Darwin" && ${OPSYS_VERSION} < 100500 CPPFLAGS+= -D_MCONTEXT_T=1 CPPFLAGS+= -D_MCONTEXT64_T=1 CPPFLAGS+= -D_UCONTEXT_T=1 CPPFLAGS+= -D_UCONTEXT64_T=1 .endif