diff graphics/mesa/mesa.sh @ 766:e91fbcb3d1ef

vanilla: consolidate FHS
author David Demelier <markand@malikania.fr>
date Fri, 09 Aug 2019 20:10:00 +0200
parents 439aade5bee6
children c4c953d0af41
line wrap: on
line diff
--- a/graphics/mesa/mesa.sh	Thu Aug 08 17:10:50 2019 +0200
+++ b/graphics/mesa/mesa.sh	Fri Aug 09 20:10:00 2019 +0200
@@ -117,10 +117,10 @@
 	CXX="$CXX" \
 	CXXFLAGS="$CXXFLAGS" \
 	LDFLAGS="$LDFLAGS" \
-	meson \
+	meson . build \
 		--prefix / \
 		--buildtype release \
-		--default-library shared \
+		--default-library shared
 		-D libdir=lib \
 		-D bpm=true \
 		-D platforms="$with_platforms" \
@@ -131,11 +131,10 @@
 		$with_egl \
 		$with_glvnd \
 		$with_glx \
-		$with_llvm \
-		. build
+		$with_llvm
 	ninja -C build
 	DESTDIR=$DESTDIR ninja -C build install
+	sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc
 
 	cd ..
 	rm -rf $PKGNAME-$PKGVERSION
-}