summaryrefslogtreecommitdiffstats
path: root/package/heyu/Makefile
blob: 1adb7275b7fa5036ef4870d1e712d960ecc82bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $Id$

include $(TOPDIR)/rules.mk

PKG_NAME:=heyu
PKG_VERSION:=2.0beta.2
PKG_RELEASE:=2
PKG_MD5SUM:=e8477bb068f79eb9cb81e7bb76235d22
PKG_SOURCE_URL:=http://www.heyu.org/download
PKG_SOURCE:=heyu-$(PKG_VERSION).tgz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_CAT:=zcat

include $(TOPDIR)/package/rules.mk

$(eval $(call PKG_template,HEYU,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))

$(PKG_BUILD_DIR)/.configured:
	touch $@

$(PKG_BUILD_DIR)/.built: 
	$(MAKE) -C $(PKG_BUILD_DIR) \
		CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
		CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR) -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX -DHASSELECT -DHASTZ"
	touch $@

$(IPKG_HEYU):
	install -d -m0755 $(IDIR_HEYU)/etc/$(PKG_NAME)
	install -m0644 ./files/x10.conf $(IDIR_HEYU)/etc/$(PKG_NAME)/x10.conf
	install -d -m0755 $(IDIR_HEYU)/usr/bin
	install -m0644 $(PKG_BUILD_DIR)/heyu $(IDIR_HEYU)/usr/bin/
	$(RSTRIP) $(IDIR_HEYU)
	$(IPKG_BUILD) $(IDIR_HEYU) $(PACKAGE_DIR)