diff options
author | wiz <wiz@pkgsrc.org> | 2002-09-23 16:56:03 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2002-09-23 16:56:03 +0000 |
commit | 3be8bea35ad3d1f63b75f6c90e537cdfd73a2bbd (patch) | |
tree | a85c710e3043bed882e22b0f2870c468d4608578 /x11/gtkglarea | |
parent | daa921044c3b788b489223b393568411e294a351 (diff) | |
download | pkgsrc-3be8bea35ad3d1f63b75f6c90e537cdfd73a2bbd.tar.gz |
Convert to buildlink2, add buildlink2.mk.
Diffstat (limited to 'x11/gtkglarea')
-rw-r--r-- | x11/gtkglarea/Makefile | 12 | ||||
-rw-r--r-- | x11/gtkglarea/buildlink2.mk | 19 |
2 files changed, 25 insertions, 6 deletions
diff --git a/x11/gtkglarea/Makefile b/x11/gtkglarea/Makefile index 3260d494128..02a37a15de9 100644 --- a/x11/gtkglarea/Makefile +++ b/x11/gtkglarea/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2001/04/07 19:34:31 rh Exp $ +# $NetBSD: Makefile,v 1.24 2002/09/23 16:56:03 wiz Exp $ DISTNAME= gtkglarea-1.2.2 CATEGORIES= x11 graphics @@ -8,17 +8,15 @@ MAINTAINER= hubertf@netbsd.org HOMEPAGE= http://www.student.oulu.fi/~jlof/gtkglarea/ COMMENT= OpenGL/Mesa widget for GTK+ GUI toolkit -DEPENDS+= gtk+-1.2.*:../../x11/gtk - USE_X11BASE= YES USE_MESA= YES +USE_BUILDLINK2= YES USE_LIBTOOL= YES LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig GNU_CONFIGURE= YES -EVAL_PREFIX+= GTKDIR=gtk+ MESADIR=Mesa -CONFIGURE_ARGS+= --with-gtk-prefix="${GTKDIR}" -CONFIGURE_ARGS+= --with-GL-prefix=${MESADIR} +CONFIGURE_ARGS+= --with-gtk-prefix="${BUILDLINK_PREFIX.gtk}" +CONFIGURE_ARGS+= --with-GL-prefix="${BUILDLINK_PREFIX.Mesa}" CONFIGURE_ARGS+= --with-lib-MesaGL PLIST_SUBST+= LOCALBASE=${LOCALBASE} @@ -33,4 +31,6 @@ post-install: ${LN} -fs ${PREFIX}/share/aclocal/gtkgl.m4 \ ${LOCALBASE}/share/aclocal/gtkgl.m4 +.include "../../graphics/Mesa/buildlink2.mk" +.include "../../x11/gtk/buildlink2.mk" .include "../../mk/bsd.pkg.mk" diff --git a/x11/gtkglarea/buildlink2.mk b/x11/gtkglarea/buildlink2.mk new file mode 100644 index 00000000000..4bfeed3b968 --- /dev/null +++ b/x11/gtkglarea/buildlink2.mk @@ -0,0 +1,19 @@ +# $NetBSD: buildlink2.mk,v 1.1 2002/09/23 16:56:03 wiz Exp $ + +.if !defined(GTKGLAREA_BUILDLINK2_MK) +GTKGLAREA_BUILDLINK2_MK= # defined + +BUILDLINK_PACKAGES+= gtkglarea +BUILDLINK_DEPENDS.gtkglarea?= gtkglarea>=1.2.2 +BUILDLINK_PKGSRCDIR.gtkglarea?= ../../x11/gtkglarea + +EVAL_PREFIX+= BUILDLINK_PREFIX.gtkglarea=gtkglarea +BUILDLINK_PREFIX.gtkglarea_DEFAULT= ${X11PREFIX} +BUILDLINK_FILES.gtkglarea+= include/gtkgl/* +BUILDLINK_FILES.gtkglarea+= lib/libgtkgl.* + +BUILDLINK_TARGETS+= gtkglarea-buildlink + +gtkglarea-buildlink: _BUILDLINK_USE + +.endif # GTKGLAREA_BUILDLINK2_MK |