diff options
author | minskim <minskim> | 2004-02-18 16:58:36 +0000 |
---|---|---|
committer | minskim <minskim> | 2004-02-18 16:58:36 +0000 |
commit | 853fc7aef5083399fa79ab8d1760b8d887803def (patch) | |
tree | c4e01f850d20012b41d0760861c50da487c2ca98 /x11/py-gtk2 | |
parent | a7e7a0979a263c1cd5b7673fb625f49f7c305911 (diff) | |
download | pkgsrc-853fc7aef5083399fa79ab8d1760b8d887803def.tar.gz |
bl3ify and add explicit build dependency on pkgconfig.
Diffstat (limited to 'x11/py-gtk2')
-rw-r--r-- | x11/py-gtk2/Makefile | 15 | ||||
-rw-r--r-- | x11/py-gtk2/buildlink3.mk | 27 |
2 files changed, 35 insertions, 7 deletions
diff --git a/x11/py-gtk2/Makefile b/x11/py-gtk2/Makefile index 22ca8427d58..5a1b3c18e0d 100644 --- a/x11/py-gtk2/Makefile +++ b/x11/py-gtk2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2004/02/14 18:26:29 jmmv Exp $ +# $NetBSD: Makefile,v 1.14 2004/02/18 16:58:36 minskim Exp $ # DISTNAME= pygtk-2.0.0 @@ -15,7 +15,7 @@ COMMENT= Python bindings for GTK+2 CONFLICTS= ${PYPKGPREFIX}-gtk<0.6.10 PY_PATCHPLIST= YES -USE_BUILDLINK2= YES +USE_BUILDLINK3= YES USE_LIBTOOL= YES PKGCONFIG_OVERRIDE+= pygtk-2.0.pc.in GNU_CONFIGURE= YES @@ -24,12 +24,13 @@ CONFIGURE_ENV+= PYTHON=${PYTHONBIN} PYTHON_VERSIONS_ACCEPTED= 23pth 22pth BUILDLINK_DEPENDS.python22-pth= python22-pth>=2.2.2nb2 -.include "../../devel/libglade2/buildlink2.mk" +.include "../../devel/libglade2/buildlink3.mk" +.include "../../devel/pkgconfig/buildlink3.mk" .include "../../lang/python/extension.mk" .include "../../lang/python/application.mk" -.include "../../math/py-Numeric/buildlink2.mk" -.include "../../x11/gtk2/buildlink2.mk" -.include "../../x11/gtkglarea2/buildlink2.mk" +.include "../../math/py-Numeric/buildlink3.mk" +.include "../../x11/gtk2/buildlink3.mk" +.include "../../x11/gtkglarea2/buildlink3.mk" -.include "../../mk/pthread.buildlink2.mk" +.include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/x11/py-gtk2/buildlink3.mk b/x11/py-gtk2/buildlink3.mk new file mode 100644 index 00000000000..61f8d11d342 --- /dev/null +++ b/x11/py-gtk2/buildlink3.mk @@ -0,0 +1,27 @@ +# $NetBSD: buildlink3.mk,v 1.1 2004/02/18 16:58:36 minskim Exp $ +# +# This Makefile fragment is included by packages that use py-gtk2. +# + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +PY_GTK2_BUILDLINK3_MK:= ${PY_GTK2_BUILDLINK3_MK}+ + +.include "../../lang/python/pyversion.mk" + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= ${PYPKGPREFIX}-gtk2 +.endif + +.if !empty(PY_GTK2_BUILDLINK3_MK:M+) +BUILDLINK_PACKAGES+= pygtk2 +BUILDLINK_DEPENDS.pygtk2+= ${PYPKGPREFIX}-gtk2>=2.0.0nb2 +BUILDLINK_PKGSRCDIR.pygtk2?= ../../x11/py-gtk2 + +.include "../../devel/libglade2/buildlink3.mk" +.include "../../math/py-Numeric/buildlink3.mk" +.include "../../x11/gtk2/buildlink3.mk" +.include "../../x11/gtkglarea2/buildlink3.mk" + +.endif # PY_GTK2_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} |