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:
1.3 KB
|
| Line | |
|---|
| 1 | # $Id: Makefile 3792 2006-05-17 01:37:51Z nico $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=gcom
|
|---|
| 6 | PKG_VERSION:=0.3
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 | PKG_MD5SUM:=cd32663025ed94a0ee623a689989f3c3
|
|---|
| 9 |
|
|---|
| 10 | PKG_SOURCE_URL:=http://www.pharscape.org/3G/gcom
|
|---|
| 11 | PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tgz
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | DISTFILES:=
|
|---|
| 15 | include $(TOPDIR)/package/rules.mk
|
|---|
| 16 |
|
|---|
| 17 | $(eval $(call PKG_template,GCOM,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 18 |
|
|---|
| 19 | $(WRKBUILD)/.prepared:
|
|---|
| 20 | rm -rf $(WRKBUILD)
|
|---|
| 21 | mkdir -p $(WRKBUILD)
|
|---|
| 22 | # the .tgz is different - no subdirectory, so do this manually
|
|---|
| 23 | zcat $(DL_DIR)/$(PKG_SOURCE) | (cd $(WRKBUILD); $(TAR_EXTRACT) )
|
|---|
| 24 | if [ -d ./patches ]; then $(PATCH) $(WRKBUILD) ./patches ; fi
|
|---|
| 25 | touch $@
|
|---|
| 26 |
|
|---|
| 27 | $(WRKBUILD)/.configured:
|
|---|
| 28 | touch $@
|
|---|
| 29 |
|
|---|
| 30 | $(WRKBUILD)/.built:
|
|---|
| 31 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 32 | CC="$(TARGET_CC)" \
|
|---|
| 33 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 34 | gcom
|
|---|
| 35 | touch $@
|
|---|
| 36 |
|
|---|
| 37 | $(IPKG_GCOM):
|
|---|
| 38 | install -d -m0755 $(IDIR_GCOM)/usr/bin
|
|---|
| 39 | install -m0755 $(WRKBUILD)/gcom $(IDIR_GCOM)/usr/bin/
|
|---|
| 40 | install -d -m0755 $(IDIR_GCOM)/etc/gcom
|
|---|
| 41 | install -m0644 ./files/setpin.gcom $(IDIR_GCOM)/etc/gcom/setpin.gcom
|
|---|
| 42 | install -m0644 ./files/setmode.gcom $(IDIR_GCOM)/etc/gcom/setmode.gcom
|
|---|
| 43 | install -m0644 ./files/getcardinfo.gcom $(IDIR_GCOM)/etc/gcom/getcardinfo.gcom
|
|---|
| 44 | install -m0644 ./files/getstrength.gcom $(IDIR_GCOM)/etc/gcom/getstrength.gcom
|
|---|
| 45 | $(RSTRIP) $(IDIR_GCOM)
|
|---|
| 46 | $(IPKG_BUILD) $(IDIR_GCOM) $(PACKAGE_DIR)
|
|---|
| 47 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.