2008-12-15 01:22:59 +00:00
|
|
|
#
|
2010-03-28 06:27:01 +00:00
|
|
|
# Copyright (C) 2008-2010 OpenWrt.org
|
2008-12-15 01:22:59 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=Mesa
|
2009-01-04 00:06:33 +00:00
|
|
|
PKG_RELEASE:=2
|
2008-12-15 01:22:59 +00:00
|
|
|
PKG_VERSION:=7.2
|
|
|
|
|
|
|
|
PKG_SOURCE_URL:=@SF/mesa3d
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)Lib-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_MD5SUM:=04d379292e023df0b0266825cb0dbde5
|
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
PKG_BUILD_DEPENDS:=glproto
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
define Package/libgl-mesa
|
2010-03-28 06:27:01 +00:00
|
|
|
SECTION:=xorg-libraries
|
2008-12-15 01:22:59 +00:00
|
|
|
CATEGORY:=Xorg
|
2009-01-09 17:10:38 +00:00
|
|
|
SUBMENU:=libraries
|
2009-05-29 12:01:10 +00:00
|
|
|
DEPENDS:=+libX11 +libXext +libXfixes +libXdamage +libXxf86vm +libdrm +libexpat
|
2008-12-15 01:22:59 +00:00
|
|
|
TITLE:=Mesa OpenGL library
|
|
|
|
URL:=http://mesa3d.org
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libglu-mesa
|
2010-03-28 06:27:01 +00:00
|
|
|
SECTION:=xorg-libraries
|
2008-12-15 01:22:59 +00:00
|
|
|
CATEGORY:=Xorg
|
2009-01-09 17:10:38 +00:00
|
|
|
SUBMENU:=libraries
|
2008-12-15 01:22:59 +00:00
|
|
|
DEPENDS:=+libgl-mesa
|
|
|
|
TITLE:=Mesa OpenGL utility library
|
|
|
|
URL:=http://mesa3d.org
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libgl-mesa-dri/Default
|
|
|
|
define Package/libgl-mesa-dri-$(1)
|
2010-03-28 06:27:01 +00:00
|
|
|
SECTION:=xorg-libraries
|
2008-12-15 01:22:59 +00:00
|
|
|
CATEGORY:=Xorg
|
2009-01-09 17:10:38 +00:00
|
|
|
SUBMENU:=libraries
|
2009-05-29 12:01:16 +00:00
|
|
|
DEPENDS:=libgl-mesa @DISPLAY_SUPPORT $(if $(findstring swrast,$(1)),,@TARGET_x86)
|
2008-12-15 01:22:59 +00:00
|
|
|
TITLE:=mesa dri $(1)
|
|
|
|
URL:=http://mesa3d.org
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
DRIDRIVERS:=i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v \
|
|
|
|
savage sis tdfx trident unichrome ffb swrast
|
|
|
|
|
|
|
|
$(foreach dri,$(DRIDRIVERS),$(eval $(call Package/libgl-mesa-dri/Default,$(dri))))
|
|
|
|
|
|
|
|
STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_libgl-mesa \
|
|
|
|
CONFIG_PACKAGE_libglu-mesa \
|
|
|
|
$(foreach dri,$(DRIDRIVERS),CONFIG_PACKAGE_libgl-mesa-dri-$(dri)))
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--disable-glw \
|
|
|
|
--with-driver=dri \
|
|
|
|
--with-dri-drivers="$(foreach dri,$(DRIDRIVERS),$(if $(CONFIG_PACKAGE_libgl-mesa-dri-$(dri)),$(dri)))" \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/{include/GL,lib/pkgconfig}
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/GL/* \
|
|
|
|
$(1)/usr/include/GL
|
|
|
|
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
2008-12-15 01:22:59 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
|
|
$(1)/usr/lib
|
|
|
|
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libgl-mesa/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
2008-12-15 01:22:59 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libGL.so* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libglu-mesa/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
2008-12-15 01:22:59 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libGLU.so* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libgl-mesa-dri/install/Default
|
|
|
|
define Package/libgl-mesa-dri-$(1)/install
|
|
|
|
$(INSTALL_DIR) $$(1)/usr/lib/dri/
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
2008-12-15 01:22:59 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/dri/$(1)_dri.so* \
|
|
|
|
$$(1)/usr/lib/dri
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach dri,$(DRIDRIVERS),$(eval $(call Package/libgl-mesa-dri/install/Default,$(dri))))
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libgl-mesa))
|
|
|
|
$(eval $(call BuildPackage,libglu-mesa))
|
|
|
|
$(foreach dri,$(DRIDRIVERS),$(eval $(call BuildPackage,libgl-mesa-dri-$(dri))))
|