1228e6a72e
- make the manage printer job entry appear (from jasper@) - fix path to system-config-printer in applet.py - use SUBST_FILES ok jasper@
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.3 2008/06/12 21:51:42 ajacoutot Exp $
|
|
|
|
COMMENT= printer (CUPS) administration tool
|
|
|
|
DISTNAME= system-config-printer-0.9.90
|
|
PKGNAME= ${DISTNAME}p1
|
|
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
|
|
|
|
MASTER_SITES= http://cyberelk.net/tim/data/system-config-printer/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MODULES= lang/python \
|
|
textproc/intltool
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
RUN_DEPENDS= ::devel/desktop-file-utils \
|
|
::devel/gettext \
|
|
::devel/py-notify \
|
|
::print/py-cups \
|
|
::textproc/py-xml \
|
|
::textproc/xmlto \
|
|
::x11/dbus-python \
|
|
::x11/gnome/py-gnome
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
|
|
LDFLAGS=-L${LOCALBASE}/lib
|
|
|
|
SUBST_FILES= applet.py cupshelpers.py pysmb.py \
|
|
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}
|
|
${SUBST_CMD} ${WRKSRC}/$f
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|