aboutsummaryrefslogtreecommitdiffstats
path: root/devel/grantlee/Makefile
blob: 28a05c437e400ab7c96144f47ba630ee41e7a1d3 (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
# New ports collection makefile for:    grantlee
# Date created:             2010-10-03
# Whom:                 Dima Panov <fluffy@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=   grantlee
DISTVERSION=    0.2.0
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   http://downloads.${PORTNAME}.org/ \
        http://www.loegria.net/${PORTNAME}/

MAINTAINER= kde@FreeBSD.org
COMMENT=    String template engine for Qt4

LICENSE=    LGPL21
LICENSE_FILE=   ${WRKSRC}/COPYING.LIB

USE_CMAKE=  yes
USE_QT_VER= 4
USE_LDCONFIG=   yes
QT_COMPONENTS=  corelib gui script \
        qmake_build moc_build rcc_build uic_build qtestlib_build
CMAKE_ARGS+=    -DBUILD_TESTS:BOOL=FALSE
CMAKE_OUTSOURCE=    yes
MAKE_JOBS_UNSAFE=   yes

OPTIONS=    DOCS "Install API documentation" off

.include <bsd.port.pre.mk>

.if defined(WITH_DOCS)
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \
        dot:${PORTSDIR}/graphics/graphviz
PORTDOCS=   *

post-install:
    ${MKDIR} ${DOCSDIR}
    cd ${BUILD_WRKSRC} && ${MAKE} docs
    cd ${BUILD_WRKSRC}/apidox && ${COPYTREE_SHARE} \* ${DOCSDIR}
.endif

.include <bsd.port.post.mk>