1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/graphics/py-ming/Makefile
Po-Chuan Hsieh 9b6337dcf5
graphics/py-ming: Fix build with Clang 15 and remove the workaround
- Update WWW

./ming_wrap.c:2427:18: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
    type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
                 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./ming_wrap.c:2497:13: error: incompatible integer to pointer conversion initializing 'PyObject *' (aka 'struct _object *') with an expression of type 'int' [-Wint-conversion]
  PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
            ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./ming_wrap.c:2525:11: error: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
      obj = PyCObject_FromVoidPtr(descriptor, NULL);
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./ming_wrap.c:3886:10: error: incompatible integer to pointer conversion assigning to 'FILE *' (aka 'struct __sFILE *') from 'int' [-Wint-conversion]
    arg1 = PyFile_AsFile(obj0);
         ^ ~~~~~~~~~~~~~~~~~~~
./ming_wrap.c:3908:10: error: incompatible integer to pointer conversion assigning to 'FILE *' (aka 'struct __sFILE *') from 'int' [-Wint-conversion]
    arg1 = PyFile_AsFile(obj0);
         ^ ~~~~~~~~~~~~~~~~~~~
./ming_wrap.c:4302:10: error: incompatible integer to pointer conversion assigning to 'FILE *' (aka 'struct __sFILE *') from 'int' [-Wint-conversion]
    arg1 = PyFile_AsFile(obj0);
         ^ ~~~~~~~~~~~~~~~~~~~
./ming_wrap.c:4352:10: error: incompatible integer to pointer conversion assigning to 'FILE *' (aka 'struct __sFILE *') from 'int' [-Wint-conversion]
    arg1 = PyFile_AsFile(obj0);
         ^ ~~~~~~~~~~~~~~~~~~~
./ming_wrap.c:4404:10: error: incompatible integer to pointer conversion assigning to 'FILE *' (aka 'struct __sFILE *') from 'int' [-Wint-conversion]
    arg1 = PyFile_AsFile(obj0);
         ^ ~~~~~~~~~~~~~~~~~~~
./ming_wrap.c:4411:10: error: incompatible integer to pointer conversion assigning to 'FILE *' (aka 'struct __sFILE *') from 'int' [-Wint-conversion]
    arg2 = PyFile_AsFile(obj1);
         ^ ~~~~~~~~~~~~~~~~~~~
./ming_wrap.c:7255:10: error: incompatible integer to pointer conversion assigning to 'FILE *' (aka 'struct __sFILE *') from 'int' [-Wint-conversion]
    arg1 = PyFile_AsFile(obj0);
         ^ ~~~~~~~~~~~~~~~~~~~
./ming_wrap.c:7398:10: error: incompatible integer to pointer conversion assigning to 'FILE *' (aka 'struct __sFILE *') from 'int' [-Wint-conversion]
    arg1 = PyFile_AsFile(obj0);
         ^ ~~~~~~~~~~~~~~~~~~~
./ming_wrap.c:8855:10: error: incompatible integer to pointer conversion assigning to 'FILE *' (aka 'struct __sFILE *') from 'int' [-Wint-conversion]
    arg1 = PyFile_AsFile(obj0);
         ^ ~~~~~~~~~~~~~~~~~~~
23 warnings and 12 errors generated.
2023-06-30 15:04:07 +08:00

46 lines
1.2 KiB
Makefile

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= https://github.com/libming/libming
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.8-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-
post-patch:
@${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 <bsd.port.mk>