2008-12-01 23:07:01 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007-2008 OpenWrt.org
|
2008-01-25 11:23:41 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2008-12-01 23:07:01 +00:00
|
|
|
# blogic@openwrt.org
|
|
|
|
|
2008-01-25 11:23:41 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2008-11-16 19:31:42 +00:00
|
|
|
PKG_NAME:=libXt
|
2009-01-04 00:06:33 +00:00
|
|
|
PKG_RELEASE:=4
|
2008-11-16 19:31:42 +00:00
|
|
|
PKG_VERSION:=1.0.5
|
2008-12-16 16:32:06 +00:00
|
|
|
|
2008-11-16 19:31:42 +00:00
|
|
|
PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/lib/
|
2008-01-25 11:23:41 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2008-12-01 23:07:01 +00:00
|
|
|
PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
|
2008-12-16 16:32:06 +00:00
|
|
|
PKG_MD5SUM:=f3bdd67785ace8cd0b23249e9d8c9975
|
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
PKG_INSTALL:=1
|
2008-12-01 23:07:01 +00:00
|
|
|
PKG_BUILD_DEPENDS:=xproto kbproto
|
2008-01-25 11:23:41 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-11-16 19:31:42 +00:00
|
|
|
define Package/libXt
|
|
|
|
SECTION:=xorg-lib
|
2008-01-25 11:23:41 +00:00
|
|
|
CATEGORY:=Xorg
|
2009-01-09 17:10:38 +00:00
|
|
|
SUBMENU:=libraries
|
2008-12-01 23:07:01 +00:00
|
|
|
DEPENDS:=+libSM +libX11
|
2008-11-16 19:31:42 +00:00
|
|
|
TITLE:=libXt
|
2008-01-25 11:23:41 +00:00
|
|
|
URL:=http://xorg.freedesktop.org/
|
|
|
|
endef
|
|
|
|
|
2008-12-16 16:32:06 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-malloc0returnsnull \
|
|
|
|
--without-xcb \
|
|
|
|
)
|
|
|
|
endef
|
2008-11-16 19:31:42 +00:00
|
|
|
|
2008-01-25 11:23:41 +00:00
|
|
|
define Build/Compile
|
2008-12-16 16:32:06 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/util HOSTCC=$(HOSTCC)
|
|
|
|
$(call Build/Compile/Default)
|
2008-01-25 11:23:41 +00:00
|
|
|
endef
|
|
|
|
|
2008-12-16 16:32:06 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/X11/}
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
2008-12-16 16:32:06 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/X11/* \
|
|
|
|
$(1)/usr/include/X11/
|
2008-01-25 11:23:41 +00:00
|
|
|
endef
|
|
|
|
|
2008-12-16 16:32:06 +00:00
|
|
|
define Package/libXt/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
2008-12-16 16:32:06 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
|
|
$(1)/usr/lib/
|
2008-01-25 11:23:41 +00:00
|
|
|
endef
|
|
|
|
|
2008-11-16 19:31:42 +00:00
|
|
|
$(eval $(call BuildPackage,libXt))
|