fix mount options for /tmp
[openwrt.git] / openwrt / package / screen / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=screen
6 PKG_VERSION:=4.0.2
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=ed68ea9b43d9fba0972cb017a24940a1
9
10 PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/screen \
11 ftp://ftp.belnet.be/mirror/ftp.gnu.org/gnu/screen/ \
12 ftp://ftp.mirror.nl/pub/mirror/gnu/screen/ \
13 http://mirror.switch.ch/ftp/mirror/gnu/screen/
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_CAT:=zcat
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
19
20 include $(TOPDIR)/package/rules.mk
21
22 $(eval $(call PKG_template,SCREEN,screen,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
25 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
26 $(TARGET_CONFIGURE_OPTS) \
27 $(foreach flag,rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime,ac_cv_func_$(flag)=yes ) \
28 CFLAGS="$(TARGET_CFLAGS)" \
29 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
30 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --program-prefix="" \
36 --program-suffix="" \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --datadir=/usr/share \
41 --includedir=/usr/include \
42 --infodir=/usr/share/info \
43 --libdir=/usr/lib \
44 --libexecdir=/usr/lib \
45 --localstatedir=/var \
46 --mandir=/usr/share/man \
47 --sbindir=/usr/sbin \
48 --sysconfdir=/etc \
49 $(DISABLE_LARGEFILE) \
50 $(DISABLE_NLS) \
51 --enable-shared \
52 --disable-static \
53 );
54 touch $@
55
56 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
57 $(MAKE) -C $(PKG_BUILD_DIR)
58 touch $@
59
60 $(IPKG_SCREEN):
61 install -d -m0755 $(IDIR_SCREEN)/usr/sbin
62 install -m0755 $(PKG_BUILD_DIR)/screen $(IDIR_SCREEN)/usr/sbin/
63 $(RSTRIP) $(IDIR_SCREEN)
64 $(IPKG_BUILD) $(IDIR_SCREEN) $(PACKAGE_DIR)
This page took 0.040364 seconds and 5 git commands to generate.