pkgsrc/print/hplip/Makefile

184 lines
7.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.13 2013/01/26 21:38:42 adam Exp $
#
HPLIP 3.12.10a: Fixed crash in HP Device Manager and System Tray due to ValueError exception in HPLIP upgrade functionality 1064889 - HP System Tray and Device Manager fails with ValueError exception HPLIP 3.12.10: Added Support for the Following New Printers: - HP Deskjet Ink Advantage 2020HC Printer - HP Deskjet Ink Advantage 2520HC All-in-One - HP Envy 120 e-All-in-One - HP Envy 121 e-All-in-One - HP HotSpot LaserJet Pro M1218nfs MFP - HP OfficeJet 150 Mobile All-in-One Lunchpad fixes: 1054584 - data/rules/hplip_cron only works with English locale 1048732 - hp binary plugin installation fails Issues fixed: - Cannot scan resolution on a Photosmart C6380 - Device communication error after alignment operation from Toolbox Detailed Change Log: - Added permission in 'hp-logcapture' tool HPLIP 3.12.9: Significant Changes: - Added logcapture tool. User can collect logs by running 'hp-logcapture' command for any issue in print/scan/fax functionality Added Support for the Following New Printers: - HP DeskJet 3510 All-in-One - HP DeskJet 3511 e-All-in-One - HP DeskJet 3512 e-All-in-One - HP DeskJet Ink Advantage 6525 e-All-in-One - HP DeskJet Ink Advantage 3515 e-All-in-One - HP DeskJet Ink Advantage 3516 e-All-in-One - HP LaserJet Pro 200 color MFP M276nw - HP LaserJet Pro 200 color MFP M276n - HP LaserJet Pro M251nw Color Printer - HP LaserJet Pro M251n Color Printer - HP Photosmart 7520 e-All-in-One - HP Photosmart 7525 e-All-in-One - HP Photosmart 6520 e All-in-One - HP Photosmart 6525 e All-in-One Launchpad fixes: 452113 - Installing hplip-systray.desktop and hplip.desktop only if gui build is enabled 482674 - Support for xdg-open in base/utils.py 889008 - Scanning in grayscale with HP LaserJet Pro M1212nf give wrong aspect ratio image 932918 - Configure fix for hpcups_only_build 1012004 - HP LaserJet M1536nf MFP fails to install on Ubuntu 12.04 1019826 - Failed plugin install for HP_CP_1025nw 1029052 - WiFi configuration through USB connection is giving I/O error with DeskJet 3050 610a 1015319 - Scanning with version 3.12.6 results in End Of File error messages 1032919 - Use consistent EOL markers Issues fixed: - Device IO error occurs when configuring or perform Scan operation from toolbox with PhotoSmart 6510 Series - Secure Printing(Pin to Print) support for LaserJet M9040 Multifunction Printer - Economode is not working as expected with LaserJet 2055dn - Duplex printing does not happen in Ubuntu 10.04 and Document Viewer not showing the duplex options in all distributions - Fixed incorrect PPD picking issue during auto-plugin - Fixed WiFi configuration issue for LaserJet 400 M401, LaserJet 400 MFP M425, LaserJet Professional M1217 nfw MFP etc. - Plugin Installation UI is not popping up while connecting the plugin supported device via USB with Fedora17 32bit OS - Radio button controls in HP Device Manager do not match default settings in Driver's PPD - Align functionality is not working with PhotoSmart 6510 Series, DeskJet 2050 J510, DeskJet 3050A J611, OfficeJet 6500 E710 - Clean job does not work for the second time and throws Device Communication error - 'hp-levels' command does not give any details when execute from terminal with OfficeJet 7500 E910, DeskJet 3050A J611 and Envy 100 D410 - Fixed scan issue with Photosmart Prem C310 series - Command 'hp-scan -contrast=<contrast>' does not work in terminal - Updated Manual Instructions for Debian OS Detailed Change Log: - Added Chinese string to accept password during Chinese OS installation - Changes done for PrivateTmp feature. Logs get stored in /var/log/hp/tmp
2012-11-18 01:50:42 +01:00
DISTNAME= hplip-3.12.10a
PKGREVISION= 2
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hplip/}
MAINTAINER= schnoebe@NetBSD.org
HOMEPAGE= http://hplipopensource.com/
COMMENT= HP Linux Imaging and Printing
LICENSE= gnu-gpl-v2 AND mit AND modified-bsd
CONFLICTS+= hpijs-[0-9]*
FILES_SUBST+= CUPS_USER=${CUPS_USER}
FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP}
PKG_GROUPS_VARS+= CUPS_GROUP
PKG_USERS_VARS+= CUPS_USER
BUILD_DEFS+= CUPS_USER CUPS_GROUP VARBASE
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_LANGUAGES= c c++ # fortran
USE_TOOLS+= aclocal autoconf automake gmake pkg-config
USE_TOOLS+= perl:run
CONFIGURE_ARGS= --sysconfdir=${PKG_SYSCONFDIR} \
--localstatedir=${VARBASE} \
--with-cupsbackenddir=${PREFIX}/libexec/cups/backend \
--with-cupsfilterdir=${PREFIX}/libexec/cups/filter \
--with-hpppddir=${PREFIX}/share/hplip/ppd/HP
CONFIGURE_ARGS+= --enable-network-build
CONFIGURE_ARGS+= --disable-pp-build
CONFIGURE_ARGS+= --enable-hpcups-install
CONFIGURE_ARGS+= --enable-hpijs-install
CONFIGURE_ARGS+= --enable-cups-drv-install
CONFIGURE_ARGS+= --enable-cups-ppd-install
CONFIGURE_ARGS+= --enable-foomatic-drv-install
CONFIGURE_ARGS+= --enable-foomatic-ppd-install
CONFIGURE_ARGS+= --enable-foomatic-rip-hplip-install
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
EGFILES= hp/hplip.conf
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS}
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
INSTALL_MAKE_FLAGS+= localstatedir=${EGDIR}
INSTALL_MAKE_FLAGS+= systraydir=${EGDIR}/xdg/autostart
INSTALL_MAKE_FLAGS+= mimedir=${EGDIR}/cups
OWN_DIRS+= ${PKG_SYSCONFDIR}/hp
OWN_DIRS+= ${VARBASE}/lib/hp
OWN_DIRS+= ${PREFIX}/share/examples/hplip/log/hp
OWN_DIRS_PERMS+= ${PREFIX}/share/examples/hplip/log/hp ${CUPS_USER} ${CUPS_GROUP} 0774
PLIST_SRC= PLIST.base
.include "options.mk"
.for file in ${EGFILES}
CONF_FILES+= ${EGDIR}/${file} ${PKG_SYSCONFDIR}/${file}
.endfor
CONF_FILES+=
REPLACE_PYTHON= *.py */*.py */*/*.py
REPLACE_PYTHON+= fax/filters/pstotiff
REPLACE_PERL= prnt/filters/hpcac prnt/hpijs/foomatic-rip-hplip
PY_PATCHPLIST= yes
SUBST_CLASSES+= fix-python
SUBST_STAGE.fix-python= post-configure
SUBST_MESSAGE.fix-python= Fixing python invocations in Python files.
SUBST_FILES.fix-python= check.py scan.py setup.py
SUBST_FILES.fix-python+= base/utils.py base/pkit.py
SUBST_FILES.fix-python+= installer/core_install.py
SUBST_FILES.fix-python+= ui/nodevicesform.py ui/devmgr4.py
SUBST_FILES.fix-python+= ui4/nodevicesdialog.py ui4/devmgr5.py
SUBST_SED.fix-python= -e 's,\(['\''"]\)python ,\1${PYTHONBIN} ,g'
SUBST_CLASSES+= fix-paths-0
SUBST_STAGE.fix-paths-0= pre-configure
SUBST_MESSAGE.fix-paths-0= Fixing /var/run in hplip.conf.in.
SUBST_FILES.fix-paths-0= hplip.conf.in
SUBST_SED.fix-paths-0= -e 's,run=/var/run,run=${VARBASE}/run,g'
SUBST_CLASSES+= fix-paths-1
SUBST_STAGE.fix-paths-1= post-configure
SUBST_MESSAGE.fix-paths-1= Fixing /etc and /var paths in Python and C++ files.
SUBST_FILES.fix-paths-1= check.py base/codes.py base/g.py base/utils.py
SUBST_FILES.fix-paths-1+= installer/core_install.py
SUBST_FILES.fix-paths-1+= fax/backend/hpfax.py prnt/cups.py
SUBST_FILES.fix-paths-1+= ui/devmgr4.py ui4/devmgr5.py
SUBST_FILES.fix-paths-1+= prnt/hpcups/HPCupsFilter.cpp prnt/hpcups/Utils.cpp
SUBST_FILES.fix-paths-1+= prnt/hpijs/globals.cpp prnt/hpijs/hpcupsfax.cpp
SUBST_FILES.fix-paths-1+= prnt/hpijs/hpijs.cpp
SUBST_SED.fix-paths-1= -e 's,\([ '\''"=]\)/etc/hp,\1${PKG_SYSCONFDIR}/hp,g'
SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/etc/cups,\1${PKG_SYSCONFDIR}/cups,g'
SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/etc/sane.d,\1${PKG_SYSCONFDIR}/sane.d,g'
SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/var/lib/hp,\1${VARBASE}/lib/hp,g'
SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/var/log/cups,\1${VARBASE}/log/cups,g'
SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/var/spool/cups,\1${VARBASE}/spool/cups,g'
SUBST_CLASSES+= fix-paths-2
SUBST_STAGE.fix-paths-2= post-configure
SUBST_MESSAGE.fix-paths-2= Fixing additional paths in installer/core_install.py.
SUBST_FILES.fix-paths-2= installer/core_install.py
SUBST_SED.fix-paths-2= -e 's,"/etc/PolicyKit,"${PKG_SYSCONFDIR}/PolicyKit,g'
SUBST_SED.fix-paths-2+= -e 's,"/etc/polkit-1,"${PKG_SYSCONFDIR}/polkit-1,g'
SUBST_SED.fix-paths-2+= -e 's,"file:///etc/hp,"file://${PKG_SYSCONFDIR}/hp,g'
SUBST_SED.fix-paths-2+= -e 's,"/usr/lib/cups/driver,"${PREFIX}/libexec/cups/driver,g'
SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/usr,\1${PREFIX},g'
SUBST_CLASSES+= fix-paths-3
SUBST_STAGE.fix-paths-3= post-configure
SUBST_MESSAGE.fix-paths-3= Fixing additional paths in base/pkit.py.
SUBST_FILES.fix-paths-3= base/pkit.py
SUBST_SED.fix-paths-3= -e 's,\([ '\''"=]\)/usr,\1${PREFIX},g'
SUBST_CLASSES+= fix-paths-4
SUBST_STAGE.fix-paths-4= post-configure
SUBST_MESSAGE.fix-paths-4= Fixing default PPD search path in base/g.py and prnt/cups.py.
SUBST_FILES.fix-paths-4= base/g.py prnt/cups.py
SUBST_SED.fix-paths-4= -e '\,ppd_search_path =, { s,/usr/\([a-z]*\);,/usr/\1;${PREFIX}/\1;,g ; }'
SUBST_SED.fix-paths-4+= -e 's,\([ '\''"=]\)/usr/share/ppd,\1${PREFIX}/share/ppd,g'
SUBST_CLASSES+= fix-paths-5
SUBST_STAGE.fix-paths-5= post-configure
SUBST_MESSAGE.fix-paths-5= Fixing paths in prnt/hpijs/foomatic-rip-hplip.
SUBST_FILES.fix-paths-5= prnt/hpijs/foomatic-rip-hplip
SUBST_SED.fix-paths-5= -e 's,\([ '\''"=]\)/etc/cups,\1${PKG_SYSCONFDIR}/cups,g'
SUBST_SED.fix-paths-5+= -e 's,\([ '\''"=]\)/etc/foomatic,\1${PKG_SYSCONFDIR}/foomatic,g'
SUBST_SED.fix-paths-5+= -e 's,\([ '\''"=]\)/var/spool,\1${VARBASE}/spool,g'
SUBST_SED.fix-paths-5+= -e 's,prefix = "/usr",prefix = "${PREFIX}",g'
SUBST_SED.fix-paths-5+= -e 's,\(path = "/usr/bin:\),\1${PREFIX}/bin:,g'
SUBST_SED.fix-paths-5+= -e 's,\(path = "/usr/lib/cups/filter:\),\1${PREFIX}/libexec/cups/filter:,g'
SUBST_SED.fix-paths-5+= -e '\,} elsif (-r "/usr/share/ppr, { N ; p ; s,"/usr,"${PREFIX},g ; }'
SUBST_CLASSES+= fix-paths-6
SUBST_STAGE.fix-paths-6= post-configure
SUBST_MESSAGE.fix-paths-6= Fixing paths in fax/filters/pstotiff.
SUBST_FILES.fix-paths-6= fax/filters/pstotiff
SUBST_SED.fix-paths-6= -e 's,"-I/usr/share/cups/fonts","-I${PREFIX}/share/cups/fonts",g'
SUBST_SED.fix-paths-6+= -e 's,"/usr/bin/gs","${PREFIX}/bin/gs",g'
# NetBSD has strnlen(3) since 5.99.12
.if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M5.99.*) && empty(OS_VERSION:M[6-9].*)
SUBST_CLASSES+= fix-strnlen
SUBST_STAGE.fix-strnlen= post-configure
SUBST_MESSAGE.fix-strnlen= Replacing strnlen() with strlen() in two C++ files.
SUBST_FILES.fix-strnlen= prnt/hpijs/context2.cpp prnt/hpijs/ljzjscolor.cpp
SUBST_SED.fix-strnlen= -e 's/\([ (]\)strnlen(\([^,]*\), DevIDBuffSize)/\1strlen(\2)/g'
.endif
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
pre-configure:
cd ${WRKSRC} && aclocal && automake --add-missing --foreign && autoconf
INSTALLATION_DIRS+= share/cups/model
post-install:
${CHMOD} a-x ${DESTDIR}${PREFIX}/share/hplip/__init__.py
${PY_COMPILE_ALL} ${DESTDIR}${PREFIX}/share/hplip
${LN} -s ../../../share/hplip/ppd ${DESTDIR}${PREFIX}/share/cups/model/hplip-ppds
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../net/net-snmp/buildlink3.mk"
.include "../../print/cups/buildlink3.mk"
.include "../../print/ghostscript/buildlink3.mk"
pkgsrc specific: Update to 3.12.6 PR pkgsrc/46475 remove use of strnlen to support building on older platforms that do not support the function. Changelog/Release Notes: Significant Changes: - 'hp-check' tool when run with "--fix" option resolves missing dependencies/groups/plugin and disable SELinux - Added PIN to PRINT support for HP Color LaserJet CM4540 MFP - libusb-1.0 support added Added Support for the Following New Printers: - HP DeskJet Ink Advantage 2510 All-in-One Series - HP DeskJet Ink Advantage 3525 e-All-in-One - HP DeskJet Ink Advantage 4610 All-in-One Series - HP DeskJet Ink Advantage 4620 e-All-in-One Series - HP DeskJet Ink Advantage 5525 e-All-in-One - HP DeskJet 2510 All-in-One Series - HP DeskJet 3520 e-All-in-One Series - HP OfficeJet 4610 All-in-One Series - HP OfficeJet 4620 e-All-in-One Series - HP Photosmart 5520 e-All-in-One Series - HP LaserJet 400 M401 - HP LaserJet 400 MFP M425 Series - HP LaserJet Enterprise 500 MFP M525 Series - HP LaserJet Enterprise 500 Color MFP M575 Series - HP LaserJet Professional P 1102w Printer - HP LaserJet Professional P1107w Printer - HP LaserJet Professional P1107 Printer - HP LaserJet Professional P1109w Printer - HP LaserJet Professional P1109 Printer - HP LaserJet Professional M1137 MFP - HP LaserJet Professional M1138 MFP - HP LaserJet Professional M1139 MFP - HP LaserJet Professional P1567 - HP LaserJet Professional P1568 - HP LaserJet Professional P1569 - HP LaserJet Professional P1607dn Printer - HP LaserJet Professional P1608dn Printer - HP LaserJet Professional P1609dn Printer Launchpad fixes: 1007836 - Log files from Print to Photo Tray attempt, not working Issues fixed: - HPLIP installation hangs at "Remove and Install" on Fedora 16 64bit OS - Supplies information was not getting refreshed unless hp-toolbox was re-launched - Fix for multiple queues configured warning message - Added dynamic cartridge part number display support for LEDM devices - Enabled Low ink alert message display for LEDM devices Detailed Change Log: - libusb-1.0 support added - cleaned up hp-upgrade zombie processes - Added auto refresh in hp-systray when new device added or removed using hp-toolbox - Fixed the issue of Dbus install failure centOS 6 - Removed obsolete ftime function and added gettimeofday - Added the hplipjs filter in the hplip.list.in file to include this filter in the RHEL5 & RHEL6 for PIN to PRINT - SELinux disable supported in hp-check --fix - Added Wget as dependency in HPLIP build
2012-06-23 06:50:06 +02:00
.include "../../devel/libusb1/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/py-xml/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"