diff --git a/graphics/py-ming/Makefile b/graphics/py-ming/Makefile index 9e7b634cca09..04213334b419 100644 --- a/graphics/py-ming/Makefile +++ b/graphics/py-ming/Makefile @@ -1,52 +1,51 @@ PORTNAME= ming DISTVERSIONPREFIX= ming- DISTVERSION= 0_4_8 CATEGORIES= graphics python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Python module for Ming which allows you to create Flash 4/5 movies WWW= http://www.libming.org/ LICENSE= GPLv2 LGPL21 LICENSE_COMB= multi LICENSE_FILE_GPLv2= ${WRKSRC}/LICENSE_GPL2 LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSE LIB_DEPENDS= libfreetype.so:print/freetype2 \ libgif.so:graphics/giflib \ libming.so:graphics/ming \ libpng.so:graphics/png USES= autoreconf cpe libtool localbase:ldflags pkgconfig python:3.6-3.9 USE_PYTHON= autoplist concurrent distutils CONFIGURE_ARGS= --enable-python CONFIGURE_ENV= PYTHON_LDFLAGS="-L${PYTHON_LIBDIR} -l${PYTHON_VERSION}${PYTHON_ABIVER}" GNU_CONFIGURE= yes CPE_VENDOR= libming BUILD_WRKSRC= ${WRKSRC}/py_ext INSTALL_WRKSRC= ${WRKSRC}/py_ext USE_GITHUB= yes GH_ACCOUNT= libming GH_PROJECT= libming PORTSCOUT= limit:^ming- .include -.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) +.if ${OPSYS} == FreeBSD && ((${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000) || ${OSVERSION} >= 1400079) CFLAGS+= -Wno-error=int-conversion .endif post-patch: - @${REINPLACE_CMD} -e 's| --root ".*"||' ${WRKSRC}/py_ext/Makefile.am @${REINPLACE_CMD} -e 's|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/py_ext/setup.py.in @${LN} -fs ${LOCALBASE}/include/ming ${WRKSRC}/src post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/graphics/py-ming/files/patch-py_ext-Makefile.am b/graphics/py-ming/files/patch-py_ext-Makefile.am new file mode 100644 index 000000000000..c1e149f4c132 --- /dev/null +++ b/graphics/py-ming/files/patch-py_ext-Makefile.am @@ -0,0 +1,11 @@ +--- py_ext/Makefile.am.orig 2017-04-07 08:12:56 UTC ++++ py_ext/Makefile.am +@@ -18,7 +18,7 @@ clean-local: + rm -Rf test.swf build + + install: +- $(PYTHON) setup.py install --prefix $(prefix) --root "/$(DESTDIR)" ++ $(PYTHON) setup.py install --prefix $(prefix) + + test.swf: + $(PYTHON) shape.py