freebsd-ports/print/gnome-cups-manager/Makefile
Alex Kozlov e159824929 - Convert USE_GETTEXT to USES (part 3)
Approved by:	portmgr (bapt)
2013-04-24 18:10:30 +00:00

55 lines
1.6 KiB
Makefile

# New ports collection makefile for: gnome-cups-manager
# Date created: 14 Jul 2003
# Whom: Glenn Johnson <glennpj@charter.net>
#
# $FreeBSD$
# $MCom: ports/print/gnome-cups-manager/Makefile,v 1.8 2007/07/20 01:11:31 mezz Exp $
#
PORTNAME= gnome-cups-manager
PORTVERSION= 0.31
PORTREVISION= 14
PORTEPOCH= 1
CATEGORIES= print gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= Administration tool for cups
LIB_DEPENDS= gnomecups-1.0.1:${PORTSDIR}/print/libgnomecups
RUN_DEPENDS= gnomesu:${PORTSDIR}/security/libgnomesu
USE_AUTOTOOLS= libtool
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= gnomeprefix gnomehack intlhack libgnomeprintui libgnomeui \
desktopfileutils
USES= gettext
INSTALLS_ICONS= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${SED} -e 's|%%PREFIX%%|${PREFIX}|' \
< ${FILESDIR}/gnome-cups-manager.desktop \
> ${WRKSRC}/gnome-cups-manager.desktop
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|-D.*_DISABLE_DEPRECATED||g'
@${REINPLACE_CMD} -e 's|/usr/share|${LOCALBASE}/share|g' \
${WRKSRC}/libgnomecups/gnome-cups-ui-driver.c
@${REINPLACE_CMD} -e 's|glib/gmacros.h>|glib.h>|g' \
-e 's|glib/gstrfuncs.h>|glib.h>|g' \
${WRKSRC}/libgnomecups/gnome-cups-ui-init.h \
${WRKSRC}/libgnomecups/gnome-cups-ui-print.h \
${WRKSRC}/libgnomecups/gnome-cups-i18n.c \
${WRKSRC}/libgnomecups/gnome-cups-ui-driver.c
post-install:
${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/gnome-cups-manager.desktop \
${PREFIX}/share/applications
.include <bsd.port.mk>