3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=ed68ea9b43d9fba0972cb017a24940a1
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
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 include $(TOPDIR
)/package
/rules.mk
22 $(eval
$(call PKG_template
,SCREEN
,screen
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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" \
32 --target
=$(GNU_TARGET_NAME
) \
33 --host
=$(GNU_TARGET_NAME
) \
34 --build
=$(GNU_HOST_NAME
) \
40 --datadir=/usr
/share \
41 --includedir=/usr
/include \
42 --infodir=/usr
/share
/info \
44 --libexecdir
=/usr
/lib \
45 --localstatedir
=/var \
46 --mandir=/usr
/share
/man \
49 $(DISABLE_LARGEFILE
) \
56 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
57 $(MAKE
) -C
$(PKG_BUILD_DIR
)
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
)