blob: cf0a8b229a6caea6a66ff2d90ca562a70dc1f336 (
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
|
# $FreeBSD$
PORTNAME= libplist
PORTVERSION= 1.10
PORTREVISION?= 0
CATEGORIES?= devel
MASTER_SITES= http://www.libimobiledevice.org/downloads/
MAINTAINER?= avilla@FreeBSD.org
COMMENT?= Library to handle Apple Property List format
LICENSE?= LGPL21
SLAVE_PORT?= no
USE_BZIP2= yes
USES= cmake pkgconfig
.if ${SLAVE_PORT} == "no"
USE_GNOME= libxml2
CMAKE_ARGS= -DENABLE_CYTHON:BOOL=False \
-DENABLE_SWIG:BOOL=False
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= ${LOCALBASE}/lib
PORTDOCS= AUTHORS NEWS README
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
# Required for iconv headers (included by libxml2). Do not add to
# CFLAGS as it may break updates from old versions.
@${REINPLACE_CMD} -e 's,$${LIBXML2_INCLUDE_DIR},$${LIBXML2_INCLUDE_DIR} ${LOCALBASE}/include,' \
${WRKSRC}/src/CMakeLists.txt
@${REINPLACE_CMD} -e 's,$${CMAKE_INSTALL_LIBDIR}/pkgconfig,libdata/pkgconfig,' \
${WRKSRC}/CMakeLists.txt
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.endif # ${SLAVE_PORT} == "no"
.include <bsd.port.mk>
|