[packages] add liblo - Lightweight Open Sound Control (OSC) implementation
[openwrt/svn-archive/archive.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=vncrepeater
11 PKG_VERSION:=0.12
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.rit.edu/~reh5586/openwrt/packages/vncrepeater/src
16 PKG_MD5SUM:=5951740a8a103d7d9668558b3639c6c4
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/vncrepeater
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+uclibcxx
24 TITLE:=UltraVNC repeater for Linux
25 URL:=http://www.uvnc.com/addons/repeater.html
26 endef
27
28 define Package/vncrepeater/conffiles
29 /etc/vncrepeater.conf
30 endef
31
32 define Package/vncrepeater/description
33 Viewer can be behind Nat router or directly connected to the internet
34 instead of forwarding serveral ports, you only need to forward 1 port.
35 If the PC that runs the Repeater has access to the local DNS server,
36 you can use your local DNS names instead of 10.10.10.12.
37 This could be handy when you have a dynamic DHCP server allocating
38 ip adresses for your PC.
39 endef
40
41 define Build/Compile
42 $(call Build/Compile/Default, \
43 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
44 LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -luClibc++" \
45 repeater \
46 )
47 endef
48
49 define Package/vncrepeater/install
50 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc
51 $(CP) $(PKG_BUILD_DIR)/repeater $(1)/usr/sbin/$(PKG_NAME)
52 $(INSTALL_DIR) $(1)/etc
53 $(CP) $(PKG_BUILD_DIR)/uvncrepeater.ini $(1)/etc/vncrepeater.conf
54 endef
55
56 $(eval $(call BuildPackage,vncrepeater))