source: packages/Xorg/xorg/lib/libXt/Makefile @ 19548

Last change on this file since 19548 was 19548, checked in by lars, 7 years ago

[packages] libXt: pass correct CPPFLAGS to the host tools build

File size: 1.5 KB
Line 
1#
2# Copyright (C) 2007-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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libXt
11PKG_RELEASE:=1
12PKG_VERSION:=1.0.7
13
14PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/individual/lib/
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16PKG_BUILD_DIR:=$(BUILD_DIR)/Xorg/$(PKG_NAME)-$(PKG_VERSION)/
17PKG_MD5SUM:=96f3c93434a93186d178b60d4a262496
18
19PKG_FIXUP:=libtool
20PKG_INSTALL:=1
21PKG_BUILD_DEPENDS:=xproto kbproto
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/libXt
26  SECTION:=xorg-lib
27  CATEGORY:=Xorg
28  SUBMENU:=libraries
29  DEPENDS:=+libSM +libX11 +libICE
30  TITLE:=libXt
31  URL:=http://xorg.freedesktop.org/
32endef
33
34define Build/Configure
35        $(call Build/Configure/Default, \
36                --enable-malloc0returnsnull \
37                --without-xcb \
38                , \
39                CC_FOR_BUILD="$(HOSTCC)" \
40                CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
41                LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \
42        )
43endef
44
45define Build/Compile
46        $(MAKE) -C $(PKG_BUILD_DIR)/util \
47        CPPFLAGS="$(HOST_CPPFLAGS)"
48
49        $(call Build/Compile/Default)
50endef
51
52define Build/InstallDev
53        $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/X11/}
54        $(CP) \
55                $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
56                $(1)/usr/lib/
57        $(INSTALL_DATA) \
58                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
59                $(1)/usr/lib/pkgconfig/
60        $(INSTALL_DATA) \
61                $(PKG_INSTALL_DIR)/usr/include/X11/* \
62                $(1)/usr/include/X11/
63endef
64
65define Package/libXt/install
66        $(INSTALL_DIR) $(1)/usr/lib
67        $(CP) \
68                $(PKG_INSTALL_DIR)/usr/lib/*.so* \
69                $(1)/usr/lib/
70endef
71
72$(eval $(call BuildPackage,libXt))
Note: See TracBrowser for help on using the repository browser.