source: freewrt/package/fping/Makefile@ d419478

freewrt_1_0 freewrt_2_0
Last change on this file since d419478 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

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

  • Property mode set to 100644
File size: 1.5 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=fping
6PKG_VERSION:=2.4b2_to-ipv6
7PKG_RELEASE:=1
8PKG_MD5SUM:=3ad516765514249a40d3c5b6caab812a
9
10PKG_SOURCE_URL:=http://www.fping.com/download/
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12
13include $(TOPDIR)/package/rules.mk
14
15$(eval $(call PKG_template,FPING,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
16
17$(WRKBUILD)/.configured:
18 (cd $(WRKBUILD); rm -rf config.cache; \
19 $(TARGET_CONFIGURE_OPTS) \
20 CFLAGS="$(TARGET_CFLAGS)" \
21 ./configure \
22 --target=$(GNU_TARGET_NAME) \
23 --host=$(GNU_TARGET_NAME) \
24 --build=$(GNU_HOST_NAME) \
25 --prefix=/usr \
26 --exec-prefix=/usr \
27 --bindir=/usr/bin \
28 --sbindir=/usr/sbin \
29 --libexecdir=/usr/lib \
30 --sysconfdir=/etc \
31 --datadir=/usr/share \
32 --localstatedir=/var \
33 --mandir=/usr/man \
34 --infodir=/usr/info \
35 --disable-nls \
36 --enable-largefile \
37 );
38 touch $@
39
40$(WRKBUILD)/.built:
41 $(MAKE) -j1 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" -C $(WRKBUILD) clean $(PKG_NAME)
42 mv $(WRKBUILD)/$(PKG_NAME) $(WRKBUILD)/$(PKG_NAME)4
43 $(MAKE) -j1 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -DIPV6=1" -C $(WRKBUILD) clean $(PKG_NAME)
44 mv $(WRKBUILD)/$(PKG_NAME) $(WRKBUILD)/$(PKG_NAME)6
45 touch $@
46
47$(IPKG_FPING):
48 mkdir -p $(IDIR_FPING)/usr/bin
49 $(CP) $(WRKBUILD)/$(PKG_NAME)4 $(IDIR_FPING)/usr/bin/$(PKG_NAME)
50 $(CP) $(WRKBUILD)/$(PKG_NAME)6 $(IDIR_FPING)/usr/bin/
51 $(STRIP) $(IDIR_FPING)/usr/bin/*
52 $(IPKG_BUILD) $(IDIR_FPING) $(PACKAGE_DIR)
53
Note: See TracBrowser for help on using the repository browser.