[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / gnustep-base

File: [cvs.NetBSD.org] / pkgsrc / devel / gnustep-base / Makefile (download)

Revision 1.100, Wed Oct 26 10:31:21 2022 UTC (3 months, 1 week ago) by wiz
Branch: MAIN
Changes since 1.99: +2 -2 lines

*: bump PKGREVISION for libunistring shlib major bump

# $NetBSD: Makefile,v 1.100 2022/10/26 10:31:21 wiz Exp $

DISTNAME=	gnustep-base-1.27.0
PKGREVISION=	10
CATEGORIES=	devel gnustep
MASTER_SITES=	${MASTER_SITE_GNUSTEP:=core/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.gnustep.org/
COMMENT=	GNUstep foundation classes
LICENSE=	gnu-gpl-v3

USE_TOOLS+=		pkg-config
USE_LANGUAGES=		objc
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--exec-prefix=${PREFIX}/libexec/GNUstep
CONFIGURE_ARGS+=	--with-installation-domain=SYSTEM
# Allow building with NetBSD libiconv that does not support //TRANSLIT
CONFIGURE_ARGS+=	--enable-stricticonv
CONFIGURE_ENV+=		INSTALL_PROGRAM=${INSTALL_SCRIPT:Q}
MAKE_FILE=		GNUmakefile

# ld: -r and -pie may not be used together
MKPIE_SUPPORTED=	no

# GSMime.m:1098:7: error: array subscript is of type 'char' [-Werror,-Wchar-subscripts]
# if (isxdigit(*src) && ctxt->pos < sizeof(ctxt->buf))
# Looks suspicious, but ignore for now.
BUILDLINK_TRANSFORM+=	rm:-Werror=char-subscripts

pre-configure:
	sed 's|@PREFIX@|${PREFIX}|g' <${FILESDIR}/openapp >${WRKDIR}/openapp

.include "../../devel/gnustep-make/gnustep.mk"
.include "../../mk/compiler.mk"
.include "../../mk/pthread.buildlink3.mk"

PTHREAD_LIBS=		-lpthread

.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
PTHREAD_LIBS+=		-lpth
.endif

SUBST_CLASSES+=		pthread
SUBST_STAGE.pthread=	pre-configure
SUBST_FILES.pthread=	configure
SUBST_SED.pthread=	-e 's,@PTHREAD_LIBS@,${PTHREAD_LIBS},'
SUBST_MESSAGE.pthread=	Fix @PTHREAD_LIBS@ left out in file configure

CONFIGURE_ARGS+=	--with-library-flags=${GNUSTEP_LDFLAGS:Q}

INSTALLATION_DIRS+=	share/GNUstep/Bundles
INSTALLATION_DIRS+=	share/GNUstep/Frameworks

.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/libffi/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../devel/gnustep-make/buildlink3.mk"
.include "../../devel/gnustep-objc/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"