3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=cd32663025ed94a0ee623a689989f3c3
10 PKG_SOURCE_URL
:=http
://www.pharscape.org
/3G
/gcom
11 PKG_SOURCE
:=$(PKG_NAME
)$(PKG_VERSION
).tgz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,GCOM
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.prepared
:
22 rm -rf
$(PKG_BUILD_DIR
)
23 mkdir
-p
$(PKG_BUILD_DIR
)
24 # the .tgz is different - no subdirectory, so do this manually
25 zcat
$(DL_DIR
)/$(PKG_SOURCE
) |
tar -C
$(PKG_BUILD_DIR
) $(TAR_OPTIONS
) -
26 if
[ -d .
/patches
]; then
$(PATCH
) $(PKG_BUILD_DIR
) .
/patches
; fi
29 $(PKG_BUILD_DIR
)/.configured
:
32 $(PKG_BUILD_DIR
)/.built
:
33 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
35 CFLAGS
="$(TARGET_CFLAGS)" \
40 install -d
-m0755
$(IDIR_GCOM
)/usr
/bin
41 install -m0755
$(PKG_BUILD_DIR
)/gcom
$(IDIR_GCOM
)/usr
/bin
/
42 install -d
-m0755
$(IDIR_GCOM
)/etc
/gcom
43 install -m0644 .
/files
/setpin.gcom
$(IDIR_GCOM
)/etc
/gcom
/setpin.gcom
44 install -m0644 .
/files
/setmode.gcom
$(IDIR_GCOM
)/etc
/gcom
/setmode.gcom
45 install -m0644 .
/files
/getcardinfo.gcom
$(IDIR_GCOM
)/etc
/gcom
/getcardinfo.gcom
46 install -m0644 .
/files
/getstrength.gcom
$(IDIR_GCOM
)/etc
/gcom
/getstrength.gcom
47 $(RSTRIP
) $(IDIR_GCOM
)
48 $(IPKG_BUILD
) $(IDIR_GCOM
) $(PACKAGE_DIR
)