source: freewrt/package/gcom/Makefile@ b266f30

freewrt_1_0 freewrt_2_0
Last change on this file since b266f30 was b266f30, checked in by Thorsten Glaser <tg@…>, 19 years ago

this is how you fix Makefiles for packages whose distfiles
do not have subdirectories: just set WRKBUILD to ${WRKDIR}
and let it auto-extract, which is fine now since we use a
subdirectory. this is only an example for wbx@ who wants to
fix every single package out there ;)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@308 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.1 KB
Line 
1# $Id: Makefile 3792 2006-05-17 01:37:51Z nico $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=gcom
6PKG_VERSION:=0.3
7PKG_RELEASE:=1
8PKG_MD5SUM:=cd32663025ed94a0ee623a689989f3c3
9
10PKG_SOURCE_URL:=http://www.pharscape.org/3G/gcom
11PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tgz
12
13
14DISTFILES:=
15include $(TOPDIR)/package/rules.mk
16
17WRKBUILD=${WRKDIR}
18
19$(eval $(call PKG_template,GCOM,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured:
22 touch $@
23
24$(WRKBUILD)/.built:
25 $(MAKE) -C $(WRKBUILD) \
26 CC="$(TARGET_CC)" \
27 CFLAGS="$(TARGET_CFLAGS)" \
28 gcom
29 touch $@
30
31$(IPKG_GCOM):
32 install -d -m0755 $(IDIR_GCOM)/usr/bin
33 install -m0755 $(WRKBUILD)/gcom $(IDIR_GCOM)/usr/bin/
34 install -d -m0755 $(IDIR_GCOM)/etc/gcom
35 install -m0644 ./files/setpin.gcom $(IDIR_GCOM)/etc/gcom/setpin.gcom
36 install -m0644 ./files/setmode.gcom $(IDIR_GCOM)/etc/gcom/setmode.gcom
37 install -m0644 ./files/getcardinfo.gcom $(IDIR_GCOM)/etc/gcom/getcardinfo.gcom
38 install -m0644 ./files/getstrength.gcom $(IDIR_GCOM)/etc/gcom/getstrength.gcom
39 $(RSTRIP) $(IDIR_GCOM)
40 $(IPKG_BUILD) $(IDIR_GCOM) $(PACKAGE_DIR)
41
Note: See TracBrowser for help on using the repository browser.