diff options
Diffstat (limited to 'x11/wxGTK/Makefile')
-rw-r--r-- | x11/wxGTK/Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/x11/wxGTK/Makefile b/x11/wxGTK/Makefile index d7378630785..0116301b7e6 100644 --- a/x11/wxGTK/Makefile +++ b/x11/wxGTK/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.26 2004/01/03 18:50:00 reed Exp $ +# $NetBSD: Makefile,v 1.27 2004/01/07 21:45:18 jmmv Exp $ # DISTNAME= wxGTK-2.4.1 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wxwindows/} EXTRACT_SUFX= .tar.bz2 @@ -16,7 +16,6 @@ USE_PKGLOCALEDIR= YES USE_X11= YES USE_LIBTOOL= YES GNU_CONFIGURE= YES -CONFIGURE_ARGS+= --with-gtk CONFIGURE_ARGS+= --with-libjpeg=sys CONFIGURE_ARGS+= --with-zlib=sys CONFIGURE_ARGS+= --with-libpng=sys @@ -26,14 +25,26 @@ CPPFLAGS+= -Dunix=1 # src/common/unzip.c needs this DOCDIR= ${PREFIX}/share/doc/wx/gtk +.include "../../mk/bsd.prefs.mk" + +.if !empty(WXGTK_USE_GTK1:M[Yy][Ee][Ss]) +CONFIGURE_ARGS+= --with-gtk +PLIST_SUBST+= GTKVER= +.include "../../x11/gtk/buildlink2.mk" +.else +CONFIGURE_ARGS+= --enable-gtk2 +PLIST_SUBST+= GTKVER=2 +.include "../../x11/gtk2/buildlink2.mk" +.endif + post-install: ${INSTALL_DATA_DIR} ${DOCDIR} ${INSTALL_DATA} ${WRKSRC}/LICENCE.txt ${DOCDIR}/LICENSE +.include "../../devel/zlib/buildlink2.mk" .include "../../graphics/jpeg/buildlink2.mk" .include "../../graphics/png/buildlink2.mk" .include "../../graphics/tiff/buildlink2.mk" -.include "../../x11/gtk/buildlink2.mk" .include "../../mk/pthread.buildlink2.mk" .include "../../mk/bsd.pkg.mk" |