freebsd-ports/comms/usbmuxd/Makefile

52 lines
1.3 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= usbmuxd
2013-05-07 02:29:48 +02:00
PORTVERSION= 1.0.8
CATEGORIES= comms
MASTER_SITES= http://www.libimobiledevice.org/downloads/
MAINTAINER= avilla@FreeBSD.org
2013-05-07 02:29:48 +02:00
COMMENT= Daemon for multiplexing connections over USB to iPhone/iPod Touch
LIB_DEPENDS= libplist.so:${PORTSDIR}/devel/libplist
USES= cmake pkgconfig tar:bzip2
USE_LDCONFIG= yes
PORTDOCS= AUTHORS README README.devel
OPTIONS_DEFINE= INOTIFY
INOTIFY_DESC= Use inotify instead of polling (saves energy)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MINOTIFY}
LIB_DEPENDS+= libinotify.so:${PORTSDIR}/devel/libinotify
2013-05-07 02:29:48 +02:00
CMAKE_ARGS+= -DWANT_INOTIFY:BOOL=TRUE
.else
CMAKE_ARGS+= -DWANT_INOTIFY:BOOL=FALSE
.endif
.if ${OSVERSION} <= 800107 || ${OSVERSION} >= 900000 && ${OSVERSION} <= 900002
IGNORE= requires libusb 1.0.3
.endif
2013-05-07 02:29:48 +02:00
post-patch:
@${REINPLACE_CMD} -e 's,$${LIB_SUFFIX}/pkgconfig,data/pkgconfig,' \
${WRKSRC}/CMakeLists.txt
2013-05-07 02:29:48 +02:00
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
${WRKSRC}/Modules/FindInotify.cmake
pre-install:
2013-05-07 02:29:48 +02:00
@${REINPLACE_CMD} -e '1 s,python,env python,' \
${WRKSRC}/python-client/*.py
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}
.include <bsd.port.mk>