6cd1d1fe2b258e2236cd353a72d27ca0fdebe7b3
[packages.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   URL:=http://libvncserver.sourceforge.net/
29 endef
30
31 CONFIGURE_ARGS += \
32         --without-xkeyboard \
33         --without-xinerama \
34         --without-xrandr \
35         --without-xfixes \
36         --without-xdamage \
37         --without-xtrap \
38         --without-xrecord \
39         --without-fbpm \
40         --without-dpms \
41         --without-filetransfer \
42         --without-macosx-native \
43         --without-ssl \
44         --without-avahi
45
46 define Build/InstallDev
47         $(INSTALL_DIR) $(1)/usr/{lib,include,bin}
48         $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
49         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib
50         $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
51 endef
52
53 define Package/libvncserver/install
54         $(INSTALL_DIR) $(1)/usr/lib
55         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libvncserver))