2007-07-04 15:18:45 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2007/07/04 19:18:46 jasper Exp $
|
2004-01-17 10:58:06 -05:00
|
|
|
|
2007-07-04 15:18:45 -04:00
|
|
|
SHARED_ONLY= Yes
|
2001-07-01 03:31:29 -04:00
|
|
|
|
2001-08-07 01:45:46 -04:00
|
|
|
COMMENT= "set of modules to use Gtk+ libraries from Perl"
|
2001-07-01 03:31:29 -04:00
|
|
|
|
2001-08-07 01:45:46 -04:00
|
|
|
VERSION= 0.7008
|
|
|
|
DISTNAME= Gtk-Perl-${VERSION}
|
|
|
|
PKGNAME= p5-Gtk-${VERSION}
|
2001-07-01 03:31:29 -04:00
|
|
|
|
2001-08-07 01:45:46 -04:00
|
|
|
CATEGORIES= x11 devel perl5
|
2001-07-01 03:31:29 -04:00
|
|
|
|
2002-04-19 10:57:03 -04:00
|
|
|
# GPL
|
2001-07-01 03:31:29 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-17 10:18:31 -05:00
|
|
|
WANTLIB= X11 Xext Xi gdk glib gmodule iconv intl jpeg m png \
|
|
|
|
tiff ungif z
|
2001-07-01 03:31:29 -04:00
|
|
|
|
2001-08-07 01:45:46 -04:00
|
|
|
HOMEPAGE= http://www.gtkperl.org/
|
|
|
|
|
2002-05-15 14:05:18 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Gtk/}
|
2001-08-07 01:45:46 -04:00
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
|
2006-09-18 06:21:48 -04:00
|
|
|
LIB_DEPENDS= gtk.>=1.2::x11/gtk+ \
|
|
|
|
gdk_pixbuf.>=2::graphics/gdk-pixbuf \
|
|
|
|
gdk_imlib.>=19::graphics/imlib
|
2004-06-26 03:35:05 -04:00
|
|
|
RUN_DEPENDS= :p5-XML-Parser-*:textproc/p5-XML-Parser \
|
2002-06-09 23:14:34 -04:00
|
|
|
:p5-XML-Writer-*:textproc/p5-XML-Writer
|
2004-06-26 03:35:05 -04:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2001-08-07 01:45:46 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= perl
|
2004-06-26 19:09:15 -04:00
|
|
|
CONFIGURE_ARGS= --without-gtkhtml --without-gtkxmhtml \
|
2001-08-07 01:45:46 -04:00
|
|
|
--without-gnomeprint --without-applets --without-glade
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
2002-04-19 10:57:03 -04:00
|
|
|
MAKE_FLAGS= INST_MAN3DIR="../blib/man3p"
|
2001-08-07 01:45:46 -04:00
|
|
|
|
|
|
|
PERLDIR= "${DESTDIR}/${PREFIX}/libdata/perl5/site_perl"
|
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} \
|
|
|
|
INSTALLPRIVLIB="${PERLDIR}" \
|
|
|
|
INSTALLARCHLIB="${PERLDIR}/${MACHINE_ARCH}-openbsd" \
|
|
|
|
INSTALLSITELIB="${PERLDIR}" \
|
|
|
|
INSTALLSITEARCH="${PERLDIR}/${MACHINE_ARCH}-openbsd" \
|
2002-04-19 10:57:03 -04:00
|
|
|
INSTALLMAN3DIR="${DESTDIR}/${PREFIX}/man/man3p" \
|
2003-02-02 14:14:24 -05:00
|
|
|
INSTALLSITEMAN3DIR="${DESTDIR}/${PREFIX}/man/man3p"
|
2001-07-01 03:31:29 -04:00
|
|
|
|
2004-06-26 19:09:15 -04:00
|
|
|
FLAVORS= gtkglarea gnome
|
2001-08-07 01:45:46 -04:00
|
|
|
FLAVOR?=
|
2001-07-01 03:31:29 -04:00
|
|
|
|
2001-08-07 01:45:46 -04:00
|
|
|
.if ${FLAVOR:L:Mgtkglarea}
|
2006-09-18 06:21:48 -04:00
|
|
|
LIB_DEPENDS+= gtkgl.>=1.2::x11/gtkglarea
|
2001-08-07 01:45:46 -04:00
|
|
|
CONFIGURE_ARGS+= --with-gtkglarea-force
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gtkglarea
|
2004-06-26 19:09:15 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mgnome}
|
2006-09-18 06:21:48 -04:00
|
|
|
LIB_DEPENDS+= zvt.>=5::x11/gnome/libs
|
2004-06-26 19:09:15 -04:00
|
|
|
CONFIGURE_ARGS+= --with-gnome
|
2004-09-15 15:26:27 -04:00
|
|
|
LIB_DEPENDS+=zvt::x11/gnome/libs
|
2004-12-19 12:36:31 -05:00
|
|
|
WANTLIB+= ICE SM art_lgpl audiofile esd gnome gnomesupport gnomeui util
|
2004-06-26 19:09:15 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gnome
|
2001-08-07 01:45:46 -04:00
|
|
|
.endif
|
2001-07-01 03:31:29 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|