pkgsrc/devel/py-gobject-shared/Makefile
wiz 1c9ea45ff7 Since this only installs header files, we do not need any real
py-cairo dependency here. Fake presence for configure script using cairo
flags.
Bump PKGREVISION.

This change allows using this package for both python-2.x and python-3.x.
2014-01-25 08:53:53 +00:00

34 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.37 2014/01/25 08:53:53 wiz Exp $
PKGNAME= py-gobject-shared-2.28.6
PKGREVISION= 11
.include "../../devel/py-gobject/Makefile.common"
PYTHON_FOR_BUILD_ONLY= yes
INSTALLATION_DIRS= include/pygtk-2.0 lib/pkgconfig
# we do not really need py-cairo's pkg-config flags
# just some non-empty valid arguments so py-cairo is detected
# as found
CONFIGURE_ARGS+= PYCAIRO_CFLAGS="`pkg-config --cflags cairo`"
CONFIGURE_ARGS+= PYCAIRO_LIBS="`pkg-config --libs cairo`"
do-build:
do-install:
${INSTALL_DATA_DIR} ${DESTDIR:Q}${PREFIX:Q}/include/pygtk-2.0
${INSTALL_DATA} ${WRKSRC}/gobject/pygobject.h \
${DESTDIR:Q}${PREFIX:Q}/include/pygtk-2.0
${INSTALL_DATA_DIR} ${DESTDIR:Q}${PREFIX:Q}/lib/pkgconfig
${INSTALL_DATA} ${WRKSRC}/pygobject-2.0.pc \
${DESTDIR:Q}${PREFIX:Q}/lib/pkgconfig
.include "../../lang/python/application.mk"
.include "../../devel/glib2/buildlink3.mk"
BUILDLINK_API_DEPENDS.gobject-introspection= gobject-introspection>=0.9.5
BUILDLINK_DEPMETHOD.gobject-introspection= build
.include "../../devel/gobject-introspection/buildlink3.mk"
BUILDLINK_DEPMETHOD.cairo= build
.include "../../graphics/cairo/buildlink3.mk"
.include "../../devel/libffi/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"