1 # Created by: Glenn Johnson <glennpj@charter.net>
3 # $MCom: ports/print/gnome-cups-manager/Makefile,v 1.8 2007/07/20 01:11:31 mezz Exp $
5 PORTNAME= gnome-cups-manager
9 CATEGORIES= print gnome
13 MAINTAINER= gnome@FreeBSD.org
14 COMMENT= Administration tool for cups
16 LIB_DEPENDS= libgnomecups-1.0.so:print/libgnomecups
17 RUN_DEPENDS= gnomesu:security/libgnomesu
19 USES= gettext gmake libtool pathfix pkgconfig tar:bzip2
20 USE_GNOME= gnomeprefix intlhack libgnomeprintui libgnomeui
24 INSTALL_TARGET= install-strip
26 CPPFLAGS+= -I${LOCALBASE}/include -D_IPP_PRIVATE_STRUCTURES
27 LIBS+= -L${LOCALBASE}/lib
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
47 ${INSTALL_DATA} ${WRKSRC}/gnome-cups-manager.desktop \
48 ${STAGEDIR}${PREFIX}/share/applications
50 .include <bsd.port.mk>