The package packaged the foo2capt http://sourceforge.net/projects/foo2capt/ . I have tested and it works.
To know what it is used for, you can see link below https://help.ubuntu.com/community/CanonCaptDrv190 the patch part in the patch I sent is to fix compiling. Without you can't compile. I think becuase the gcc is linked with uclibc as I can finish compiling in the other crosstools. Developer's Certificate of Origin 1.1 By making a contribution to this project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. Signed-off-by: Ayaka Developer <randy...@gmail.com, ay...@mail.soulik.info>
Index: package/cupscapt/patches/001-uclibc-unistd-header-fixed.patch =================================================================== --- package/cupscapt/patches/001-uclibc-unistd-header-fixed.patch (çæ¬ 0) +++ package/cupscapt/patches/001-uclibc-unistd-header-fixed.patch (çæ¬ 0) @@ -0,0 +1,11 @@ +diff -rupN foo2capt-foo2capt/util.h cupscapt/util.h +--- foo2capt-foo2capt/util.h 2013-06-22 10:34:07.023159166 +0800 ++++ cupscapt/util.h 2013-06-24 08:37:02.205490042 +0800 +@@ -5,6 +5,7 @@ + #include <cstddef> + #include <cstdint> + #include <cstdio> ++#include <unistd.h> + + static const bool DBG = + #ifdef DEBUG Index: package/cupscapt/Config.in =================================================================== --- package/cupscapt/Config.in (çæ¬ 0) +++ package/cupscapt/Config.in (çæ¬ 0) @@ -0,0 +1,20 @@ +menu "Configuration" + depends on PACKAGE_cupscapt + + config CUPSCAPT_PPD_810 + bool "PPD LBP-810" + default n + + config CUPSCAPT_PPD_1120 + bool "PPD LBP-1120" + default n + + config CUPSCAPT_PPD_2900 + bool "PPD LBP-2900" + default n + + config CUPSCAPT_PPD_3000 + bool "PPD LBP-3000" + default n + +endmenu Index: package/cupscapt/Makefile =================================================================== --- package/cupscapt/Makefile (çæ¬ 0) +++ package/cupscapt/Makefile (çæ¬ 0) @@ -0,0 +1,44 @@ +# Copyright (C) 2013 ayaka soulik.info +# This is free software, licensed under the GNU General Public License v2. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=cupscapt +PKG_VERSION:=0.1.1 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/foo2capt +PKG_MD5SUM:=0c8e44d7d950bb16394fb69c6f99180f +PKG_CAT:=zcat + +include $(INCLUDE_DIR)/package.mk + +define Package/cupscapt +SECTION:=net +CATEGORY:=Network +DEFAULT:=n +TITLE:=CUPS opensource CAPT backend +URL:=http://sourceforge.net/projects/cupscapt/ +DEPENDS:=+libusb-1.0 +cups +libstdcpp +endef + +define Package/cupscapt/description + An attempt to write a driver for Canon CAPT-printers, including, but not + limited to, LBP-2900. +endef + +define Package/cupscapt/config + source "$(SOURCE)/Config.in" +endef + +define Package/cupscapt/install + $(INSTALL_DIR) $(1)/usr/lib/cups/backend + $(INSTALL_BIN) $(PKG_BUILD_DIR)/capt $(1)/usr/lib/cups/backend +# $(INSTALL_DIR) $(1)/usr/share/ppd/cupscapt/ +# $(cp) $(PKG_BUILD_DIR)/ppd/*.ppd.gz $(1)/usr/share/ppd/cupscapt/ +endef + + +$(eval $(call BuildPackage,cupscapt))
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel