summaryrefslogtreecommitdiff
path: root/devel/poco/Makefile.common
blob: d3a852b58849beafb8f8ffbd9d2075e0c02117ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# $NetBSD: Makefile.common,v 1.13 2016/02/25 12:12:49 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} == "sunpro"
CONFIGURE_ARGS+=	--config=SunOS-SunStudio
. elif ${PKGSRC_COMPILER} == "gcc"
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].*)
MAKE_ENV+=		XOPEN_SOURCE=600
.  else
MAKE_ENV+=		XOPEN_SOURCE=500
.  endif
. else
CONFIGURE_ARGS+=	--config=SunOS
. endif
.endif

MAKE_FLAGS+=		POCO_BASE=${WRKSRC}