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:
975 bytes
|
| Line | |
|---|
| 1 | # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=wiviz
|
|---|
| 6 | PKG_VERSION:=1.0
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | DISTFILES:=
|
|---|
| 11 | include $(TOPDIR)/package/rules.mk
|
|---|
| 12 |
|
|---|
| 13 | $(eval $(call PKG_template,WIVIZ,wiviz,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 14 |
|
|---|
| 15 | $(WRKBUILD)/.prepared:
|
|---|
| 16 | mkdir -p $(WRKBUILD)
|
|---|
| 17 | $(CP) ./src/* $(WRKBUILD)/
|
|---|
| 18 | touch $@
|
|---|
| 19 |
|
|---|
| 20 | $(WRKBUILD)/.configured:
|
|---|
| 21 | touch $@
|
|---|
| 22 |
|
|---|
| 23 | $(WRKBUILD)/.built:
|
|---|
| 24 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 25 | CC="$(TARGET_CC)" \
|
|---|
| 26 | CCOPTS="$(TARGET_CFLAGS)" \
|
|---|
| 27 | INCLUDE="-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include" \
|
|---|
| 28 | LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib"
|
|---|
| 29 | touch $@
|
|---|
| 30 |
|
|---|
| 31 | $(IPKG_WIVIZ):
|
|---|
| 32 | mkdir -p $(IDIR_WIVIZ)/usr/sbin
|
|---|
| 33 | $(CP) $(WRKBUILD)/$(PKG_NAME) $(IDIR_WIVIZ)/usr/sbin/
|
|---|
| 34 | $(RSTRIP) $(IDIR_WIVIZ)
|
|---|
| 35 | $(CP) ./files/* $(IDIR_WIVIZ)
|
|---|
| 36 | find $(IDIR_WIVIZ) -name CVS | xargs rm -rf
|
|---|
| 37 | find $(IDIR_WIVIZ) -name .svn | xargs rm -rf
|
|---|
| 38 | $(IPKG_BUILD) $(IDIR_WIVIZ) $(PACKAGE_DIR)
|
|---|
| 39 |
|
|---|
| 40 | mostlyclean:
|
|---|
| 41 | $(MAKE) -C $(WRKBUILD) clean
|
|---|
| 42 | rm -f $(WRKBUILD)/.built
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.