Tweak print/pdf4tcl version 0.8
[dports.git] / print / gnome-cups-manager / Makefile
1 # Created by: Glenn Johnson <glennpj@charter.net>
2 # $FreeBSD$
3 #   $MCom: ports/print/gnome-cups-manager/Makefile,v 1.8 2007/07/20 01:11:31 mezz Exp $
4
5 PORTNAME=       gnome-cups-manager
6 PORTVERSION=    0.31
7 PORTREVISION=   16
8 PORTEPOCH=      1
9 CATEGORIES=     print gnome
10 MASTER_SITES=   GNOME
11 DIST_SUBDIR=    gnome2
12
13 MAINTAINER=     gnome@FreeBSD.org
14 COMMENT=        Administration tool for cups
15
16 LIB_DEPENDS=    libgnomecups-1.0.so:print/libgnomecups
17 RUN_DEPENDS=    gnomesu:security/libgnomesu
18
19 USES=           gettext gmake libtool pathfix pkgconfig tar:bzip2
20 USE_GNOME=      gnomeprefix intlhack libgnomeprintui libgnomeui
21 USE_LDCONFIG=   yes
22 USE_XORG=       x11
23 INSTALLS_ICONS= yes
24 INSTALL_TARGET= install-strip
25 GNU_CONFIGURE=  yes
26 CPPFLAGS+=      -I${LOCALBASE}/include -D_IPP_PRIVATE_STRUCTURES
27 LIBS+=          -L${LOCALBASE}/lib
28
29 post-patch:
30         @${SED} -e 's|%%PREFIX%%|${PREFIX}|' \
31                 < ${FILESDIR}/gnome-cups-manager.desktop \
32                 > ${WRKSRC}/gnome-cups-manager.desktop
33         @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
34                 's|-D.*_DISABLE_DEPRECATED||g'
35         @${REINPLACE_CMD} '/^gnome_cups_icon_LDADD =/s/$$/ -lX11/' \
36                 ${WRKSRC}/gnome-cups-manager/Makefile.in
37         @${REINPLACE_CMD} -e 's|/usr/share|${LOCALBASE}/share|g' \
38                 ${WRKSRC}/libgnomecups/gnome-cups-ui-driver.c
39         @${REINPLACE_CMD} -e 's|glib/gmacros.h>|glib.h>|g' \
40                         -e 's|glib/gstrfuncs.h>|glib.h>|g' \
41                 ${WRKSRC}/libgnomecups/gnome-cups-ui-init.h \
42                 ${WRKSRC}/libgnomecups/gnome-cups-ui-print.h \
43                 ${WRKSRC}/libgnomecups/gnome-cups-i18n.c \
44                 ${WRKSRC}/libgnomecups/gnome-cups-ui-driver.c
45
46 post-install:
47         ${INSTALL_DATA} ${WRKSRC}/gnome-cups-manager.desktop \
48                 ${STAGEDIR}${PREFIX}/share/applications
49
50 .include <bsd.port.mk>