pkgsrc/devel/poco/Makefile.common
2012-06-11 12:40:31 +00:00

56 lines
1.4 KiB
Text

# $NetBSD: Makefile.common,v 1.6 2012/06/11 12:40:31 fhajny 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.4.2p1
DISTNAME= poco-${POCO_VERSION}-all
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=poco/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.pocoproject.org/
PKG_DESTDIR_SUPPORT= user-destdir
LICENSE= boost-license
PATCHDIR= ${.CURDIR}/../../devel/poco/patches
DISTINFO_FILE= ${.CURDIR}/../../devel/poco/distinfo
HAS_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
CONFIGURE_ARGS+= --prefix=${PREFIX} --omit=Data
# 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"
CONFIGURE_ARGS+= --config=FreeBSD
.endif
.if ${OPSYS} == "NetBSD"
# NetBSD doesn't have fenv.h. We should add one.
CONFIGURE_ARGS+= --no-fpenvironment
CONFIGURE_ARGS+= --no-sharedmemory
.endif
.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
. if !empty(MACHINE_PLATFORM:MSunOS-5.1[0-9]-*) && \
!empty(CC_VERSION:Mgcc-4.[6-9].*)
USE_LANGUAGES= c c++ c99
. endif
. else
CONFIGURE_ARGS+= --config=SunOS
. endif
.endif