blob: 86ab797be90675ae2f8baedbf4743eed2d4e333e (
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
42
43
44
45
46
47
48
49
50
51
52
53
|
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
# $MCom: ports/print/system-config-printer/Makefile,v 1.6 2009/12/29 16:03:58 ahze Exp $
PORTNAME= system-config-printer
PORTVERSION= 1.4.2
CATEGORIES= print gnome
MASTER_SITES= http://cyberelk.net/tim/data/${PORTNAME}/${PORTVERSION:R}/
MAINTAINER= gnome@FreeBSD.org
COMMENT= CUPS configuration Gtk+2.0 GUI
BUILD_DEPENDS= xmlto:${PORTSDIR}/textproc/xmlto \
${LOCALBASE}/share/xml/docbook/4.1.2/docbookx.dtd:${PORTSDIR}/textproc/docbook-sk
LIB_DEPENDS= libcups.so:${PORTSDIR}/print/cups-client
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cups.so:${PORTSDIR}/print/py-cups \
${PYTHON_SITELIBDIR}/pycurl.so:${PORTSDIR}/ftp/py-curl \
${LOCALBASE}/libexec/cups-pk-helper-mechanism:${PORTSDIR}/print/cups-pk-helper
USE_XZ= yes
USE_PYTHON= yes
GNU_CONFIGURE= yes
USES= desktop-file-utils gettext gmake pathfix pkgconfig shebangfix
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_GNOME= intlhack pygobject3
CONFIGURE_ARGS= --without-udev-rules \
--without-systemdsystemunitdir
MAN1= system-config-printer-applet.1 \
system-config-printer.1
PLIST_SUB= PYTHON_VER=${PYTHON_VERSION:S/python//}
SHEBANG_FILES= *.py troubleshoot/*.py xml/validate.py
INSTALLS_EGGINFO= yes
PYDISTUTILS_PKGNAME= cupshelpers
PYDISTUTILS_PKGVERSION= 1.0
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g; \
s|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/applet.py ${WRKSRC}/check-device-ids.py \
${WRKSRC}/cupshelpers/cupshelpers.py \
${WRKSRC}/cupshelpers/xmldriverprefs.py \
${WRKSRC}/dbus/org.fedoraproject.Config.Printing.service \
${WRKSRC}/newprinter.py ${WRKSRC}/probe_printer.py
@${REINPLACE_CMD} -e 's|setup.py install|setup.py install -c -O1|g' \
${WRKSRC}/Makefile.in
.include <bsd.port.mk>
|