add dependency on sane-libs to sane-backends, don't package dev shlibs, bump release number, tidy up Makefile

git-svn-id: svn://svn.openwrt.org/openwrt/packages@5591 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2006-11-20 17:33:46 +00:00
parent 768fa96082
commit 72247afe68

View File

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=sane-backends
PKG_VERSION:=1.0.17
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/
@ -22,26 +22,26 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/sane-backends
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Scanner Access Now Easy (backends)
define Package/sane-backends/Default
TITLE:=Scanner Access Now Easy
DESCRIPTION:=\
SANE (Scanner Access Now Easy) is a universal scanner interface.
URL:=http://www.sane-project.org
URL:=http://www.sane-project.org/
endef
define Package/sane-backends
$(call Package/sane-backends/Default)
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+sane-libs
TITLE+= (backends)
endef
define Package/sane-libs
$(call Package/sane-backends/Default)
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
TITLE+= (libraries)
endef
define Build/Configure
@ -59,6 +59,10 @@ define Build/Compile
all install
endef
define Package/sane-backends/conffiles
/etc/sane.d/saned.conf
endef
define Package/sane-backends/install
install -d -m0755 $(1)/etc/sane.d
$(CP) $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(1)/etc/sane.d/
@ -67,8 +71,10 @@ define Package/sane-backends/install
endef
define Package/sane-libs/install
install -d -m0755 $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsane.so.* $(1)/usr/lib/
install -d -m0755 $(1)/usr/lib/sane
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sane/libsane-*.so.* $(1)/usr/lib/sane/
endef
$(eval $(call BuildPackage,sane-backends))