View Single Post
  #4   (View Single Post)  
Old 30th December 2018
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 175
Default

Hi jggimi,

As said in the link:
https://marc.info/?l=openbsd-bugs&m=154389359919324&w=2

I installed libelf and llvm packages but then I do not understand:

Install libelf and llvm packages, apply the below patch and then build
xenocara.

Code:
Index: lib/mesa/Makefile.bsd-wrapper
===================================================================
RCS file: /cvs/xenocara/lib/mesa/Makefile.bsd-wrapper,v
retrieving revision 1.21
diff -u -p -r1.21 Makefile.bsd-wrapper
--- lib/mesa/Makefile.bsd-wrapper	23 Oct 2018 06:35:32 -0000	1.21
+++ lib/mesa/Makefile.bsd-wrapper	4 Dec 2018 02:44:28 -0000
@@ -11,7 +11,7 @@ GALLIUM_DRIVERS=	swrast
 
 .if ${MACHINE} == i386 || ${MACHINE} == amd64
 DRI_DRIVERS=swrast,radeon,r200,i915,i965
-GALLIUM_DRIVERS=swrast,r300,r600
+GALLIUM_DRIVERS=swrast,r300,r600,radeonsi
 .endif
 
 .if ${MACHINE} == arm64 || ${MACHINE} == loongson || \
@@ -23,7 +23,8 @@ GALLIUM_DRIVERS=swrast,r300,r600
 CONFIGURE_ARGS=		--with-dri-drivers=${DRI_DRIVERS} \
 			--with-gallium-drivers=${GALLIUM_DRIVERS} \
 			--disable-silent-rules \
-			--disable-llvm \
+			--enable-llvm \
+			--with-llvm-prefix=/usr/local \
 			--disable-glx-tls \
 			--disable-regen-sources \
 			--enable-gles1 --enable-gles2 \
@@ -70,6 +71,25 @@ O2= ${O1} -fthread-jumps -fcrossjumping 
 
 CONFIGURE_ARGS+=       USER_CFLAGS="-O0 ${O2}"
 .endif
+
+PKGCONFIG_LIBDIR=	/usr/lib/pkgconfig:${X11BASE}/lib/pkgconfig:/usr/local/lib/pkgconfig
+
+XENOCARA_PATH=	/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
+
+config.status:
+	PKG_CONFIG_LIBDIR="${PKGCONFIG_LIBDIR}" \
+	CONFIG_SITE=$(CONFIG_SITE) \
+	CC=${CC} \
+	CFLAGS="${CFLAGS}" \
+	CXX=${CXX} \
+	CXXFLAGS="${CXXFLAGS}" \
+	AR_FLAGS="cruD" \
+	MAKE="${MAKE}" \
+	PATH=$(XENOCARA_PATH) \
+		sh ${_SRCDIR}/configure --prefix=${X11BASE} \
+		--sysconfdir=/etc \
+		--mandir=${X11BASE}/man \
+		${CONFIGURE_ARGS}
 
 ${.OBJDIR}/src/util/format_srgb.c:
 	lndir -s -e obj -e obj.${MACHINE_ARCH} -e Makefile.bsd-wrapper ${.CURDIR}
I tried some of the command manually but I failed. I do not understand what to do. Can you help me?

Peace,
ripe
Reply With Quote