| 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 | PKG_CAT:=zcat
|
|---|
| 13 |
|
|---|
| 14 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|---|
| 15 | PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|---|
| 16 |
|
|---|
| 17 | DISTFILES:=
|
|---|
| 18 | include $(TOPDIR)/package/rules.mk
|
|---|
| 19 |
|
|---|
| 20 | $(eval $(call PKG_template,GCOM,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 21 |
|
|---|
| 22 | $(PKG_BUILD_DIR)/.prepared:
|
|---|
| 23 | rm -rf $(PKG_BUILD_DIR)
|
|---|
| 24 | mkdir -p $(PKG_BUILD_DIR)
|
|---|
| 25 | # the .tgz is different - no subdirectory, so do this manually
|
|---|
| 26 | zcat $(DL_DIR)/$(PKG_SOURCE) | (cd $(PKG_BUILD_DIR); $(TAR_EXTRACT) )
|
|---|
| 27 | if [ -d ./patches ]; then $(PATCH) $(PKG_BUILD_DIR) ./patches ; fi
|
|---|
| 28 | touch $@
|
|---|
| 29 |
|
|---|
| 30 | $(PKG_BUILD_DIR)/.configured:
|
|---|
| 31 | touch $@
|
|---|
| 32 |
|
|---|
| 33 | $(PKG_BUILD_DIR)/.built:
|
|---|
| 34 | $(MAKE) -C $(PKG_BUILD_DIR) \
|
|---|
| 35 | CC="$(TARGET_CC)" \
|
|---|
| 36 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 37 | gcom
|
|---|
| 38 | touch $@
|
|---|
| 39 |
|
|---|
| 40 | $(IPKG_GCOM):
|
|---|
| 41 | install -d -m0755 $(IDIR_GCOM)/usr/bin
|
|---|
| 42 | install -m0755 $(PKG_BUILD_DIR)/gcom $(IDIR_GCOM)/usr/bin/
|
|---|
| 43 | install -d -m0755 $(IDIR_GCOM)/etc/gcom
|
|---|
| 44 | install -m0644 ./files/setpin.gcom $(IDIR_GCOM)/etc/gcom/setpin.gcom
|
|---|
| 45 | install -m0644 ./files/setmode.gcom $(IDIR_GCOM)/etc/gcom/setmode.gcom
|
|---|
| 46 | install -m0644 ./files/getcardinfo.gcom $(IDIR_GCOM)/etc/gcom/getcardinfo.gcom
|
|---|
| 47 | install -m0644 ./files/getstrength.gcom $(IDIR_GCOM)/etc/gcom/getstrength.gcom
|
|---|
| 48 | $(RSTRIP) $(IDIR_GCOM)
|
|---|
| 49 | $(IPKG_BUILD) $(IDIR_GCOM) $(PACKAGE_DIR)
|
|---|
| 50 |
|
|---|