more tristate -> prompt fixes
[openwrt.git] / package / atftp / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=atftp
6 PKG_VERSION:=0.7
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=3b27365772d918050b2251d98a9c7c82
9
10 PKG_SOURCE_URL:=ftp://ftp.mamalinux.com/pub/atftp/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,ATFTP,atftp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,ATFTPD,atftpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 $(DISABLE_LARGEFILE) \
47 $(DISABLE_NLS) \
48 );
49 touch $@
50
51 $(PKG_BUILD_DIR)/.built:
52 rm -rf $(PKG_INSTALL_DIR)
53 mkdir -p $(PKG_INSTALL_DIR)
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 $(TARGET_CONFIGURE_OPTS) \
56 CFLAGS="$(TARGET_CFLAGS) -Wall -D_REENTRANT" \
57 DESTDIR=$(PKG_INSTALL_DIR) \
58 all install
59 touch $@
60
61 $(IPKG_ATFTP):
62 install -d -m0755 $(IDIR_ATFTP)/usr/bin
63 cp -fpR $(PKG_BUILD_DIR)/atftp $(IDIR_ATFTP)/usr/bin
64 $(RSTRIP) $(IDIR_ATFTP)
65 $(IPKG_BUILD) $(IDIR_ATFTP) $(PACKAGE_DIR)
66
67 $(IPKG_ATFTPD):
68 install -d -m0755 $(IDIR_ATFTPD)/usr/sbin
69 cp -fpR $(PKG_BUILD_DIR)/atftpd $(IDIR_ATFTPD)/usr/sbin
70 $(RSTRIP) $(IDIR_ATFTPD)
71 $(IPKG_BUILD) $(IDIR_ATFTPD) $(PACKAGE_DIR)
This page took 0.039911 seconds and 5 git commands to generate.