summaryrefslogtreecommitdiff
path: root/comms/libimobiledevice/Makefile
blob: a97d5ecdef341195d1e44faebe49e76b6750569f (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# $FreeBSD$

PORTNAME=	libimobiledevice
PORTVERSION=	1.1.5
PORTREVISION?=	0
CATEGORIES?=	comms
MASTER_SITES=	http://www.${PORTNAME}.org/downloads/

MAINTAINER?=	avilla@FreeBSD.org
COMMENT?=	Library to communicate with Apple iOS devices

LICENSE?=	LGPL21

SLAVE_PORT?=	no

USES=		pkgconfig
USE_BZIP2=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	openssl_LIBS=-lssl
CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
MAKE_JOBS_SAFE=	yes

.if ${SLAVE_PORT} == "no"

LIB_DEPENDS=	gnutls:${PORTSDIR}/security/gnutls \
		tasn1:${PORTSDIR}/security/libtasn1 \
		gcrypt:${PORTSDIR}/security/libgcrypt \
		plist:${PORTSDIR}/devel/libplist \
		usbmuxd:${PORTSDIR}/comms/usbmuxd

USE_GNOME=	glib20
CONFIGURE_ARGS+=--without-cython
USE_CSTD=	gnu89
USE_LDCONFIG=	yes

PORTDOCS=	AUTHORS NEWS README

MAN1=		idevice_id.1 idevicebackup.1 idevicebackup2.1 idevicedate.1 \
		idevicedebugserverproxy.1 idevicediagnostics.1 \
		ideviceenterrecovery.1 ideviceimagemounter.1 ideviceinfo.1 \
		idevicepair.1 ideviceprovision.1 idevicescreenshot.1 \
		idevicesyslog.1

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e 's, *@ssl_requires@,,' \
		${WRKSRC}/${PORTNAME}*.pc.in
	@${REINPLACE_CMD} -e 's,$$(libdir)/pkgconfig,${PREFIX}/libdata/pkgconfig,g' \
		${WRKSRC}/Makefile.in

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif

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

.include <bsd.port.mk>