pkgsrc/devel/poco/Makefile.common
2021-09-28 12:55:12 +00:00

62 lines
1.8 KiB
Text

# $NetBSD: Makefile.common,v 1.18 2021/09/28 12:55:12 jperkin Exp $
#
# used by devel/poco/Makefile
# used by databases/poco-data/Makefile
# used by databases/poco-data-sqlite/Makefile
# used by databases/poco-data-mysql/Makefile
# used by databases/poco-data-odbc/Makefile
POCO_VERSION= 1.6.1
DISTNAME= poco-${POCO_VERSION}-all
MASTER_SITES= http://pocoproject.org/releases/poco-${POCO_VERSION}/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.pocoproject.org/
LICENSE= boost-license
PATCHDIR= ${.CURDIR}/../../devel/poco/patches
DISTINFO_FILE= ${.CURDIR}/../../devel/poco/distinfo
HAS_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
# Various places have:
# error: unable to open output file '.../poco-1.4.2p1-all/Foundation/obj/NetBSD/amd64/debug_shared/Ascii.o'
MAKE_JOBS_SAFE= no
# Fix Net/sample build at least.
BUILDLINK_TRANSFORM+= l:PocoUtil:PocoUtil:PocoJSON
CONFIGURE_ARGS+= --prefix=${PREFIX} --omit=Data,MongoDB
# don't use the bundled versions of SQLite, zlib, etc..
CONFIGURE_ARGS+= --unbundled
.include "../../mk/bsd.prefs.mk"
.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Bitrig"
CONFIGURE_ARGS+= --config=FreeBSD
.endif
# NetBSD doesn't have fenv.h. We should add one.
CONFIGURE_ARGS.NetBSD+= --no-fpenvironment
CONFIGURE_ARGS.NetBSD+= --no-sharedmemory
.if ${OPSYS} == "SunOS"
.include "../../mk/compiler.mk"
. if ${PKGSRC_COMPILER:Msunpro}
CONFIGURE_ARGS+= --config=SunOS-SunStudio
. else
CONFIGURE_ARGS+= --config=SunOS-GCC
# GCC 4.6 and newer forces c99 for C++, need _XOPEN_SOURCE=600
. if !empty(CC_VERSION:Mgcc-4.[6-9].*) || !empty(CC_VERSION:Mgcc-[5-9].*) || !empty(CC_VERSION:Mgcc-1[0-9].*) || !empty(PKGSRC_COMPILER:Mclang)
MAKE_ENV+= XOPEN_SOURCE=600
. else
MAKE_ENV+= XOPEN_SOURCE=500
. endif
. endif
.endif
MAKE_FLAGS+= POCO_BASE=${WRKSRC}