source: freewrt/package/sane-backends/Makefile@ 11aebd0

freewrt_1_0 freewrt_2_0
Last change on this file since 11aebd0 was c57fbc9, checked in by Thorsten Glaser <tg@…>, 19 years ago

nuke DISABLE_NLS, DISABLE_LARGEFILE, replace globally
with --disable-nls and --enable-largefile, because it
doesn't make sense otherwise and/or breaks.

Requested by wbx@ in Message-ID: <20060618220406.GL6291@…>
Done using find and ed(1)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@152 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.2 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=sane-backends
6PKG_VERSION:=1.0.17
7PKG_RELEASE:=1
8PKG_MD5SUM:=b51c10da8a81a04e1bae88c9e6556df2
9
10PKG_SOURCE_URL:=ftp://ftp2.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/ \
11 ftp://ftp3.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/ \
12 ftp://ftp4.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/ \
13 ftp://ftp5.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_CAT:=zcat
16
17PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
19
20include $(TOPDIR)/package/rules.mk
21
22$(eval $(call PKG_template,SANE_BACKENDS,sane-backends,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24$(PKG_BUILD_DIR)/.configured:
25 (cd $(PKG_BUILD_DIR); 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 --enable-largefile \
49 --disable-nls \
50 --enable-shared \
51 --disable-static \
52 --disable-ipv6 \
53 --disable-translations \
54 --without-gphoto2 \
55 --disable-debug \
56 );
57 touch $(PKG_BUILD_DIR)/.configured
58
59$(PKG_BUILD_DIR)/.built:
60 $(MAKE) -C $(PKG_BUILD_DIR)
61 mkdir -p $(PKG_INSTALL_DIR)
62 $(MAKE) -C $(PKG_BUILD_DIR) \
63 DESTDIR="$(PKG_INSTALL_DIR)" \
64 install
65 touch $(PKG_BUILD_DIR)/.built
66
67$(IPKG_SANE_BACKENDS):
68 install -d -m0755 $(IDIR_SANE_BACKENDS)/etc/sane.d
69 $(CP) $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(IDIR_SANE_BACKENDS)/etc/sane.d/
70 install -d -m0755 $(IDIR_SANE_BACKENDS)/usr/sbin
71 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/saned $(IDIR_SANE_BACKENDS)/usr/sbin/
72 $(RSTRIP) $(IDIR_SANE_BACKENDS)
73 $(IPKG_BUILD) $(IDIR_SANE_BACKENDS) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.