freebsd-ports/comms/py-libimobiledevice/Makefile
Alberto Villa c6c79da969 - Update libplist to 1.11.
- Split libusbmuxd.so into comms/libusbmuxd and update to 1.0.9.
- Update libimobiledevice to 1.1.6.
- Update usbmuxd to Git snapshot (~1.0.9).
- Document usbmuxd upgrade process.

This marks an important refactoring effort for proper iOS 7 support.
It's packed with new features, tools, speed improvements, code
refactoring, crash fixes, memory leak fixes and much more.
2014-09-28 22:58:51 +00:00

39 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTREVISION= 0
CATEGORIES= comms python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= avilla@FreeBSD.org
COMMENT= Python bindings for libimobiledevice
LIB_DEPENDS= libimobiledevice.so:${PORTSDIR}/${MASTER_PORT}
BUILD_DEPENDS= cython:${PORTSDIR}/lang/cython \
${PYTHON_SITELIBDIR}/plist.so:${PORTSDIR}/devel/py-libplist
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/plist.so:${PORTSDIR}/devel/py-libplist
USES= python
CONFIGURE_ENV= PYTHON_LDFLAGS="`pkg-config --libs python-${PYTHON_VER}`"
SLAVE_PORT= yes
MASTERDIR= ${.CURDIR:H:H}/comms/libimobiledevice
PLIST= ${.CURDIR}/pkg-plist
BUILD_WRKSRC= ${WRKSRC}/cython
INSTALL_WRKSRC= ${BUILD_WRKSRC}
PLIST_FILES= include/imobiledevice/cython/imobiledevice.pxd \
${PYTHONPREFIX_SITELIBDIR:S,^${PREFIX}/,,}/imobiledevice.a \
${PYTHONPREFIX_SITELIBDIR:S,^${PREFIX}/,,}/imobiledevice.so
post-patch:
@${REINPLACE_CMD} \
-e 's,../src/libimobiledevice.la,-limobiledevice,' \
-e 's/$$(imobiledevice_la_DEPENDENCIES)//' \
${BUILD_WRKSRC}/Makefile.in
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/include/imobiledevice/cython
${INSTALL_DATA} ${INSTALL_WRKSRC}/imobiledevice.pxd \
${STAGEDIR}${PREFIX}/include/imobiledevice/cython
.include "${MASTERDIR}/Makefile"