aboutsummaryrefslogtreecommitdiffstats
path: root/comms/libimobiledevice/Makefile
blob: aa1b95caaeba5db38a395ac5b7cdfb5a2f6cb85c (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
62
63
64
# New ports collection makefile for:    libimobiledevice
# Date created:             10 June 2010
# Whom:                 Alberto Villa <avilla@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=   libimobiledevice
PORTVERSION=    1.0.6
PORTREVISION=   2
CATEGORIES= comms
MASTER_SITES=   http://www.${PORTNAME}.org/downloads/

MAINTAINER= avilla@FreeBSD.org
COMMENT=    A library to communicate with Apple iPhone/iPod Touch devices

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

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

USE_BZIP2=  yes
USE_GNOME=  glib20
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  LDFLAGS="-L${LOCALBASE}/lib"
MAKE_JOBS_SAFE= yes
CFLAGS+=    -I${LOCALBASE}/include
USE_LDCONFIG=   yes

PORTDOCS=   AUTHORS NEWS README

MAN1=       idevice_id.1 idevicebackup.1 ideviceenterrecovery.1 \
        ideviceimagemounter.1 ideviceinfo.1 idevicepair.1 \
        idevicescreenshot.1 idevicesyslog.1

#OPTIONS=   PYTHON  "Enable Python bindings (needs Swig)" off
#
#.include <bsd.port.options.mk>
#
#.ifdef(WITH_PYTHON)
#BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13
#USE_PYTHON=    yes
#PLIST_SUB+=    PYTHON=""
#.else
CONFIGURE_ARGS+=    --without-swig
#PLIST_SUB+=    PYTHON="@comment "
#.endif

pre-configure:
    ${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
        ${WRKSRC}/Makefile.in

post-install:
.ifndef(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>