- update to Xorg X11R7.4 and reorganization of the xorg-section
[packages.git] / Xorg / lib / libXaw / Makefile
1
2 # Copyright (C) 2007 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 include $(TOPDIR)/rules.mk
9
10 PKG_BASE_NAME:=libXaw
11 PKG_NAME:=libXaw
12 PKG_RELEASE:=2
13 PKG_VERSION:=1.0.4
14 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/lib/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}-$(PKG_VERSION)/
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libXaw
21   SECTION:=xorg-lib
22   CATEGORY:=Xorg
23   SUBMENU:=lib
24   DEPENDS:= +xproto +libX11 +libXext +xextproto +libXt +libXmu +libXpm +printproto +libXau @DISPLAY_SUPPORT
25   TITLE:=libXaw
26   URL:=http://xorg.freedesktop.org/
27 endef
28
29 CONFIGURE_ARGS += --enable-malloc0returnsnull --without-xcb
30
31 define Build/Compile
32         $(call $(PKG_NAME)/Compile)
33         make -C $(PKG_BUILD_DIR)
34         DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
35         find $(PKG_INSTALL_DIR) -name *.la | xargs rm -rf
36 endef
37
38 define Package/libXaw/install
39         $(INSTALL_DIR) $(1)/usr/lib
40         $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
41 endef
42
43 define Build/InstallDev
44         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
45 endef
46
47 $(eval $(call BuildPackage,libXaw))