1f4572677a
v4.16.2 3rd July 2014 - Deprecated the %ConsolidatedModule directive as it won't be supported in SIP v5. - Bug fixes. v4.16.1 9th June 2014 - Bug fixes. v4.16 26th May 2014 - Added the /NoSetter/ variable annotation. - Added the -B option to sip. - Changed the handling of timelines (introducing a potential incompatibility) so that later versions of wrapped libraries can be wrapped so long as they are compatible with known versions. - Added support for the 'no_receiver_check' argument to connect() in PyQt v4.11. - Added the --configuration option to configure.py. - Added the --sysroot option to configure.py. - Added the --target-py-version option to configure.py. - Added the --no-tools option to configure.py. - Added the --use-qmake option to configure.py. - Bug fixes. v4.15.5 14th March 2014 - The use_arch argument of sipconfig.create_wrapper() can now specify a space separated set of architectures. - Bug fixes. v4.15.4 8th January 2014 - Added SIP_SSIZE_T_FORMAT to the C API. - Bug fixes (specifically for PyQt5). v4.15.3 16th October 2013 - Bug fixes (specifically for PyQtChart). v4.15.2 14th September 2013 - sipConvertToArray() will now optionally take ownership of the array memory. - Added support for char, unsigned char, short, int, float and double as array types. - Bug fixes. v4.15.1 23rd August 2013 - Fixes a regression in the handling of hidden virtual methods. v4.15 21st August 2013 - Added the call_super_init argument to the %Module directive to specify that classes should support cooperative multi-inheritance. - Added the %FinalisationCode directive. - Added the /Mixin/ class annotation. - Added the /NoScope/ enum annotation. - Added sipConvertFromNewPyType() to the C API. - Added sipConvertToArray() and sipConvertToTypedArray() to the C API. - Added sipRegisterProxyResolver() to the C API. - Bug fixes.
68 lines
2 KiB
Makefile
68 lines
2 KiB
Makefile
# $NetBSD: Makefile,v 1.43 2014/08/21 21:32:38 wiz Exp $
|
|
|
|
DISTNAME= sip-4.16.2
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= x11 devel python
|
|
#MASTER_SITES= http://www.riverbankcomputing.com/static/Downloads/sip4/
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyqt/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.riverbankcomputing.com/software/sip/intro
|
|
COMMENT= Tool to create Python bindings for C++ libraries
|
|
|
|
CONFLICTS+= ${PYPKGPREFIX}-qt2-sip-* ${PYPKGPREFIX}-qt3-sip-*
|
|
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake
|
|
USE_LANGUAGES= c c++
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
CONFIGURE_ARGS+= -b ${PREFIX}/bin
|
|
CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB}
|
|
CONFIGURE_ARGS+= -e ${PREFIX}/${PYINC}
|
|
CONFIGURE_ARGS+= -v ${PREFIX}/share/sip${PYVERSSUFFIX}
|
|
.if ${OPSYS} == "DragonFly"
|
|
CONFIGURE_ARGS+= -p freebsd-g++
|
|
.endif
|
|
CONFIGURE_ARGS+= INCDIR=${PREFIX}/include
|
|
CONFIGURE_ARGS+= LIBDIR=${PREFIX}/lib
|
|
|
|
PY_PATCHPLIST= yes
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
CONFIGURE_ARGS+= CFLAGS_SHLIB=-fno-common
|
|
CONFIGURE_ARGS+= LFLAGS_PLUGIN="-bundle -flat_namespace -undefined suppress"
|
|
.else
|
|
CONFIGURE_ARGS+= CFLAGS_SHLIB=-fPIC
|
|
CONFIGURE_ARGS+= CXXFLAGS_SHLIB=-fPIC
|
|
. if ${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc*)
|
|
CONFIGURE_ARGS+= -p solaris-g++
|
|
# gcc3 uses -mimpure-text to not pass -assert pure-text to the linker
|
|
CONFIGURE_ARGS+= LFLAGS_SHLIB="-shared -mimpure-text"
|
|
. else
|
|
CONFIGURE_ARGS+= LFLAGS_SHLIB="-shared"
|
|
. endif
|
|
.endif
|
|
|
|
# Hack: gcc on sparc64 miscompiles sipgen/parser.c at -O2
|
|
.if ${MACHINE_ARCH} == "sparc64" && !empty(CC_VERSION:Mgcc*)
|
|
BUILDLINK_TRANSFORM+= rm:-O2
|
|
.endif
|
|
|
|
|
|
SUBST_CLASSES+= pyversfx
|
|
SUBST_STAGE.pyversfx= pre-configure
|
|
SUBST_FILES.pyversfx= sipgen/sipgen.sbf
|
|
SUBST_SED.pyversfx= -e "s|@PYVERSSUFFIX@|${PYVERSSUFFIX}|g"
|
|
|
|
do-configure:
|
|
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
${PYTHONBIN} configure.py ${CONFIGURE_ARGS})
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|