pkgsrc/devel/py-gobject3/Makefile.common
drochner c3ab4f3a66 py-gobject3-common is thought to be Python version independent, so it
should not keep a runtime dependency on a specific Python version.
Make Python a build-time dependency for py-gobject3-common (not really
needed, just to satisfy the "configure" script) and move some
dependencies into py-gobject3/Makefile
2014-02-12 18:06:05 +00:00

47 lines
1.5 KiB
Text

# $NetBSD: Makefile.common,v 1.2 2014/02/12 18:06:05 drochner Exp $
# used by devel/py-gobject3/Makefile
# used by devel/py-gobject3-common/Makefile
VER= 3.10.2
DISTNAME= pygobject-${VER}
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/pygobject/${PKGVERSION_NOREV:R}/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= prlw1@cam.ac.uk
HOMEPAGE= https://wiki.gnome.org/action/show/Projects/PyGObject
LICENSE= gnu-lgpl-v2.1
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= c c99
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config gmake
GNU_CONFIGURE= yes
#CONFIGURE_ARGS+= --disable-cairo
CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
DISTINFO_FILE= ${.CURDIR}/../../devel/py-gobject3/distinfo
PATCHDIR= ${.CURDIR}/../../devel/py-gobject3/patches
PYTHON_VERSIONS_INCOMPATIBLE= 26
PKGCONFIG_OVERRIDE+= pygobject-3.0.pc.in
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
CONFLICTS+= ${PYPKGPREFIX}-gtk2<2.8.4
CONFLICTS+= ${PYPKGPREFIX}-gobject<2.28.6nb4
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
# for the egg
.if exists(${PYTHONBIN:Q})
PLATFORM!= ${PYTHONBIN:Q} -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"
PLIST_SUBST+= PLATFORM=${PLATFORM:Q}
.endif
BUILDLINK_API_DEPENDS.glib2= glib2>=2.35.9
.include "../../devel/glib2/buildlink3.mk"
BUILDLINK_API_DEPENDS.gobject-introspection= gobject-introspection>=1.35.9
.include "../../devel/gobject-introspection/buildlink3.mk"
.include "../../devel/libffi/buildlink3.mk"