diff options
Diffstat (limited to 'x11/py-sip')
-rw-r--r-- | x11/py-sip/DESCR | 4 | ||||
-rw-r--r-- | x11/py-sip/Makefile | 61 | ||||
-rw-r--r-- | x11/py-sip/PLIST | 7 | ||||
-rw-r--r-- | x11/py-sip/buildlink3.mk | 21 | ||||
-rw-r--r-- | x11/py-sip/distinfo | 7 | ||||
-rw-r--r-- | x11/py-sip/patches/patch-aa | 31 | ||||
-rw-r--r-- | x11/py-sip/patches/patch-ab | 12 |
7 files changed, 143 insertions, 0 deletions
diff --git a/x11/py-sip/DESCR b/x11/py-sip/DESCR new file mode 100644 index 00000000000..066f40f3895 --- /dev/null +++ b/x11/py-sip/DESCR @@ -0,0 +1,4 @@ +SIP is a tool that makes it very easy to create Python bindings for +C++ libraries. It was originally developed to create PyQt, the Python +bindings for the Qt toolkit, but can be used to create bindings for any +C++ library. diff --git a/x11/py-sip/Makefile b/x11/py-sip/Makefile new file mode 100644 index 00000000000..95e25edd146 --- /dev/null +++ b/x11/py-sip/Makefile @@ -0,0 +1,61 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/10/08 14:10:45 wiz Exp $ +# + +DISTNAME= sip-4.7.7 +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= 25 24 23 + +USE_LIBTOOL= yes +USE_TOOLS+= gmake +USE_LANGUAGES= c c++ + +CONFIGURE_ARGS+= -b ${PREFIX}/bin +CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB} +CONFIGURE_ARGS+= -e ${PREFIX}/${PYINC} +CONFIGURE_ARGS+= -v ${PREFIX}/share/sip${PYVERSSUFFIX} +CONFIGURE_ARGS+= INCDIR=${PREFIX}/include +CONFIGURE_ARGS+= LIBDIR=${PREFIX}/lib + +PY_PATCHPLIST= yes +PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} + +.include "../../mk/bsd.prefs.mk" +.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" diff --git a/x11/py-sip/PLIST b/x11/py-sip/PLIST new file mode 100644 index 00000000000..e92466cb0de --- /dev/null +++ b/x11/py-sip/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/10/08 14:10:45 wiz Exp $ +bin/sip${PYVERSSUFFIX} +${PYINC}/sip.h +${PYSITELIB}/sip.so +${PYSITELIB}/sipconfig.py +${PYSITELIB}/sipconfig.pyc +${PYSITELIB}/sipdistutils.py diff --git a/x11/py-sip/buildlink3.mk b/x11/py-sip/buildlink3.mk new file mode 100644 index 00000000000..0e0cd4f383b --- /dev/null +++ b/x11/py-sip/buildlink3.mk @@ -0,0 +1,21 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/10/08 14:10:45 wiz Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +PY_SIP_BUILDLINK3_MK:= ${PY_SIP_BUILDLINK3_MK}+ + +.include "../../lang/python/pyversion.mk" + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= py-sip +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npy-sip} +BUILDLINK_PACKAGES+= py-sip +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}py-sip + +.if ${PY_SIP_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.py-sip+= ${PYPKGPREFIX}-sip>=4.7.7 +BUILDLINK_PKGSRCDIR.py-sip?= ../../x11/py-sip +.endif # PY_SIP_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/x11/py-sip/distinfo b/x11/py-sip/distinfo new file mode 100644 index 00000000000..811320325cd --- /dev/null +++ b/x11/py-sip/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/10/08 14:10:45 wiz Exp $ + +SHA1 (sip-4.7.7.tar.gz) = e9842ddcd7e4f973ddd3c5337d5540d664463152 +RMD160 (sip-4.7.7.tar.gz) = 117cf22b71e6b88c8181a1b0f40f1735d0c52f45 +Size (sip-4.7.7.tar.gz) = 464994 bytes +SHA1 (patch-aa) = 97bf03e1bfd687773d137a88f6eb527e481c400d +SHA1 (patch-ab) = f5ba9704fc3867a1273dca534b145cdb14b070e7 diff --git a/x11/py-sip/patches/patch-aa b/x11/py-sip/patches/patch-aa new file mode 100644 index 00000000000..945953051d0 --- /dev/null +++ b/x11/py-sip/patches/patch-aa @@ -0,0 +1,31 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/10/08 14:10:45 wiz Exp $ + +--- configure.py.orig 2008-08-08 16:07:36.000000000 +0200 ++++ configure.py +@@ -230,7 +230,7 @@ def set_platform_directories(): + + plat_py_lib_dir = lib_dir + "/config" + plat_bin_dir = sys.exec_prefix + "/bin" +- plat_sip_dir = sys.prefix + "/share/sip" ++ plat_sip_dir = sys.prefix + "/share/sip%s" % sys.version[0:3] + + + def create_config(module, template, macros): +@@ -248,7 +248,7 @@ def create_config(module, template, macr + "sip_version": sip_version, + "sip_version_str": sip_version_str, + "platform": opt_platform, +- "sip_bin": os.path.join(opt_sipbindir, "sip"), ++ "sip_bin": os.path.join(opt_sipbindir, "sip%s" % sys.version[0:3]), + "sip_inc_dir": opt_sipincdir, + "sip_mod_dir": opt_sipmoddir, + "default_bin_dir": plat_bin_dir, +@@ -282,7 +282,7 @@ def create_makefiles(macros): + sipconfig.ParentMakefile( + configuration=cfg, + subdirs=["sipgen", "siplib"], +- installs=(["sipconfig.py", "sipdistutils.py"], cfg.sip_mod_dir) ++ installs=(["sipconfig.py", "sipconfig.pyc", "sipdistutils.py"], cfg.sip_mod_dir) + ).generate() + + sipconfig.inform("Creating sip code generator Makefile...") diff --git a/x11/py-sip/patches/patch-ab b/x11/py-sip/patches/patch-ab new file mode 100644 index 00000000000..b60b96be0ee --- /dev/null +++ b/x11/py-sip/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/10/08 14:10:45 wiz Exp $ + +--- sipgen/sipgen.sbf.orig 2008-08-08 16:07:36.000000000 +0200 ++++ sipgen/sipgen.sbf +@@ -10,6 +10,6 @@ + # SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +-target = sip ++target = sip@PYVERSSUFFIX@ + sources = main.c transform.c gencode.c export.c heap.c parser.c lexer.c + headers = sip.h parser.h |