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:
634 bytes
|
| Line | |
|---|
| 1 | # $Id: Makefile 2386 2005-11-07 17:57:52Z nbd $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=ttcp
|
|---|
| 6 | PKG_VERSION:=3.8
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 |
|
|---|
| 9 | WRKBUILD:=${WRKDIR}/ttcp
|
|---|
| 10 |
|
|---|
| 11 | DISTFILES:=
|
|---|
| 12 | include $(TOPDIR)/package/rules.mk
|
|---|
| 13 |
|
|---|
| 14 | $(eval $(call PKG_template,TTCP,ttcp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 15 |
|
|---|
| 16 | $(WRKBUILD)/.prepared:
|
|---|
| 17 | mkdir -p $(WRKBUILD)
|
|---|
| 18 | touch $@
|
|---|
| 19 |
|
|---|
| 20 | $(WRKBUILD)/.configured:
|
|---|
| 21 | touch $@
|
|---|
| 22 |
|
|---|
| 23 | $(WRKBUILD)/.built:
|
|---|
| 24 | $(TARGET_CC) $(TARGET_CFLAGS) -o $(WRKBUILD)/ttcp ttcp.c
|
|---|
| 25 | touch $@
|
|---|
| 26 |
|
|---|
| 27 | $(IPKG_TTCP):
|
|---|
| 28 | install -d -m0755 $(IDIR_TTCP)/usr/bin
|
|---|
| 29 | install -m0755 $(WRKBUILD)/ttcp $(IDIR_TTCP)/usr/bin/
|
|---|
| 30 | $(RSTRIP) $(IDIR_TTCP)
|
|---|
| 31 | $(IPKG_BUILD) $(IDIR_TTCP) $(PACKAGE_DIR)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.