nuke $Id$ in /packages as well
[packages.git] / utils / hplip / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=hplip
11 PKG_VERSION:=2.8.9
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/hplip
16 PKG_MD5SUM:=2e20dba86abb99a3ca59d05e814ce9a1
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_BUILD_DEPENDS := python
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define 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
29 endef
30
31 define Package/hplip/description
32         HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
33 endef
34
35 CONFIGURE_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
43 define Build/Configure
44         $(call Build/Configure/Default,\
45                 $(CONFIGURE_ARGS),\
46                 ac_cv_lib_cups_cupsDoFileRequest=yes \
47                 LIBS="-ljpeg -lusb" \
48         )
49 endef
50
51 define Package/hplip/install
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(CP) $(PKG_BUILD_DIR)/.libs/libhpip.so* $(1)/usr/lib/
54         $(CP) $(PKG_BUILD_DIR)/.libs/libhpmud.so* $(1)/usr/lib/
55         
56         $(INSTALL_DIR) $(1)/usr/lib/cups/backend
57         $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/hp $(1)/usr/lib/cups/backend
58
59         $(INSTALL_DIR) $(1)/usr/lib/sane
60         $(CP) $(PKG_BUILD_DIR)/.libs/libsane-hpaio.so* $(1)/usr/lib/sane
61
62         $(INSTALL_DIR) $(1)/etc/hp
63         $(CP) $(PKG_BUILD_DIR)/hplip.conf $(1)/etc/hp/hplip.conf
64
65         $(INSTALL_DIR) $(1)/usr/share/hplip/data/models/
66         $(CP) $(PKG_BUILD_DIR)/data/models/models.dat $(1)/usr/share/hplip/data/models/
67 endef
68
69 $(eval $(call BuildPackage,hplip))