source: freewrt/package/fprobe-ulog/Makefile@ 33408c6

freewrt_1_0 freewrt_2_0
Last change on this file since 33408c6 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.2 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=fprobe-ulog
6PKG_VERSION:=1.1
7PKG_RELEASE:=1
8PKG_MD5SUM:=cdb2e4edc47e8a3d5479eeabfb979ebc
9
10PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
11PKG_SOURCE_URL:=@SF/fprobe
12
13include $(TOPDIR)/package/rules.mk
14
15$(eval $(call PKG_template,FPROBE_ULOG,fprobe-ulog,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
16
17$(WRKBUILD)/.configured:
18 (cd $(WRKBUILD) ; \
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 --datadir=/usr/share \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 --localstatedir=/var \
34 --sysconfdir=/etc \
35 --with-piddir=/var \
36 --with-membulk=index8 \
37 --with-hash=xor8 \
38 --disable-nls \
39 )
40 touch $@
41
42$(WRKBUILD)/.built:
43 $(MAKE) -C $(WRKBUILD)
44 touch $@
45
46$(IPKG_FPROBE_ULOG):
47 mkdir -p $(IDIR_FPROBE_ULOG)/usr/bin
48 $(CP) $(WRKBUILD)/src/fprobe-ulog $(IDIR_FPROBE_ULOG)/usr/bin/
49 $(RSTRIP) $(IDIR_FPROBE_ULOG)
50 $(IPKG_BUILD) $(IDIR_FPROBE_ULOG) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.