mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
f7a5f3a117
- Stage support - desktop-file-utils not needed as the .desktop file has no MimeType Reported by: pkg-fallout With hat: portmgr MFH: 2014Q2
48 lines
1.5 KiB
Makefile
48 lines
1.5 KiB
Makefile
# Created by: 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= libgnomecups-1.0.so:${PORTSDIR}/print/libgnomecups
|
|
RUN_DEPENDS= gnomesu:${PORTSDIR}/security/libgnomesu
|
|
|
|
USE_AUTOTOOLS= libtool
|
|
USE_GNOME= gnomeprefix intlhack libgnomeprintui libgnomeui
|
|
USES= gettext gmake pathfix pkgconfig tar:bzip2
|
|
INSTALLS_ICONS= yes
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include -D_IPP_PRIVATE_STRUCTURES
|
|
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:
|
|
${INSTALL_DATA} ${WRKSRC}/gnome-cups-manager.desktop \
|
|
${STAGEDIR}${PREFIX}/share/applications
|
|
|
|
.include <bsd.port.mk>
|