blob: 28b9d3c44f4c03c2c2c916aa5aaa37fee9da5548 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Created by: Axel Steiner <ast@treibsand.com>
# $FreeBSD$
PORTNAME= libcmime
PORTVERSION= 0.2.1
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.libcmime.org/files/
MAINTAINER= ast@treibsand.com
COMMENT= Lightweight C mime library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
USES= bison cmake:insource,noninja pkgconfig
USE_LDCONFIG= yes
CMAKE_ARGS= --no-warn-unused-cli
PORTDOCS= AUTHORS CHANGELOG INSTALL README
OPTIONS_DEFINE= DEBUG DOCS DOXYGEN
OPTIONS_SUB= yes
DOCS_ALL_TARGET= doc
DEBUG_CMAKE_BOOL= ENABLE_DEBUG
DOXYGEN_IMPLIES= DOCS
DOXYGEN_BUILD_DEPENDS= doxygen>=1.8:devel/doxygen \
dot:graphics/graphviz
DOXYGEN_CMAKE_BOOL= ENABLE_DOC
post-patch:
@${REINPLACE_CMD} -E -e 's|\$$\{CMAKE_INSTALL_LIBDIR}(/pkgconfig)|$${CMAKE_INSTALL_PREFIX}/libdata\1|' \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's|libcmime-\$${CMIME_MAJOR_VERSION}.\$${CMIME_MINOR_VERSION}.\$${CMIME_MICRO_VERSION}|libcmime|' \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -E -e 's|STRIP_FROM_PATH = ../src|STRIP_FROM_PATH = ../|' \
${WRKSRC}/Doxyfile.cmake
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
post-install-DOXYGEN-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|