summaryrefslogtreecommitdiffstats
path: root/devel/libplist/Makefile
blob: b4e6b45cb779408737b4fa673a06d99afdca058d (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
# $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

NO_STAGE=	yes
.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:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif

.endif # ${SLAVE_PORT} == "no"

.include <bsd.port.mk>
OpenPOWER on IntegriCloud