mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
696ae175e5
- Split Python bindings from the main port, and put them into devel/py-libplist.
31 lines
721 B
Makefile
31 lines
721 B
Makefile
# $FreeBSD$
|
|
|
|
PORTREVISION= 0
|
|
CATEGORIES= devel python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= avilla@FreeBSD.org
|
|
COMMENT= Python bindings for libplist
|
|
|
|
LIB_DEPENDS= plist:${PORTSDIR}/${MASTER_PORT}
|
|
BUILD_DEPENDS= cython:${PORTSDIR}/lang/cython \
|
|
swig2.0:${PORTSDIR}/devel/swig20
|
|
|
|
USE_PYTHON= yes
|
|
SLAVE_PORT= yes
|
|
MASTERDIR= ${.CURDIR:H:H}/devel/libplist
|
|
# Required to reference installed libplist.
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
FILESDIR= ${.CURDIR}/files
|
|
|
|
post-patch:
|
|
@${CP} ${FILESDIR}/CMakeLists.txt ${WRKSRC}
|
|
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
.include "${MASTERDIR}/Makefile"
|