Bug#781078: Package d3dadapter9
Package: mesa
Severity: wishlist
Tags: patch
A branch of wine with support for gallium-nine is being maintained, it
would be convenient if the d3dadapter9.so was built upstream instead of
having to recompile mesa.
diff --git a/debian/control b/debian/control
index fa9ef9d..9265da1 100644
--- a/debian/control
+++ b/debian/control
@@ -200,6 +200,32 @@ Description: X acceleration library -- development files
This package provides the development environment for compiling programs
against the xatracker library.
+Package: libd3dadapter9-mesa
+Section: libs
+Architecture: linux-any kfreebsd-any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ libudev1 [linux-any],
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: generic buffer management API -- runtime
+ This package contains the d3d9 state tracker
+
+Package: libd3dadapter9-mesa-dev
+Section: libs
+Architecture: linux-any kfreebsd-any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ libudev1 [linux-any],
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: generic buffer management API -- runtime
+ This package contains the d3d9 state tracker
+ .
+ Development files
+
Package: libgbm1
Section: libs
Architecture: linux-any kfreebsd-any
diff --git a/debian/libd3dadapter9-mesa-dev.install.in b/debian/libd3dadapter9-mesa-dev.install.in
new file mode 100644
index 0000000..814baf9
--- /dev/null
+++ b/debian/libd3dadapter9-mesa-dev.install.in
@@ -0,0 +1,5 @@
+dri/usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/d3d.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig
+dri/usr/include/d3dadapter/d3dadapter9.h usr/include/d3dadapter
+dri/usr/include/d3dadapter/drm.h usr/include/d3dadapter
+dri/usr/include/d3dadapter/present.h usr/include/d3dadapter
+
diff --git a/debian/libd3dadapter9-mesa.install.in b/debian/libd3dadapter9-mesa.install.in
new file mode 100644
index 0000000..51a06b4
--- /dev/null
+++ b/debian/libd3dadapter9-mesa.install.in
@@ -0,0 +1,3 @@
+dri/usr/lib/${DEB_HOST_MULTIARCH}/d3d/d3dadapter9.so.1.0.0 usr/lib/${DEB_HOST_MULTIARCH}/d3d
+dri/usr/lib/${DEB_HOST_MULTIARCH}/d3d/d3dadapter9.so.1 usr/lib/${DEB_HOST_MULTIARCH}/d3d
+dri/usr/lib/${DEB_HOST_MULTIARCH}/d3d/d3dadapter9.so usr/lib/${DEB_HOST_MULTIARCH}/d3d
diff --git a/debian/rules b/debian/rules
index c3776b4..064d0b5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -91,6 +91,7 @@ else
# Build intel drivers on archs where libdrm-intel is installed
ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386 kfreebsd-amd64 kfreebsd-i386 x32))
DRI_DRIVERS += i915 i965
+ GALLIUM_DRIVERS += i915
endif
# Do not build llvmpipe for armhf, it regresses compared to the classic swrast.
@@ -132,6 +133,7 @@ confflags-dri = \
--with-dri-driverdir=/usr/lib/$(DEB_HOST_MULTIARCH)/dri \
--with-dri-searchpath='/usr/lib/$(DEB_HOST_MULTIARCH)/dri:\$$$${ORIGIN}/dri:/usr/lib/dri' \
--enable-osmesa \
+ --enable-nine \
--enable-glx-tls \
--enable-shared-glapi \
--enable-texture-float \
Reply to: