source: packages/utils/hplip/Makefile @ 20307

Last change on this file since 20307 was 20307, checked in by florian, 6 years ago

[package] update hplip to 3.9.12 (#6597)

File size: 1.9 KB
Line 
1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=hplip
11PKG_VERSION:=3.9.12
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/hplip
16PKG_MD5SUM:=2b0906b4a57b437988829557ca62adfd
17
18PKG_BUILD_DEPENDS := python
19PKG_FIXUP:=libtool
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/hplip
24  SECTION:=utils
25  CATEGORY:=Utilities
26  TITLE:=HP Linux Imaging and Printing
27  URL:=http://sourceforge.net/projects/hplip/
28  DEPENDS+=+libjpeg +sane-libs +cups +libusb
29endef
30
31define Package/hplip/description
32        HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
33endef
34
35CONFIGURE_ARGS += \
36        --disable-gui-build \
37        --disable-network-build \
38        --disable-fax-build \
39        --disable-pp-build \
40        --disable-doc-build \
41        --disable-foomatic-xml-install \
42        --disable-dbus-build
43
44define Build/Configure
45        $(call Build/Configure/Default,\
46                $(CONFIGURE_ARGS),\
47                ac_cv_lib_cups_cupsDoFileRequest=yes \
48                LIBS="-lz -ljpeg -lusb -lcups -lpng -ltiff" \
49        )
50endef
51
52define Package/hplip/install
53        $(INSTALL_DIR) $(1)/usr/lib
54        $(CP) $(PKG_BUILD_DIR)/.libs/libhpip.so* $(1)/usr/lib/
55        $(CP) $(PKG_BUILD_DIR)/.libs/libhpmud.so* $(1)/usr/lib/
56
57        $(INSTALL_DIR) $(1)/usr/lib/cups/backend
58        $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/hp $(1)/usr/lib/cups/backend
59
60        $(INSTALL_DIR) $(1)/usr/lib/sane
61        $(CP) $(PKG_BUILD_DIR)/.libs/libsane-hpaio.so* $(1)/usr/lib/sane
62
63        $(INSTALL_DIR) $(1)/etc/hp
64        $(CP) $(PKG_BUILD_DIR)/hplip.conf $(1)/etc/hp/hplip.conf
65
66        $(INSTALL_DIR) $(1)/usr/share/hplip/data/models/
67        $(CP) $(PKG_BUILD_DIR)/data/models/models.dat $(1)/usr/share/hplip/data/models/
68
69        $(INSTALL_DIR) $(1)/etc/hotplug.d/usb/
70        $(INSTALL_BIN) ./files/20-hplip $(1)/etc/hotplug.d/usb/
71endef
72
73$(eval $(call BuildPackage,hplip))
Note: See TracBrowser for help on using the repository browser.