fix build on x86 (--disable-asm), standardize.
[openwrt.git] / openwrt / package / vncrepeater / Makefile
1 # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=vncrepeater
6 PKG_VERSION:=0.12
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=5951740a8a103d7d9668558b3639c6c4
9
10 PKG_SOURCE_URL:=http://www.rit.edu/~reh5586/openwrt/packages/vncrepeater/src
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
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 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,VNCREPEATER,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 rm -rf $(PKG_INSTALL_DIR)
26 mkdir -p $(PKG_INSTALL_DIR)
27 $(MAKE) -C $(PKG_BUILD_DIR) \
28 CC=$(TARGET_CC) \
29 CFLAGS="$(TARGET_CFLAGS)" \
30 DESTDIR="$(PKG_INSTALL_DIR)" \
31 repeater
32 touch $@
33
34 $(IPKG_VNCREPEATER):
35 install -d -m0755 $(IDIR_VNCREPEATER)/usr/sbin $(IDIR_VNCREPEATER)/etc
36 $(CP) $(PKG_BUILD_DIR)/repeater $(IDIR_VNCREPEATER)/usr/sbin/$(PKG_NAME)
37 install -d -m0755 $(IDIR_VNCREPEATER)/etc
38 $(CP) $(PKG_BUILD_DIR)/uvncrepeater.ini $(IDIR_VNCREPEATER)/etc/vncrepeater.conf
39 install -d -m0755 $(IDIR_VNCREPEATER)/etc/init.d
40 $(CP) $(PKG_BUILD_DIR)/S60vncrepeater $(IDIR_VNCREPEATER)/etc/init.d/
41 $(RSTRIP) $(IDIR_VNCREPEATER)
42 $(IPKG_BUILD) $(IDIR_VNCREPEATER) $(PACKAGE_DIR)
This page took 0.046436 seconds and 5 git commands to generate.