2012-05-09 11:24:17 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.37 2012/05/09 15:24:17 ajacoutot Exp $
|
2008-04-10 06:23:04 -04:00
|
|
|
|
|
|
|
COMMENT= printer (CUPS) administration tool
|
|
|
|
|
2012-04-11 12:04:03 -04:00
|
|
|
DISTNAME= system-config-printer-1.3.9
|
2012-05-09 11:24:17 -04:00
|
|
|
REVISION= 2
|
2009-12-22 10:54:32 -05:00
|
|
|
|
2008-04-10 06:23:04 -04:00
|
|
|
CATEGORIES= print sysutils
|
|
|
|
|
|
|
|
HOMEPAGE= http://cyberelk.net/tim/software/system-config-printer/
|
|
|
|
|
2010-03-21 06:14:50 -04:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
2008-04-10 06:23:04 -04:00
|
|
|
# GPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2011-05-04 05:10:52 -04:00
|
|
|
MASTER_SITES= http://cyberelk.net/tim/data/system-config-printer/1.3/
|
|
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
|
2008-04-10 06:23:04 -04:00
|
|
|
MODULES= lang/python \
|
|
|
|
textproc/intltool
|
|
|
|
|
2008-10-16 08:52:39 -04:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS} \
|
2010-11-20 04:48:38 -05:00
|
|
|
textproc/xmlto
|
|
|
|
RUN_DEPENDS= devel/desktop-file-utils \
|
|
|
|
devel/gettext \
|
|
|
|
devel/py-notify \
|
2012-05-06 03:21:17 -04:00
|
|
|
net/py-curl \
|
2012-02-26 02:13:26 -05:00
|
|
|
net/py-smbc>=1.0.13 \
|
2011-07-29 12:56:32 -04:00
|
|
|
print/py-cups>=1.9.58 \
|
2010-11-20 04:48:38 -05:00
|
|
|
textproc/py-xml \
|
|
|
|
x11/dbus-python \
|
2011-07-20 03:20:06 -04:00
|
|
|
x11/py-gtk2 \
|
2011-05-22 10:19:42 -04:00
|
|
|
print/cups-pk-helper
|
2008-04-10 06:23:04 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2010-11-20 04:48:38 -05:00
|
|
|
USE_GROFF = Yes
|
2008-04-10 06:23:04 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
|
|
|
|
LDFLAGS=-L${LOCALBASE}/lib
|
|
|
|
|
2011-05-04 05:10:52 -04:00
|
|
|
SUBST_FILES= applet.py cupshelpers/cupshelpers.py \
|
|
|
|
probe_printer.py newprinter.py \
|
|
|
|
udev/udev-configure-printer.c \
|
|
|
|
troubleshoot/CheckSELinux.py \
|
2012-04-22 09:44:09 -04:00
|
|
|
troubleshoot/SchedulerNotRunning.py \
|
2011-05-04 05:10:52 -04:00
|
|
|
cupshelpers/xmldriverprefs.py \
|
|
|
|
dbus/org.fedoraproject.Config.Printing.service \
|
|
|
|
check-device-ids.py
|
|
|
|
|
2008-04-10 06:23:04 -04:00
|
|
|
|
2009-02-10 12:19:42 -05:00
|
|
|
FAKE_FLAGS= dbusdir=${PREFIX}/share/examples/system-config-printer/dbus-1/system.d/ \
|
2011-05-04 05:10:52 -04:00
|
|
|
autostartdir=${PREFIX}/share/examples/system-config-printer/xdg/autostart/ \
|
|
|
|
cupshelpersdir=${PREFIX}/share/examples/system-config-printer/cupshelpers/
|
2009-02-10 12:19:42 -05:00
|
|
|
|
2008-04-10 06:23:04 -04:00
|
|
|
pre-configure:
|
|
|
|
find ${WRKDIST} -name \*.py | \
|
|
|
|
xargs perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g;' \
|
|
|
|
-e 's,/usr/bin/python,${MODPY_BIN},g'
|
|
|
|
.for f in ${SUBST_FILES}
|
2008-06-12 17:51:42 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/$f
|
2008-04-10 06:23:04 -04:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|