source: freewrt/package/mrd6/Makefile@ 8e47882

freewrt_1_0 freewrt_2_0
Last change on this file since 8e47882 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.0 KB
Line 
1# $Id: Makefile 3219 2006-02-11 17:46:17Z florian $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=mrd6
6PKG_VERSION:=0.9.5
7PKG_RELEASE:=1
8PKG_MD5SUM:=24a08cf1407000d628a272b08a415dda
9
10PKG_SOURCE_URL:=http://hng.av.it.pt/mrd6/download/
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12
13
14include $(TOPDIR)/package/rules.mk
15
16$(eval $(call PKG_template,MRD6,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18$(WRKBUILD)/.configured:
19 touch $@
20
21$(WRKBUILD)/.built:
22 $(MAKE) -C $(WRKBUILD)/src \
23 OPTIMIZE=yes \
24 SPACE_OPTIMIZE=yes \
25 FULL_STATIC=yes \
26 CFLAGS="$(TARGET_CFLAGS) -DNO_INET6_OPTION" \
27 CXX=$(TARGET_CROSS)g++ \
28 CC=$(TARGET_CC) \
29 STAGING_DIR=$(STAGING_DIR) \
30 DESTDIR=$(WRKINST) \
31 PREFIX=/usr/ \
32 install
33 install -d -m0755 $(WRKINST)/etc/init.d
34 install -m0644 files/$(PKG_NAME).conf $(WRKINST)/etc
35 install -m0755 files/$(PKG_NAME).init $(WRKINST)/etc/init.d/S60$(PKG_NAME)
36 touch $@
37
38$(IPKG_MRD6):
39 mkdir -p $(IDIR_MRD6)/usr/sbin
40 $(CP) $(WRKINST)/ $(IDIR_MRD6)/
41 $(RSTRIP) $(IDIR_MRD6)/
42 $(IPKG_BUILD) $(IDIR_MRD6) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.