aboutsummaryrefslogtreecommitdiffstats
path: root/comms/libimobiledevice/Makefile
blob: 4efaa5b31fbd2424d661c4bc731aa6fb13ae283f (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
# $FreeBSD$

PORTNAME=   libimobiledevice
PORTVERSION=    1.1.5
PORTREVISION?=  1
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=       libtool pathfix pkgconfig tar:bzip2
USE_OPENSSL=    yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= openssl_CFLAGS="-I${OPENSSLINC}" \
        openssl_LIBS="-L${OPENSSLLIB} -lssl -lcrypto"
CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip

.if ${SLAVE_PORT} == "no"

LIB_DEPENDS=    libplist.so:${PORTSDIR}/devel/libplist \
        libusbmuxd.so:${PORTSDIR}/comms/usbmuxd

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

PORTDOCS=   AUTHORS NEWS README

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's, *@ssl_requires@,,' \
        ${WRKSRC}/${PORTNAME}*.pc.in

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

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

.include <bsd.port.mk>