c64abfbfb0
SIP v4.8 has been released. The highlights of this release include support for Python v3, the ability to supply alternate super-types and meta-types for wrapped objects, and documentation built using Sphinx. The major new features are: * support for Python v3 * the %BIGetBufferCode and %BIReleaseBufferCode to support the buffer interface of Python v3 * the %DefaultMetatype directive and the /Metatype/ class annotation to allow the meta-type of a wrapped type to be changed * the %DefaultSupertype directive and the /Supertype/ class annotation to allow the super-type of a wrapped type to be changed * the sip.simplewrapper type to be used as a super-type for wrapped types that don't take part in parent/child relationships * the %InitialisationCode directive * the /KeepReference/ argument annotation * the /Encoding/ argument, function, typedef and variable annotation * super() now works as expected with wrapped types * support for __floordiv__, __ifloordiv__, __truediv__, __itruediv__ and __index__ * __bool__ is a synonym for __nonzero__ * Sphinx is now used for the documentation * many additions and deprecations in the API to eliminate the differences between classes and mapped types. (See the documentation for the details.)
65 lines
1.8 KiB
Makefile
65 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.4 2009/06/09 13:51:57 wiz Exp $
|
|
#
|
|
|
|
DISTNAME= sip-4.8
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= x11 devel python
|
|
MASTER_SITES= http://www.riverbankcomputing.com/static/Downloads/sip4/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.riverbankcomputing.com/software/sip/intro
|
|
COMMENT= Tool to create Python bindings for C++ libraries
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
CONFLICTS+= ${PYPKGPREFIX}-qt2-sip-* ${PYPKGPREFIX}-qt3-sip-*
|
|
|
|
PYTHON_VERSIONS_ACCEPTED= 26 25 24 23
|
|
|
|
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*)
|
|
# 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
|
|
|
|
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/extension.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|