source: freewrt/package/atftp/Makefile@ df8d88a

freewrt_1_0 freewrt_2_0
Last change on this file since df8d88a was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

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

  • Property mode set to 100644
File size: 1.9 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=atftp
6PKG_VERSION:=0.7
7PKG_RELEASE:=1
8PKG_MD5SUM:=3b27365772d918050b2251d98a9c7c82
9
10PKG_SOURCE_URL:=ftp://ftp.mamalinux.com/pub/atftp/
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12PKG_CAT:=zcat
13
14PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17include $(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) $(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) $(PKG_BUILD_DIR)/atftpd $(IDIR_ATFTPD)/usr/sbin
70 $(RSTRIP) $(IDIR_ATFTPD)
71 $(IPKG_BUILD) $(IDIR_ATFTPD) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.