aboutsummaryrefslogtreecommitdiffstats
path: root/print/system-config-printer/Makefile
blob: a48b057a4a4b7857ee5f4e41f4e50ed08b687dac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:    system-config-printer
# Date created:     2008-03-20
# Whom:         Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/print/system-config-printer/Makefile,v 1.3 2008/03/23 16:10:55 ahze Exp $
#

PORTNAME=   system-config-printer
PORTVERSION=    1.0.4
CATEGORIES= print gnome
MASTER_SITES=   http://cyberelk.net/tim/data/${PORTNAME}/${PORTVERSION:R}.x/

MAINTAINER= gnome@FreeBSD.org
COMMENT=    CUPS configuration Gtk+2.0 GUI

BUILD_DEPENDS=  ${PYTHON_SITELIBDIR}/cups.so:${PORTSDIR}/print/py-cups \
        ${LOCALBASE}/libdata/pkgconfig/notify-python.pc:${PORTSDIR}/devel/py-notify \
        xmlproc_parse:${PORTSDIR}/textproc/py-xml \
        ${LOCALBASE}/libdata/pkgconfig/dbus-python.pc:${PORTSDIR}/devel/py-dbus \
        xmlto:${PORTSDIR}/textproc/xmlto \
        desktop-file-install:${PORTSDIR}/devel/desktop-file-utils
RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/cups.so:${PORTSDIR}/print/py-cups \
        ${LOCALBASE}/libdata/pkgconfig/notify-python.pc:${PORTSDIR}/devel/py-notify \
        xmlproc_parse:${PORTSDIR}/textproc/py-xml \
        ${LOCALBASE}/libdata/pkgconfig/dbus-python.pc:${PORTSDIR}/devel/py-dbus

USE_BZIP2=  yes
USE_PYTHON= yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_GETTEXT=    yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
USE_GNOME=  pygtk2
MAN1=   system-config-printer-applet.1 system-config-printer.1

post-patch:
    @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
        's|%%LOCALBASE%%|${LOCALBASE}|g; s|%%PREFIX%%|${PREFIX}|g'

.include <bsd.port.mk>