fix uClibc++ issue after build dir reorg: install uClibc++ headers in a separate...
[packages.git] / net / vncrepeater / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=vncrepeater
12 PKG_VERSION:=0.12
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.rit.edu/~reh5586/openwrt/packages/vncrepeater/src
17 PKG_MD5SUM:=5951740a8a103d7d9668558b3639c6c4
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/vncrepeater
25   SECTION:=net
26   CATEGORY:=Network
27   DEPENDS:=+uclibcxx
28   TITLE:=UltraVNC repeater for Linux
29   URL:=http://ultravnc.sourceforge.net/addons/repeater.html
30 endef
31
32 define Package/vncrepeater/conffiles
33 /etc/vncrepeater.conf
34 endef
35
36 define Package/vncrepeater/description
37  Viewer can be behind Nat router or directly connected to the internet 
38  instead of forwarding serveral ports, you only need to forward 1 port. 
39  If the PC that runs the Repeater has access to the local DNS server, 
40  you can use your local DNS names instead of 10.10.10.12.
41  This could be handy when you have a dynamic DHCP server allocating 
42  ip adresses for your PC.
43 endef
44
45 define Build/Compile
46         $(call Build/Compile/Default, \
47                 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
48                 LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -luClibc++" \
49                 repeater \
50         )
51 endef
52
53 define Package/vncrepeater/install      
54         $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc
55         $(CP) $(PKG_BUILD_DIR)/repeater $(1)/usr/sbin/$(PKG_NAME)
56         $(INSTALL_DIR) $(1)/etc
57         $(CP) $(PKG_BUILD_DIR)/uvncrepeater.ini $(1)/etc/vncrepeater.conf
58 endef
59
60 $(eval $(call BuildPackage,vncrepeater))