packages: cups-bjnp: move to Printing
[openwrt/svn-archive/archive.git] / net / cups-bjnp / Makefile
1 #
2 # Copyright (C) 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=cups-bjnp
11 PKG_VERSION:=0.5.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/cups-bjnp
16 PKG_MD5SUM:=4f29dd69a487a90ac7603b5be5cb030f
17
18 PKG_BUILD_DEPENDS:=cups
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/cups-bjnp
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Printing
26 TITLE:=BJNP protocol backend for CUPS
27 URL:=http://sourceforge.net/projects/cups-bjnp/
28 DEPENDS:=cups
29 endef
30
31 define Package/cups-bjnp/description
32 CUPS backend for the canon printers using the proprietary USB over
33 IP BJNP protocol. This backend allows Cups to print over the network
34 to a Canon printer. It currently supports Cups 1.2 and Cups 1.3 and
35 is designed by reverse engineering.
36 endef
37
38 CONFIGURE_ARGS += --with-cupsbackenddir=$(STAGING_DIR)/usr/include/cups
39
40 TARGET_CFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
41
42 define Package/cups-bjnp/install
43 $(INSTALL_DIR) $(1)/usr/lib/cups/backend
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bjnp $(1)/usr/lib/cups/backend
45 endef
46
47
48 $(eval $(call BuildPackage,cups-bjnp))