source: freewrt/package/atftp/Makefile@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was a84a661, checked in by Markus Wigge <markus@…>, 19 years ago

fixed spaces to tabs

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

  • Property mode set to 100644
File size: 1.9 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= atftp
10PKG_VERSION:= 0.7
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 3b27365772d918050b2251d98a9c7c82
13
14PKG_SOURCE_URL:= ftp://ftp.mamalinux.com/pub/atftp
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17include $(TOPDIR)/mk/package.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$(WRKBUILD)/.configured:
23 (cd $(WRKBUILD); 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 --enable-largefile \
47 --disable-nls \
48 );
49 touch $@
50
51$(WRKBUILD)/.built:
52 $(MAKE) -C $(WRKBUILD) \
53 $(TARGET_CONFIGURE_OPTS) \
54 CFLAGS="$(TARGET_CFLAGS) -Wall -D_REENTRANT" \
55 DESTDIR=$(WRKINST) \
56 all install
57 touch $@
58
59$(IPKG_ATFTP):
60 $(INSTALL_DIR) $(IDIR_ATFTP)/usr/bin
61 $(INSTALL_BIN) $(WRKBUILD)/atftp $(IDIR_ATFTP)/usr/bin
62 $(RSTRIP) $(IDIR_ATFTP)
63 $(IPKG_BUILD) $(IDIR_ATFTP) $(PACKAGE_DIR)
64
65$(IPKG_ATFTPD):
66 $(INSTALL_DIR) $(IDIR_ATFTPD)/usr/sbin
67 $(INSTALL_BIN) $(WRKBUILD)/atftpd $(IDIR_ATFTPD)/usr/sbin
68 $(RSTRIP) $(IDIR_ATFTPD)
69 $(IPKG_BUILD) $(IDIR_ATFTPD) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.