blob: 3193e292e7e5042bb9140fa92144fb5cf1c1496d (
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
|
# $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}
|