aboutsummaryrefslogtreecommitdiff
path: root/devel/libplist/Makefile
blob: ae4d455bce8332ddfb7603619a14e1c6563e2331 (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
PORTNAME=	libplist
PORTVERSION=	2.2.0
PORTREVISION?=	2
CATEGORIES=	devel
MASTER_SITES=	https://github.com/libimobiledevice/${PORTNAME}/releases/download/${PORTVERSION}/

MAINTAINER?=	jhale@FreeBSD.org
COMMENT?=	Library to handle Apple Property List format

LICENSE=	LGPL21+
LICENSE_FILE=	${WRKSRC}/COPYING.LESSER

USES+=		autoreconf compiler cpe gnome libtool pathfix pkgconfig tar:bzip2
CPE_VENDOR=	libimobiledevice
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip

SLAVE_PORT?=	no

.if ${SLAVE_PORT} == no

USE_GNOME=	libxml2
CONFIGURE_ARGS=	--without-cython
USE_LDCONFIG=	${LOCALBASE}/lib

PORTDOCS=	AUTHORS NEWS README.md

OPTIONS_DEFINE=	DOCS

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.endif # ${SLAVE_PORT} == no

.include <bsd.port.pre.mk>

pre-build:
.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 45
	@${REINPLACE_CMD} -e '/__attribute__/ s,deprecated(x),deprecated(),' \
		${WRKSRC}/include/plist/plist.h
.endif

.include <bsd.port.post.mk>