aboutsummaryrefslogtreecommitdiffstats
path: root/www/cppcms/Makefile
blob: 56b3dad5b5adb555dee6c5df35814267524dff0f (plain) (blame)
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
# $FreeBSD$

PORTNAME=   cppcms
PORTVERSION=    1.2.0
PORTREVISION=   1
CATEGORIES= www
MASTER_SITES=   SF/cppcms/${PORTNAME}/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    C++ web development framework

LICENSE=    LGPL3

LIB_DEPENDS=    libpcre.so:devel/pcre

BROKEN_powerpc64=   Does not build: error: 'localeconv_l' was not declared in this scope

USES=       cmake python:2 shebangfix tar:bzip2 ssl
USE_LDCONFIG=   yes
SHEBANG_FILES=  bin/cppcms_tmpl_cc

OPTIONS_DEFINE=     EXAMPLES GCRYPT ICU
OPTIONS_DEFAULT=    ICU
ICU_DESC=       ICU unicode support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MICU}
USES+=      compiler:c++11-lib
USE_CXXSTD= gnu++11
LIB_DEPENDS+=   libicuuc.so:devel/icu
CMAKE_ARGS+=    -DDISABLE_ICONV:BOOL=ON
.else
USES+=      iconv
CMAKE_ARGS+=    -DDISABLE_ICU_LOCALE:BOOL=ON
.endif

.if ${PORT_OPTIONS:MGCRYPT}
LIB_DEPENDS+=   libgcrypt.so:security/libgcrypt
CMAKE_ARGS+=    -DDISABLE_GCRYPT:BOOL=OFF
.else
CMAKE_ARGS+=    -DDISABLE_GCRYPT:BOOL=ON
.endif

post-install:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>