2008-10-27 09:29:13 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2008/10/27 13:29:13 ajacoutot Exp $
|
2008-04-10 06:23:04 -04:00
|
|
|
|
|
|
|
COMMENT= printer (CUPS) administration tool
|
|
|
|
|
2008-10-27 09:29:13 -04:00
|
|
|
DISTNAME= system-config-printer-1.0.9
|
2008-04-10 06:23:04 -04:00
|
|
|
CATEGORIES= print sysutils
|
|
|
|
|
|
|
|
HOMEPAGE= http://cyberelk.net/tim/software/system-config-printer/
|
|
|
|
|
|
|
|
# GPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2008-07-08 05:33:21 -04:00
|
|
|
MASTER_SITES= http://cyberelk.net/tim/data/system-config-printer/1.0.x/
|
2008-04-10 06:23:04 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MODULES= lang/python \
|
|
|
|
textproc/intltool
|
|
|
|
|
2008-10-16 08:52:39 -04:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS} \
|
|
|
|
::textproc/xmlto
|
2008-04-10 06:23:04 -04:00
|
|
|
RUN_DEPENDS= ::devel/desktop-file-utils \
|
|
|
|
::devel/gettext \
|
|
|
|
::devel/py-notify \
|
|
|
|
::print/py-cups \
|
|
|
|
::textproc/py-xml \
|
|
|
|
::x11/dbus-python \
|
|
|
|
::x11/gnome/py-gnome
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
|
|
|
|
LDFLAGS=-L${LOCALBASE}/lib
|
|
|
|
|
2008-07-08 05:33:21 -04:00
|
|
|
SUBST_FILES= applet.py cupshelpers/cupshelpers.py pysmb.py \
|
2008-04-10 06:23:04 -04:00
|
|
|
system-config-printer.py my-default-printer \
|
|
|
|
system-config-printer system-config-printer-applet \
|
|
|
|
manage-print-jobs.desktop.in \
|
|
|
|
my-default-printer.desktop.in \
|
|
|
|
print-applet.desktop.in \
|
|
|
|
system-config-printer.desktop.in
|
|
|
|
|
|
|
|
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>
|