aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-ming
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-10-19 20:18:07 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-10-19 20:18:07 +0000
commit744f955765db451b32f1d04806180f348842871f (patch)
treec7fbb0e16397417a448388c6ffc4d95fd24a5806 /graphics/py-ming
parentf2790f88f1b06ae5be916631b60d755c231215d0 (diff)
downloadports-744f955765db451b32f1d04806180f348842871f.tar.gz
ports-744f955765db451b32f1d04806180f348842871f.zip
Notes
Diffstat (limited to 'graphics/py-ming')
-rw-r--r--graphics/py-ming/Makefile37
-rw-r--r--graphics/py-ming/distinfo2
2 files changed, 28 insertions, 11 deletions
diff --git a/graphics/py-ming/Makefile b/graphics/py-ming/Makefile
index d99084ef9424..a10ea110bdef 100644
--- a/graphics/py-ming/Makefile
+++ b/graphics/py-ming/Makefile
@@ -2,6 +2,7 @@
# $FreeBSD$
PORTNAME= ming
+PORTVERSION= 0.4.7
CATEGORIES= graphics python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -10,20 +11,34 @@ 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
+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 distutils
-USES= python:2
+USES= autoreconf libtool localbase python:2
+
+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}
-BUILD_WRKSRC= ${WRKSRC}/py_ext
-INSTALL_WRKSRC= ${WRKSRC}/py_ext
-PATCH_WRKSRC= ${WRKSRC}/py_ext
-PATCHDIR= ${.CURDIR}/files
-PLIST= ${NONEXISTENT}
+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
-MASTERDIR= ${.CURDIR}/../../graphics/ming
-SLAVEPORT= py
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_mingc.so
-.include "${MASTERDIR}/Makefile"
+.include <bsd.port.mk>
diff --git a/graphics/py-ming/distinfo b/graphics/py-ming/distinfo
new file mode 100644
index 000000000000..74e50c23ad43
--- /dev/null
+++ b/graphics/py-ming/distinfo
@@ -0,0 +1,2 @@
+SHA256 (libming-libming-0.4.7-ming-0_4_7_GH0.tar.gz) = 118aa1338dd74b34dd2cd22bce286ca0571e8b9aa433999646d1c0157ea9a7dc
+SIZE (libming-libming-0.4.7-ming-0_4_7_GH0.tar.gz) = 14903570