aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-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