summaryrefslogtreecommitdiffstats
path: root/graphics/py-ming/Makefile
blob: c06ca5b43175f7f3f276eaa878bb19cdac75e8e1 (plain)
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
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$

PORTNAME=	ming
PORTVERSION=	0.4.7
PORTREVISION=	1
CATEGORIES=	graphics python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Python module for Ming which allows you to create Flash 4/5 movies

LICENSE=	GPLv2 LGPL21
LICENSE_COMB=	multi
LICENSE_FILE_GPLv2=	${WRKSRC}/../LICENSE_GPL2
LICENSE_FILE_LGPL21=	${WRKSRC}/../LICENSE

LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2 \
		libgif.so:${PORTSDIR}/graphics/giflib \
		libming.so:${PORTSDIR}/graphics/ming \
		libpng.so:${PORTSDIR}/graphics/png

CONFIGURE_ARGS=	--enable-python
CONFIGURE_ENV=	PYTHON_LDFLAGS="-L${PYTHON_LIBDIR} -l${PYTHON_VERSION}${PYTHON_ABIVER}"
GNU_CONFIGURE=	yes
USE_PYTHON=	autoplist concurrent distutils
USES=		autoreconf libtool localbase python

CONFIGURE_WRKSRC=	${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME_EXTRACT}
WRKSRC=		${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME_EXTRACT}/py_ext

USE_GITHUB=	yes
GH_ACCOUNT=	lib${PORTNAME}
GH_PROJECT=	lib${PORTNAME}
GH_TAGNAME=	${PORTNAME}-${PORTVERSION:S|.|_|g}

post-patch:
	@${REINPLACE_CMD} -e 's| --root ".*"||' ${WRKSRC}/Makefile.am
	@${REINPLACE_CMD} -e 's|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/setup.py.in
	@${LN} -fs ${LOCALBASE}/include/ming ${WRKSRC}/../src

post-install:
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_mingc.so

.include <bsd.port.mk>
OpenPOWER on IntegriCloud