1 |
# $MidnightBSD$ |
2 |
|
3 |
PORTNAME= qjson |
4 |
PORTVERSION= 0.8.1 |
5 |
CATEGORIES= devel |
6 |
MASTER_SITES= SF |
7 |
|
8 |
MAINTAINER= ports@MidnightBSD.org |
9 |
COMMENT= Library to manage JSON objects with Qt |
10 |
|
11 |
LICENSE= lgpl2.1 |
12 |
|
13 |
USE_QT4= corelib moc_build qmake_build rcc_build uic_build |
14 |
USES= cmake tar:bzip2 |
15 |
USE_LDCONFIG= yes |
16 |
|
17 |
PORTDOCS= * |
18 |
|
19 |
OPTIONS_DEFINE= DOCS |
20 |
|
21 |
.include <bsd.mport.options.mk> |
22 |
|
23 |
.if ${PORT_OPTIONS:MDOCS} |
24 |
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen |
25 |
.endif |
26 |
|
27 |
post-patch: |
28 |
@${REINPLACE_CMD} -e 's,/pkgconfig,/../libdata/pkgconfig,' \ |
29 |
${WRKSRC}/CMakeLists.txt |
30 |
|
31 |
post-build: |
32 |
.if ${PORT_OPTIONS:MDOCS} |
33 |
cd ${WRKSRC}/doc && doxygen |
34 |
.endif |
35 |
|
36 |
post-install: |
37 |
.if ${PORT_OPTIONS:MDOCS} |
38 |
${MKDIR} ${DOCSDIR} |
39 |
cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} \* ${DOCSDIR} |
40 |
.endif |
41 |
|
42 |
.include <bsd.port.mk> |