[package] add libvncserver (#5093)
[openwrt/svn-archive/archive.git] / libs / libvncserver / Makefile
1 #
2 # Copyright (C) 2009 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:=LibVNCServer
11 PKG_VERSION:=0.9.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/libvncserver
16 PKG_MD5SUM:=14af5bdae461df4666c18e5f83c150c4
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_INSTALL=1
22
23 define Package/libvncserver
24 SECTION:=libs
25 CATEGORY:=Libraries
26 DEPENDS:=+zlib +libiconv
27 TITLE:=VNC Server Library
28 endef
29
30 CONFIGURE_ARGS += \
31 --without-xkeyboard \
32 --without-xinerama \
33 --without-xrandr \
34 --without-xfixes \
35 --without-xdamage \
36 --without-xtrap \
37 --without-xrecord \
38 --without-fbpm \
39 --without-dpms \
40 --without-filetransfer \
41 --without-macosx-native \
42 --without-ssl \
43 --without-avahi
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/{lib,include,bin}
47 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
50 endef
51
52 define Package/libvncserver/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libvncserver))