| 1 | # $FreeWRT$
|
|---|
| 2 | #-
|
|---|
| 3 | # This file is part of the FreeWRT project. FreeWRT is copyrighted
|
|---|
| 4 | # material, please see the LICENCE file in the top-level directory
|
|---|
| 5 | # or at http://www.freewrt.org/licence for details.
|
|---|
| 6 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| 9 | PKG_NAME:= sane-backends
|
|---|
| 10 | PKG_VERSION:= 1.0.17
|
|---|
| 11 | PKG_RELEASE:= 1
|
|---|
| 12 | PKG_MD5SUM:= b51c10da8a81a04e1bae88c9e6556df2
|
|---|
| 13 |
|
|---|
| 14 | PKG_SOURCE_URL:= ftp://ftp2.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/ \
|
|---|
| 15 | ftp://ftp3.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/ \
|
|---|
| 16 | ftp://ftp4.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/ \
|
|---|
| 17 | ftp://ftp5.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/
|
|---|
| 18 | PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| 19 |
|
|---|
| 20 | include $(TOPDIR)/mk/package.mk
|
|---|
| 21 |
|
|---|
| 22 | $(eval $(call PKG_template,SANE_BACKENDS,sane-backends,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 23 |
|
|---|
| 24 | $(WRKBUILD)/.configured:
|
|---|
| 25 | (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
|
|---|
| 26 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 27 | CFLAGS="$(strip $(TARGET_CFLAGS))" \
|
|---|
| 28 | CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
|---|
| 29 | LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
|
|---|
| 30 | ./configure \
|
|---|
| 31 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 32 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 33 | --build=$(GNU_HOST_NAME) \
|
|---|
| 34 | --program-prefix="" \
|
|---|
| 35 | --program-suffix="" \
|
|---|
| 36 | --prefix=/usr \
|
|---|
| 37 | --exec-prefix=/usr \
|
|---|
| 38 | --bindir=/usr/bin \
|
|---|
| 39 | --datadir=/usr/share \
|
|---|
| 40 | --includedir=/usr/include \
|
|---|
| 41 | --infodir=/usr/share/info \
|
|---|
| 42 | --libdir=/usr/lib \
|
|---|
| 43 | --libexecdir=/usr/lib \
|
|---|
| 44 | --localstatedir=/var \
|
|---|
| 45 | --mandir=/usr/share/man \
|
|---|
| 46 | --sbindir=/usr/sbin \
|
|---|
| 47 | --sysconfdir=/etc \
|
|---|
| 48 | --disable-nls \
|
|---|
| 49 | --enable-shared \
|
|---|
| 50 | --disable-static \
|
|---|
| 51 | --disable-ipv6 \
|
|---|
| 52 | --disable-translations \
|
|---|
| 53 | --without-gphoto2 \
|
|---|
| 54 | --disable-debug \
|
|---|
| 55 | );
|
|---|
| 56 | touch $@
|
|---|
| 57 |
|
|---|
| 58 | $(WRKBUILD)/.built:
|
|---|
| 59 | $(MAKE) -C $(WRKBUILD)
|
|---|
| 60 | mkdir -p $(WRKINST)
|
|---|
| 61 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 62 | DESTDIR="$(WRKINST)" \
|
|---|
| 63 | install
|
|---|
| 64 | touch $@
|
|---|
| 65 |
|
|---|
| 66 | $(IPKG_SANE_BACKENDS):
|
|---|
| 67 | install -d -m0755 $(IDIR_SANE_BACKENDS)/etc/sane.d
|
|---|
| 68 | $(CP) $(WRKINST)/etc/sane.d/*.conf $(IDIR_SANE_BACKENDS)/etc/sane.d/
|
|---|
| 69 | install -d -m0755 $(IDIR_SANE_BACKENDS)/usr/sbin
|
|---|
| 70 | $(CP) $(WRKINST)/usr/sbin/saned $(IDIR_SANE_BACKENDS)/usr/sbin/
|
|---|
| 71 | $(RSTRIP) $(IDIR_SANE_BACKENDS)
|
|---|
| 72 | $(IPKG_BUILD) $(IDIR_SANE_BACKENDS) $(PACKAGE_DIR)
|
|---|