f342def5e664c8f55184337c805b946b0b23697d
[openwrt/svn-archive/archive.git] / Xorg / lib / libXdmcp / Makefile
1 #
2 # Copyright (C) 2007-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_BASE_NAME:=libXdmcp
12 PKG_NAME:=libXdmcp
13 PKG_RELEASE:=2
14 PKG_VERSION:=1.0.2
15 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/lib/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
18 PKG_BUILD_DEPENDS:=xproto
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libXdmcp
23 SECTION:=xorg-lib
24 CATEGORY:=Xorg
25 SUBMENU:=lib
26 DEPENDS:=
27 TITLE:=libXdmcp
28 URL:=http://xorg.freedesktop.org/
29 endef
30
31 CONFIGURE_ARGS += --enable-malloc0returnsnull --without-xcb
32
33 define Build/Compile
34 $(call $(PKG_NAME)/Compile)
35 make -C $(PKG_BUILD_DIR)
36 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
37 find $(PKG_INSTALL_DIR) -name *.la | xargs rm -rf
38 endef
39
40 define Package/libXdmcp/install
41 $(INSTALL_DIR) $(1)/usr/lib
42 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
43 endef
44
45 define Build/InstallDev
46 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
47 endef
48
49 $(eval $(call BuildPackage,libXdmcp))