2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/cups-bjnp
16 PKG_MD5SUM:=4f29dd69a487a90ac7603b5be5cb030f
18 PKG_BUILD_DEPENDS:=cups
20 include $(INCLUDE_DIR)/package.mk
22 define Package/cups-bjnp
25 TITLE:=BJNP protocol backend for CUPS
26 URL:=http://sourceforge.net/projects/cups-bjnp/
30 define Package/cups-bjnp/description
31 CUPS backend for the canon printers using the proprietary USB over
32 IP BJNP protocol. This backend allows Cups to print over the network
33 to a Canon printer. It currently supports Cups 1.2 and Cups 1.3 and
34 is designed by reverse engineering.
37 CONFIGURE_ARGS += --with-cupsbackenddir=$(STAGING_DIR)/usr/include/cups
39 TARGET_CFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
41 define Package/cups-bjnp/install
42 $(INSTALL_DIR) $(1)/usr/lib/cups/backend
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bjnp $(1)/usr/lib/cups/backend
47 $(eval $(call BuildPackage,cups-bjnp))