2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/hplip
17 PKG_MD5SUM
:=2e20dba86abb99a3ca59d05e814ce9a1
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_BUILD_DEPENDS
:= python
22 include $(INCLUDE_DIR
)/package.mk
27 TITLE
:=HP Linux Imaging and Printing
28 URL
:=http
://sourceforge.net
/projects
/hplip
/
29 DEPENDS
+=+libjpeg
+sane-libs
+cups
+libusb
32 define Package
/hplip
/description
33 HPLIP is an HP developed solution for printing
, scanning
, and faxing with HP inkjet and laser based printers in Linux.
38 --disable-network-build \
42 --disable-foomatic-xml-install
44 define Build
/Configure
45 $(call Build
/Configure
/Default
,\
47 ac_cv_lib_cups_cupsDoFileRequest
=yes \
52 define 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
/
57 $(INSTALL_DIR
) $(1)/usr
/lib
/cups
/backend
58 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/.libs
/hp
$(1)/usr
/lib
/cups
/backend
60 $(INSTALL_DIR
) $(1)/usr
/lib
/sane
61 $(CP
) $(PKG_BUILD_DIR
)/.libs
/libsane-hpaio.so
* $(1)/usr
/lib
/sane
63 $(INSTALL_DIR
) $(1)/etc
/hp
64 $(CP
) $(PKG_BUILD_DIR
)/hplip.conf
$(1)/etc
/hp
/hplip.conf
66 $(INSTALL_DIR
) $(1)/usr
/share
/hplip
/data
/models
/
67 $(CP
) $(PKG_BUILD_DIR
)/data
/models
/models.dat
$(1)/usr
/share
/hplip
/data
/models
/
70 $(eval
$(call BuildPackage
,hplip
))