summaryrefslogtreecommitdiff
path: root/www/php-phrasea2/Makefile
blob: 03e91f20801468dadbfb4b2b32bb862ab9c9b79c (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
# $NetBSD: Makefile,v 1.15 2020/03/22 20:33:29 tnn Exp $
#

.include "../../www/phraseanet/Makefile.common"

MODNAME=			phrasea2
PKGREVISION=			2
PECL_VERSION=			${VERS}
PECL_LEGACY_VERSION_SCHEME=	yes
EXTRACT_ELEMENTS=		${DISTNAME}/bin/src/php_phrasea2
EXTRACT_SUFX=			.tar.gz
USE_LANGUAGES=			c c++

PHP_VERSIONS_ACCEPTED=	56

.include "../../lang/php/ext.mk"

# php/ext.mk trashes these, preventing the package from building,
# so set them back again afterwards. grr
DISTNAME=	phraseanet-v${VERS}-linux
DIST_SUBDIR=	#empty

# The package's config.mk sets CC=g++, which is a bit unorthodox and
# confuses libtool, which can't deduce the tagged configuration if
# pkgsrc's idea of CXX is something other than g++.
MAKE_FLAGS+=	CC=${CXX}

# This seems to now be needed though it wasn't before...
WRKSRC=	${WRKDIR}/${DISTNAME}/bin/src/php_phrasea2

.include "../../mk/mysql.buildlink3.mk"
.include "../../devel/libuuid/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"