X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=utils%2Fsane-backends%2FMakefile;h=e74409199aae3bcb78b777c2b24309a83fd23811;hp=da2099e72d8814901fc12a7020fb3a3708a85322;hb=80776232a663507cc6492a55556334bf8d909c6d;hpb=f775f75ad48068f94005ad95c10bc232675ba116;ds=sidebyside diff --git a/utils/sane-backends/Makefile b/utils/sane-backends/Makefile index da2099e72d..e74409199a 100644 --- a/utils/sane-backends/Makefile +++ b/utils/sane-backends/Makefile @@ -11,10 +11,10 @@ include $(TOPDIR)/rules.mk PKG_NAME:=sane-backends PKG_VERSION:=1.0.17 PKG_RELEASE:=1 -PKG_MD5SUM:=b51c10da8a81a04e1bae88c9e6556df2 -PKG_SOURCE_URL:=ftp://ftp.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=ftp://ftp.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/ +PKG_MD5SUM:=b51c10da8a81a04e1bae88c9e6556df2 PKG_CAT:=zcat PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) @@ -26,29 +26,37 @@ define Package/sane-backends SECTION:=utils CATEGORY:=Utilities TITLE:=Scanner Access Now Easy (backends) - DESCRIPTION:=SANE (Scanner Access Now Easy) is a universal scanner interface. + DESCRIPTION:=\ + SANE (Scanner Access Now Easy) is a universal scanner interface. URL:=http://www.sane-project.org endef +define Package/sane-libs + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Scanner Access Now Easy (libraries) + DESCRIPTION:=\ + SANE (Scanner Access Now Easy) is a universal scanner interface. + URL:=http://www.sane-project.org +endef + define Package/sane-backends/conffiles /etc/sane.d/saned.conf endef define Build/Configure -$(call Build/Configure/Default,--enable-shared \ - --disable-static \ - --disable-ipv6 \ - --disable-translations \ - --without-gphoto2 \ - --disable-debug) + $(call Build/Configure/Default, \ + --disable-ipv6 \ + --disable-translations \ + --without-gphoto2 \ + --disable-debug \ + ) endef define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) - mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ - install + all install endef define Package/sane-backends/install @@ -58,4 +66,10 @@ define Package/sane-backends/install $(CP) $(PKG_INSTALL_DIR)/usr/sbin/saned $(1)/usr/sbin/ endef +define Package/sane-libs/install + install -d -m0755 $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ +endef + $(eval $(call BuildPackage,sane-backends)) +$(eval $(call BuildPackage,sane-libs))