From ccc2c808979315fe4aaf4aa142d7254c4dc2405e Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Mon, 30 Oct 2006 09:48:34 +0000 Subject: [PATCH] use PKG_UNPACK instead of overriding Build/Prepare, pass target optimization flags, cleanup SVN-Revision: 5340 --- utils/comgt/Makefile | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/utils/comgt/Makefile b/utils/comgt/Makefile index d233bb1804..e9a189c3eb 100644 --- a/utils/comgt/Makefile +++ b/utils/comgt/Makefile @@ -11,14 +11,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=comgt PKG_VERSION:=0.3 PKG_RELEASE:=1 -PKG_MD5SUM:=cd32663025ed94a0ee623a689989f3c3 -PKG_SOURCE_URL:=http://www.pharscape.org/3G/comgt PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tgz -PKG_CAT:=zcat +PKG_SOURCE_URL:=http://www.pharscape.org/3G/comgt +PKG_MD5SUM:=cd32663025ed94a0ee623a689989f3c3 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +PKG_UNPACK:=zcat $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) $(TAR_OPTIONS) include $(INCLUDE_DIR)/package.mk @@ -26,22 +25,17 @@ define Package/comgt SECTION:=utils CATEGORY:=Utilities TITLE:=Option/Vodafone 3G/GPRS control tool - DESCRIPTION:=Option GlobeTrotter GPRS/EDGE/3G/HSDPA and Vodafone 3G/GPRS datacard control tool\\\ -\\\ -gcom is a scripting language interpreter useful for establishing communications\\\ -on serial lines and through PCMCIA modems as well as GPRS and 3G datacards.\\\ + DESCRIPTION:=\ + comgt is a scripting language interpreter useful for establishing communications \\\ + on serial lines and through PCMCIA modems as well as GPRS and 3G datacards. URL:= http://www.pharscape.org/content/view/46/70/ endef -define Build/Prepare - rm -rf $(PKG_BUILD_DIR) - mkdir -p $(PKG_BUILD_DIR) - zcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS) - if [ -d ./patches ]; then $(PATCH) $(PKG_BUILD_DIR) ./patches ; fi -endef - define Build/Compile - $(call Build/Compile/Default,gcom) + $(MAKE) -C $(PKG_BUILD_DIR) \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + gcom endef define Package/comgt/install @@ -55,4 +49,3 @@ define Package/comgt/install endef $(eval $(call BuildPackage,comgt)) - -- 2.30.2