update Sun Jun 13 18:37:00 PDT 2010
[pkgsrc.git] / print / libgnomeprint / Makefile
1 # $NetBSD: Makefile,v 1.72 2010/06/13 22:45:16 wiz Exp $
2 #
3
4 DISTNAME=       libgnomeprint-2.18.6
5 PKGREVISION=    4
6 CATEGORIES=     print gnome
7 MASTER_SITES=   ${MASTER_SITE_GNOME:=sources/libgnomeprint/2.18/}
8 EXTRACT_SUFX=   .tar.bz2
9
10 MAINTAINER=     pkgsrc-users@NetBSD.org
11 HOMEPAGE=       http://www.levien.com/gnome/print-arch.html
12 COMMENT=        Library for the GNOME2 Printing Architecture
13
14 PKG_DESTDIR_SUPPORT=    user-destdir
15
16 USE_TOOLS+=             bison flex gmake intltool msgfmt pkg-config
17 USE_PKGLOCALEDIR=       YES
18 USE_LIBTOOL=            YES
19 GNU_CONFIGURE=          YES
20 CONFIGURE_ARGS+=        --disable-gtk-doc
21
22 BUILDLINK_API_DEPENDS.freetype2+=       freetype2>=2.1.4
23
24 PKGCONFIG_OVERRIDE=     libgnomeprint/libgnomeprint-2.2.pc.in
25
26 PKG_OPTIONS_VAR=        PKG_OPTIONS.libgnomeprint
27 PKG_SUPPORTED_OPTIONS=  cups
28
29 .include "../../mk/bsd.options.mk"
30
31 PLIST_VARS+=            cups
32 .if !empty(PKG_OPTIONS:Mcups)
33 .include "../../print/libgnomecups/buildlink3.mk"
34 CONFIGURE_ARGS+=        --with-cups
35 PLIST.cups=             yes
36 .else
37 CONFIGURE_ARGS+=        --without-cups
38 .endif
39
40 CONFIGURE_ARGS+=        --without-papi
41
42 .include "../../mk/bsd.prefs.mk"
43
44 .if ${OPSYS} == "Darwin"
45 # AC_LTDL_SHLIBEXT doesn't work on Darwin (and would give the wrong
46 # answer here even if it did).
47 CONFIGURE_ENV+=         libltdl_cv_shlibext=so
48 .endif
49
50 PRINT_PLIST_AWK+=       /cups/ { print "$${USE_CUPS}" $$0; next; }
51
52 .include "../../devel/gettext-lib/buildlink3.mk"
53 .include "../../devel/glib2/buildlink3.mk"
54 .include "../../devel/libbonobo/buildlink3.mk"
55 .include "../../devel/pango/buildlink3.mk"
56 .include "../../fonts/fontconfig/buildlink3.mk"
57 .include "../../graphics/freetype2/buildlink3.mk"
58 .include "../../graphics/libart/buildlink3.mk"
59 .include "../../textproc/libxml2/buildlink3.mk"
60 .include "../../mk/bsd.pkg.mk"