2011-02-28 06:09:56 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= usbmuxd
|
2013-05-07 02:29:48 +02:00
|
|
|
PORTVERSION= 1.0.8
|
2011-02-28 06:09:56 +01:00
|
|
|
CATEGORIES= comms
|
2012-04-19 01:23:10 +02:00
|
|
|
MASTER_SITES= http://www.libimobiledevice.org/downloads/
|
2011-02-28 06:09:56 +01:00
|
|
|
|
|
|
|
MAINTAINER= avilla@FreeBSD.org
|
2013-05-07 02:29:48 +02:00
|
|
|
COMMENT= Daemon for multiplexing connections over USB to iPhone/iPod Touch
|
2011-02-28 06:09:56 +01:00
|
|
|
|
2013-12-11 16:10:44 +01:00
|
|
|
LIB_DEPENDS= libplist.so:${PORTSDIR}/devel/libplist
|
2011-02-28 06:09:56 +01:00
|
|
|
|
2014-07-29 20:41:15 +02:00
|
|
|
USES= cmake pkgconfig tar:bzip2
|
2011-02-28 06:09:56 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
PORTDOCS= AUTHORS README README.devel
|
|
|
|
|
2013-01-05 04:00:14 +01:00
|
|
|
OPTIONS_DEFINE= INOTIFY
|
|
|
|
|
|
|
|
INOTIFY_DESC= Use inotify instead of polling (saves energy)
|
2012-04-19 01:23:10 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-01-05 04:00:14 +01:00
|
|
|
.if ${PORT_OPTIONS:MINOTIFY}
|
2013-12-11 16:10:44 +01:00
|
|
|
LIB_DEPENDS+= libinotify.so:${PORTSDIR}/devel/libinotify
|
2013-05-07 02:29:48 +02:00
|
|
|
CMAKE_ARGS+= -DWANT_INOTIFY:BOOL=TRUE
|
2012-04-19 01:23:10 +02:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWANT_INOTIFY:BOOL=FALSE
|
|
|
|
.endif
|
2011-02-28 06:09:56 +01:00
|
|
|
|
2011-03-07 01:35:46 +01:00
|
|
|
.if ${OSVERSION} <= 800107 || ${OSVERSION} >= 900000 && ${OSVERSION} <= 900002
|
2012-04-19 01:23:10 +02:00
|
|
|
IGNORE= requires libusb 1.0.3
|
2011-02-28 06:09:56 +01:00
|
|
|
.endif
|
|
|
|
|
2013-05-07 02:29:48 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,$${LIB_SUFFIX}/pkgconfig,data/pkgconfig,' \
|
2011-02-28 06:09:56 +01:00
|
|
|
${WRKSRC}/CMakeLists.txt
|
2013-05-07 02:29:48 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
|
2012-04-19 01:23:10 +02:00
|
|
|
${WRKSRC}/Modules/FindInotify.cmake
|
2011-02-28 06:09:56 +01:00
|
|
|
|
2012-02-04 18:39:12 +01:00
|
|
|
pre-install:
|
2013-05-07 02:29:48 +02:00
|
|
|
@${REINPLACE_CMD} -e '1 s,python,env python,' \
|
2012-02-04 18:39:12 +01:00
|
|
|
${WRKSRC}/python-client/*.py
|
|
|
|
|
2011-02-28 06:09:56 +01:00
|
|
|
post-install:
|
2014-02-28 17:18:45 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/python-client/*.py ${STAGEDIR}${DATADIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2011-02-28 06:09:56 +01:00
|
|
|
|
2012-04-19 01:23:10 +02:00
|
|
|
.include <bsd.port.mk>
|