# $OpenBSD: Makefile,v 1.44 2013/04/10 12:34:27 ajacoutot Exp $ COMMENT= printer (CUPS) administration tool DISTNAME= system-config-printer-1.3.12 REVISION= 1 CATEGORIES= print sysutils HOMEPAGE= http://cyberelk.net/tim/software/system-config-printer/ MAINTAINER= Antoine Jacoutot # GPLv2 PERMIT_PACKAGE_CDROM= Yes MASTER_SITES= http://cyberelk.net/tim/data/system-config-printer/1.3/ EXTRACT_SUFX= .tar.xz MODULES= lang/python \ textproc/intltool COMMON_DEPENDS= devel/gettext \ devel/py-notify \ net/py-curl \ net/py-smbc \ print/py-cups>=1.9.62 \ textproc/py-xml \ x11/dbus-python \ x11/py-gtk2 \ print/cups-pk-helper BUILD_DEPENDS= ${COMMON_DEPENDS} \ textproc/xmlto # desktop-file-install(1) BUILD_DEPENDS += devel/desktop-file-utils RUN_DEPENDS= ${COMMON_DEPENDS} \ devel/desktop-file-utils # package is only useful if cups is installed RUN_DEPENDS += print/cups USE_GMAKE= Yes USE_GROFF = Yes CONFIGURE_STYLE= gnu CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \ LDFLAGS=-L${LOCALBASE}/lib SUBST_FILES= applet.py cupshelpers/cupshelpers.py \ probe_printer.py newprinter.py \ udev/udev-configure-printer.c \ troubleshoot/CheckSELinux.py \ troubleshoot/SchedulerNotRunning.py \ cupshelpers/xmldriverprefs.py \ dbus/org.fedoraproject.Config.Printing.service \ check-device-ids.py FAKE_FLAGS= dbusdir=${PREFIX}/share/examples/system-config-printer/dbus-1/system.d/ \ autostartdir=${PREFIX}/share/examples/system-config-printer/xdg/autostart/ \ cupshelpersdir=${PREFIX}/share/examples/system-config-printer/cupshelpers/ 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} ${SUBST_CMD} ${WRKSRC}/$f .endfor .include