source: freewrt/package/raddump/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 100755
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:=raddump
6PKG_VERSION:=0.3.1
7PKG_RELEASE:=1
8PKG_MD5SUM:=f8c29c67141ea78bb6ae8b97d5149480
9PKG_SOURCE_URL:=@SF/raddump
10PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11
12
13include $(TOPDIR)/package/rules.mk
14
15$(eval $(call PKG_template,RADDUMP,$(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 ac_cv_c_bigendian=no \
23 ac_cv_func_malloc_0_nonnull=yes \
24 ac_cv_func_realloc_0_nonnull=yes \
25 --disable-nls \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --prefix=/usr \
30 --exec-prefix=/usr \
31 --bindir=/usr/bin \
32 --sbindir=/usr/sbin \
33 --libexecdir=/usr/lib \
34 --sysconfdir=/etc \
35 --datadir=/usr/share \
36 --localstatedir=/var \
37 --mandir=/usr/man \
38 --infodir=/usr/info \
39 --program-prefix="" \
40 --with-gnu-ld \
41 );
42 touch $@
43
44$(WRKBUILD)/.built:
45 $(MAKE) DESTDIR=$(WRKINST) -C $(WRKBUILD) install
46 touch $@
47
48$(IPKG_RADDUMP):
49 mkdir -p $(IDIR_RADDUMP)
50 $(CP) $(WRKINST)/* $(IDIR_RADDUMP)/
51 $(RSTRIP) $(IDIR_RADDUMP)
52 $(IPKG_BUILD) $(IDIR_RADDUMP) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.