remove obsolete dependency on missing package libXp
[openwrt/svn-archive/archive.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.3/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-libraries
22 CATEGORY:=Xorg
23 SUBMENU:=libraries
24 DEPENDS:=+xorg-headers-native +util-macros +xproto +libX11 +libXext +xextproto +libXt +libXmu +libXmu +libXpm +printproto +libXau @DISPLAY_SUPPORT
25 TITLE:=libXaw
26 URL:=http://xorg.freedesktop.org/
27 endef
28
29 ifeq (libXaw,libX11)
30 CONFIGURE_ARGS+=--without-xcb
31 endif
32
33 define libX11/Compile
34 $(MAKE_VARS) \
35 $(MAKE) -C $(PKG_BUILD_DIR)/src/util CFLAGS="" LDFLAGS="" CC="cc" makekeys
36 endef
37
38 define libXt/Compile
39 $(MAKE_VARS) \
40 $(MAKE) -C $(PKG_BUILD_DIR)/util CFLAGS="" LDFLAGS="" CC="cc"
41 endef
42
43 define Build/Compile
44 $(call $(PKG_NAME)/Compile)
45 make -C $(PKG_BUILD_DIR)
46 mkdir -p $(PKG_INSTALL_DIR)
47 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
48 find $(PKG_INSTALL_DIR) -name *.la | xargs rm -rf
49 endef
50
51 define Build/Configure
52 $(call Build/Configure/Default, --enable-malloc0returnsnull)
53 endef
54
55 define Package/libXaw/install/Default
56 $(INSTALL_DIR) $(1)/usr/lib
57 find $(PKG_INSTALL_DIR)/usr/lib/ -name lib*so* | $(XARGS) -i -t cp -P {} $(1)/usr/lib
58 endef
59
60 define Package/libXaw/install
61 $(call Package/libXaw/install/Default,$(1))
62 endef
63
64 define Package/libXaw/install
65 $(call Package/libXaw/install/Default,$(1))
66 cd $(1)/usr/lib; rm -f libXaw.so.7 libXaw.so.6; ln -s libXaw7.so.7.0.0 libXaw.so.7; ln -s libXaw6.so.6.0.1 libXaw.so.6
67 endef
68
69 define Build/InstallDev
70 $(CP) $(PKG_INSTALL_DIR)/* $(1)
71 endef
72
73 $(eval $(call BuildPackage,libXaw))