aboutsummaryrefslogtreecommitdiff
path: root/devel/py-libplist/Makefile
blob: ef372c261d83dcd6b420952d75170958a795e4f4 (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
# $FreeBSD$

PORTREVISION=	0
CATEGORIES=	devel python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Python bindings for libplist

DEPRECATED=	Unmaintained, uses EOLed python27
EXPIRATION_DATE=	2020-03-19

LIB_DEPENDS=	libplist.so:${MASTER_PORT}

PORTSCOUT=	ignore:1

USES=		python:2.7
USE_PYTHON=	flavors cython
BINARY_ALIAS=	cython=cython-${PYTHON_VER}
CONFIGURE_ENV=	PYTHON_LDFLAGS="`pkg-config --libs python-${PYTHON_VER}`"
SLAVE_PORT=	yes
MASTERDIR=	${.CURDIR:H:H}/devel/libplist
# Required to reference installed libplist.
CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

PLIST=		${.CURDIR}/pkg-plist

BUILD_WRKSRC=	${WRKSRC}/cython
INSTALL_WRKSRC=	${BUILD_WRKSRC}

PLIST_FILES=	include/plist/cython/plist.pxd \
		${PYTHONPREFIX_SITELIBDIR:S,^${PREFIX}/,,}/plist.a \
		${PYTHONPREFIX_SITELIBDIR:S,^${PREFIX}/,,}/plist.so

pre-configure:
	@${REINPLACE_CMD} -e 's,../src/libplist.la,-lplist,' \
		-e 's,$$(plist_la_DEPENDENCIES),,' \
		${BUILD_WRKSRC}/Makefile.in

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/plist/cython
	${INSTALL_DATA} ${INSTALL_WRKSRC}/plist.pxd \
		${STAGEDIR}${PREFIX}/include/plist/cython

.include "${MASTERDIR}/Makefile"