openbsd-ports/x11/p5-Gtk/Makefile

60 lines
1.5 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.12 2003/02/02 19:14:24 jcs Exp $
COMMENT= "set of modules to use Gtk+ libraries from Perl"
VERSION= 0.7008
DISTNAME= Gtk-Perl-${VERSION}
PKGNAME= p5-Gtk-${VERSION}
CATEGORIES= x11 devel perl5
2002-04-19 10:57:03 -04:00
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
HOMEPAGE= http://www.gtkperl.org/
2002-05-15 14:05:18 -04:00
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Gtk/}
MAINTAINER= Joshua Stein <jcs@rt.fm>
USE_X11= Yes
2001-10-31 21:34:33 -05:00
LIB_DEPENDS= gtk.1.2,glib.1.2::x11/gtk+ \
gdk_pixbuf.2::graphics/gdk-pixbuf \
gdk_imlib.19::graphics/imlib
BUILD_DEPENDS= :p5-XML-Parser-*:textproc/p5-XML-Parser \
:p5-XML-Writer-*:textproc/p5-XML-Writer
RUN_DEPENDS= ${BUILD_DEPENDS}
CONFIGURE_STYLE= perl
CONFIGURE_ARGS= --without-gtkhtml --without-gtkxmhtml --without-gnome \
--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"
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" \
INSTALLSITEMAN3DIR="${DESTDIR}/${PREFIX}/man/man3p"
FLAVORS= gtkglarea
FLAVOR?=
.if ${FLAVOR:L:Mgtkglarea}
LIB_DEPENDS+= gtkgl.1.2::x11/gtkglarea
CONFIGURE_ARGS+= --with-gtkglarea-force
.else
CONFIGURE_ARGS+= --without-gtkglarea
.endif
.include <bsd.port.mk>