diff graphics/wxwidgets/wxwidgets.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 9eb7c3c561fc
children 57dc83a39b13
line wrap: on
line diff
--- a/graphics/wxwidgets/wxwidgets.sh	Wed Jul 28 15:24:46 2021 +0200
+++ b/graphics/wxwidgets/wxwidgets.sh	Wed Sep 29 13:49:32 2021 +0200
@@ -116,41 +116,38 @@
 	with_zlib="--without-zlib"
 fi
 
-build()
-{
-	rm -rf wxWidgets-$PKGVERSION
-	tar xvf wxWidgets-$PKGVERSION.tar.bz2
-	cd wxWidgets-$PKGVERSION
+rm -rf wxWidgets-$PKGVERSION
+tar xvf wxWidgets-$PKGVERSION.tar.bz2
+cd wxWidgets-$PKGVERSION
 
-	# --disable-xlocale: does not build (strtol_l).
-	# --enable-unicode: this should be default.
-	CC="$CC" \
-	CFLAGS="$CFLAGS" \
-	CXX="$CXX" \
-	CXXFLAGS="$CXXFLAGS" \
-	LDFLAGS="$LDFLAGS" \
-	LIBS="$LIBS" \
-	./configure \
-		--build=$CBUILD \
-		--host=$CHOST \
-		--prefix= \
-		--with-cxx=17 \
-		--disable-xlocale \
-		--enable-unicode \
-		$with_gtk \
-		$with_jpeg \
-		$with_lzma \
-		$with_notifications \
-		$with_opengl \
-		$with_png \
-		$with_qt \
-		$with_tiff \
-		$with_xml \
-		$with_xpm \
-		$with_zlib
-	make
-	make install DESTDIR=$DESTDIR
+# --disable-xlocale: does not build (strtol_l).
+# --enable-unicode: this should be default.
+CC="$CC" \
+CFLAGS="$CFLAGS" \
+CXX="$CXX" \
+CXXFLAGS="$CXXFLAGS" \
+LDFLAGS="$LDFLAGS" \
+LIBS="$LIBS" \
+./configure \
+	--build=$CBUILD \
+	--host=$CHOST \
+	--prefix= \
+	--with-cxx=17 \
+	--disable-xlocale \
+	--enable-unicode \
+	$with_gtk \
+	$with_jpeg \
+	$with_lzma \
+	$with_notifications \
+	$with_opengl \
+	$with_png \
+	$with_qt \
+	$with_tiff \
+	$with_xml \
+	$with_xpm \
+	$with_zlib
+make
+make install DESTDIR=$DESTDIR
 
-	cd ..
-	rm -rf wxWidgets-$PKGVERSION
-}
+cd ..
+rm -rf wxWidgets-$PKGVERSION