wok-next rev 20548

Removing *.la...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Apr 04 16:42:47 2018 +0300 (2018-04-04)
parents dfe25744cfaf
children 274a4fcf2b03
files fox14/receipt freeglut/receipt gc/receipt gdb/receipt geos/receipt gimp/receipt goffice/receipt graphviz/receipt
line diff
     1.1 --- a/fox14/receipt	Wed Apr 04 12:25:12 2018 +0300
     1.2 +++ b/fox14/receipt	Wed Apr 04 16:42:47 2018 +0300
     1.3 @@ -1,54 +1,44 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="fox14"
     1.7 -SOURCE="fox"
     1.8  VERSION="1.4.35"
     1.9  CATEGORY="x-window"
    1.10 -SHORT_DESC="Fox toolkit."
    1.11 +SHORT_DESC="Fox toolkit"
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="LGPL2.1"
    1.14 +WEB_SITE="http://www.fox-toolkit.org/"
    1.15 +
    1.16 +SOURCE="fox"
    1.17  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.18 -WEB_SITE="http://www.fox-toolkit.org/"
    1.19  WGET_URL="http://ftp.fox-toolkit.org/pub/$TARBALL"
    1.20 -SUGGESTED="adie calculator pathfinder shutterbug"
    1.21  
    1.22  BUILD_DEPENDS="libpng12 jpeg tiff xorg-libXft bzlib \
    1.23  xorg-libXrender xorg-libXrender-dev fontconfig fontconfig-dev freetype freetype-dev \
    1.24  libpng12-dev jpeg-dev tiff-dev xorg-libXft-dev mesa glu expat-dev libxml2-dev"
    1.25 -SPLIT="fox14 fox14-dev"
    1.26 +SPLIT="fox14-dev"
    1.27  
    1.28 -# Rules to configure and make the package.
    1.29 -compile_rules()
    1.30 -{
    1.31 +compile_rules() {
    1.32  	sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/fxpngio.cpp
    1.33  	sed -i 's/(gzFile\*)/(gzFile)/' src/FXGZStream.cpp
    1.34 -	./configure  LDFLAGS="-lXft -lfreetype -lfontconfig -lXrender" \
    1.35 -		--prefix=/usr \
    1.36 -		--mandir=/usr/share/man \
    1.37 +
    1.38 +	./configure \
    1.39 +		LDFLAGS="-lXft -lfreetype -lfontconfig -lXrender" \
    1.40  		--with-xft \
    1.41  		$CONFIGURE_ARGS &&
    1.42  	make $MAKEFLAGS &&
    1.43  	make DESTDIR=$DESTDIR install
    1.44  }
    1.45  
    1.46 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.47 -genpkg_rules()
    1.48 -{
    1.49 +genpkg_rules() {
    1.50  	case $PACKAGE in
    1.51 -	fox14)
    1.52 -		DEPENDS="libpng12 jpeg tiff xorg-libXft bzlib mesa glu"
    1.53 -		mkdir -p $fs/usr/lib
    1.54 -		cp -a $install/usr/bin $fs/usr
    1.55 -		cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.56 -		;;
    1.57 -	fox14-dev)
    1.58 -		CAT="x-window|Fox toolkit."
    1.59 -		SUGGESTED="adie calculator pathfinder shutterbug"
    1.60 -		DEPENDS="fox xorg-libX11-dev"
    1.61 -		mkdir -p $fs/usr/lib
    1.62 -		cp -a $install/usr/include $fs/usr
    1.63 -		cp -a $install/usr/lib/*.a* $fs/usr/lib
    1.64 -		cp -a $install/usr/lib/*.la* $fs/usr/lib
    1.65 -		;;
    1.66 +		fox14)
    1.67 +			copy @std
    1.68 +			DEPENDS="libpng12 jpeg tiff xorg-libXft bzlib mesa glu"
    1.69 +			SUGGESTED="adie calculator pathfinder shutterbug"
    1.70 +			;;
    1.71 +		*-dev)
    1.72 +			copy @dev
    1.73 +			DEPENDS="fox xorg-libX11-dev"
    1.74 +			;;
    1.75  	esac
    1.76  }
     2.1 --- a/freeglut/receipt	Wed Apr 04 12:25:12 2018 +0300
     2.2 +++ b/freeglut/receipt	Wed Apr 04 16:42:47 2018 +0300
     2.3 @@ -20,17 +20,16 @@
     2.4  compile_rules() {
     2.5  	# Binutils 2.22 break many packages build without LDFLAGS set correctly.
     2.6  	export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
     2.7 -	
     2.8 -	if [ ! -d $src ] ; then mv $PACKAGE-2.6.0 $src ; fi
     2.9 +
    2.10 +	if [ ! -d $src ]; then mv $PACKAGE-2.6.0 $src; fi
    2.11  
    2.12  	cd $src
    2.13  	# fixes an issue with the radeon[hd] ATI opensource drivers
    2.14  	# ref: http://bugs.gentoo.org/show_bug.cgi?id=295163
    2.15  	patch -p0 -i $stuff/2.6.0-GFX_radeon.patch
    2.16  #	sed -i 's/-Werror//' configure
    2.17 -	./configure \
    2.18 -		--prefix=/usr \
    2.19 -		$CONFIGURE_ARGS &&
    2.20 +
    2.21 +	./configure $CONFIGURE_ARGS &&
    2.22  #	sed -i '/XF86VMODE/d' config.status
    2.23  	make &&
    2.24  	make DESTDIR=$DESTDIR install
    2.25 @@ -39,17 +38,14 @@
    2.26  genpkg_rules() {
    2.27  	case $PACKAGE in
    2.28  		freeglut)
    2.29 -			mkdir -p $fs/usr/lib
    2.30 -			cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.31 +			copy @std
    2.32  			DEPENDS="glibc-base libdrm mesa glu \
    2.33  			xorg-libX11 xorg-libXau xorg-libXdamage xorg-libXdmcp \
    2.34  			xorg-libXext xorg-libXi xorg-libXfixes xorg-libXxf86vm"
    2.35  			SUGGESTED="nvidia"
    2.36  			;;
    2.37  		*-dev)
    2.38 -			mkdir -p $fs/usr/lib
    2.39 -			cp -a $install/usr/lib/*.*a $fs/usr/lib
    2.40 -			cp -a $install/usr/include $fs/usr
    2.41 +			copy @dev
    2.42  			;;
    2.43  	esac
    2.44  }
     3.1 --- a/gc/receipt	Wed Apr 04 12:25:12 2018 +0300
     3.2 +++ b/gc/receipt	Wed Apr 04 16:42:47 2018 +0300
     3.3 @@ -18,9 +18,10 @@
     3.4  		--enable-cplusplus \
     3.5  		$CONFIGURE_ARGS &&
     3.6  	make &&
     3.7 -	make DESTDIR=$DESTDIR install &&
     3.8 +	make DESTDIR=$DESTDIR install || return 1
     3.9 +
    3.10  	# libatomic_ops
    3.11 -	cd $src/libatomic_ops* &&
    3.12 +	cd $src/libatomic_ops*
    3.13  	./configure \
    3.14  		--prefix=/usr \
    3.15  		--disable-static \
    3.16 @@ -31,17 +32,7 @@
    3.17  
    3.18  genpkg_rules() {
    3.19  	case $PACKAGE in
    3.20 -		gc)
    3.21 -			mkdir -p $fs/usr/lib $fs/usr/share
    3.22 -			cp -a $install/usr/share/gc $fs/usr/share
    3.23 -			cp -a $install/usr/lib/*.so* $fs/usr/lib
    3.24 -			;;
    3.25 -		*-dev)
    3.26 -			mkdir -p $fs/usr/lib
    3.27 -			cp -a $install/usr/include $fs/usr
    3.28 -			cp -a $install/usr/lib/*.*a $fs/usr/lib
    3.29 -			cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    3.30 -			;;
    3.31 +		gc)    copy @std;;
    3.32 +		*-dev) copy @dev;;
    3.33  	esac
    3.34  }
    3.35 -
     4.1 --- a/gdb/receipt	Wed Apr 04 12:25:12 2018 +0300
     4.2 +++ b/gdb/receipt	Wed Apr 04 16:42:47 2018 +0300
     4.3 @@ -12,58 +12,40 @@
     4.4  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
     4.5  
     4.6  BUILD_DEPENDS="ncurses-dev python-dev readline-dev perl-dev texinfo"
     4.7 -SPLIT="gdb-python:python gdb-dev"
     4.8 +SPLIT="gdb-python:py gdb-dev"
     4.9  
    4.10  compile_rules() {
    4.11  	case $SET in
    4.12 -		'')     SET_ARGS='--with-python=no';;
    4.13 -		python) SET_ARGS='';;
    4.14 +		'') SET_ARGS='--with-python=no';;
    4.15 +		py) SET_ARGS='';;
    4.16  	esac
    4.17  
    4.18  	./configure \
    4.19  		--disable-werror \
    4.20  		$SET_ARGS \
    4.21  		$CONFIGURE_ARGS &&
    4.22 -	make && make install
    4.23 +	make &&
    4.24 +	make install || return 1
    4.25 +
    4.26 +	# Do not copy static libs, as they are all part of binutils;
    4.27 +	# binutils includes libbdf.*a, libiberty.a, and libopcodes.*a
    4.28 +	find $install -name '*.a' -delete
    4.29  }
    4.30  
    4.31  genpkg_rules() {
    4.32  	case $PACKAGE in
    4.33  		gdb)
    4.34 -			mkdir -p $fs/usr
    4.35 -			cp -a $install/usr/bin $fs/usr
    4.36 +			copy @std
    4.37  			DEPENDS="ncurses expat glibc-dev"
    4.38  			;;
    4.39  		gdb-python)
    4.40 -			mkdir -p $fs/usr/share
    4.41 -			cp -a $install/usr/bin $fs/usr
    4.42 -			cp -a $install/usr/lib $fs/usr
    4.43 -			cp -a $install/usr/share/gdb $fs/usr/share
    4.44 +			copy @std
    4.45  			CAT="development|with Python support"
    4.46  			DEPENDS="ncurses expat glibc-dev python"
    4.47  			PROVIDE="gdb"
    4.48  			;;
    4.49  		*-dev)
    4.50 -			mkdir -p $fs/usr
    4.51 -
    4.52 -			# Copying include dir if exists
    4.53 -			if [ -d "$install/usr/include" ]; then
    4.54 -				cp -a $install/usr/include $fs/usr
    4.55 -			fi
    4.56 -
    4.57 -			# Copying pkgconfig dir if exists
    4.58 -			if [ -d "$install/usr/lib/pkgconfig" ]; then
    4.59 -				test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/
    4.60 -				cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    4.61 -			fi
    4.62 -
    4.63 -			# Do not copy static libs, as they are all part of binutils
    4.64 -			# binutils includes libbdf.*a, libiberty.a, and libopcodes.*a
    4.65 -			# Copying static libs if exists
    4.66 -			#if ( find $install/usr/lib -name "*.*a" > /dev/null ); then
    4.67 -			#	test -d $fs/usr/lib || mkdir -p $fs/usr/lib
    4.68 -			#	cp -a $install/usr/lib/*.*a $fs/usr/lib
    4.69 -			#fi
    4.70 +			copy @dev
    4.71  			DEPENDS="gdb"
    4.72  			;;
    4.73  	esac
     5.1 --- a/geos/receipt	Wed Apr 04 12:25:12 2018 +0300
     5.2 +++ b/geos/receipt	Wed Apr 04 16:42:47 2018 +0300
     5.3 @@ -3,38 +3,25 @@
     5.4  PACKAGE="geos"
     5.5  VERSION="3.6.2"
     5.6  CATEGORY="misc"
     5.7 -SHORT_DESC="Geometry Engine, Open Source."
     5.8 +SHORT_DESC="Geometry Engine, Open Source"
     5.9  MAINTAINER="erjo@slitaz.org"
    5.10  LICENSE="LGPL2.1"
    5.11  WEB_SITE="http://trac.osgeo.org/geos/"
    5.12 +
    5.13  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    5.14  WGET_URL="http://download.osgeo.org/geos/$TARBALL"
    5.15  
    5.16 -BUILD_DEPENDS=""
    5.17  SPLIT="geos-dev"
    5.18  
    5.19 -# Rules to configure and make the package.
    5.20 -compile_rules()
    5.21 -{
    5.22 -	./configure $CONFIGURE_ARGS && make && make install
    5.23 +compile_rules() {
    5.24 +	./configure $CONFIGURE_ARGS &&
    5.25 +	make &&
    5.26 +	make install
    5.27  }
    5.28  
    5.29 -# Rules to gen a SliTaz package suitable for Tazpkg.
    5.30 -genpkg_rules()
    5.31 -{
    5.32 +genpkg_rules() {
    5.33  	case $PACKAGE in
    5.34 -	geos)
    5.35 -		DEPENDS="gcc-lib-base"
    5.36 -		mkdir -p $fs/usr/lib
    5.37 -		cp -a $install/usr/lib/*.so* $fs/usr/lib
    5.38 -		;;
    5.39 -	geos-dev)
    5.40 -		CAT="development|Geos dev files."
    5.41 -		DEPENDS="geos"
    5.42 -		mkdir -p $fs/usr/bin $fs/usr/lib
    5.43 -		cp -a $install/usr/bin $fs/usr
    5.44 -		cp -a $install/usr/include $fs/usr
    5.45 -		cp -a $install/usr/lib/*.*a $fs/usr/lib
    5.46 -		;;
    5.47 +		geos)  copy @std;;
    5.48 +		*-dev) copy @dev;;
    5.49  	esac
    5.50  }
     6.1 --- a/gimp/receipt	Wed Apr 04 12:25:12 2018 +0300
     6.2 +++ b/gimp/receipt	Wed Apr 04 16:42:47 2018 +0300
     6.3 @@ -14,7 +14,7 @@
     6.4  BUILD_DEPENDS="gettext perl-xml-parser babl-dev gegl-dev glib-dev \
     6.5  intltool expat-dev zlib-dev libart_lgpl-dev lcms-dev xorg-dev-proto \
     6.6  gdk-pixbuf-dev gtk+-dev libexif-dev aalib-dev libmng-dev jasper-dev"
     6.7 -SPLIT="gimp gimp-brushes gimp-console gimp-dev gimp-plug-ins"
     6.8 +SPLIT="gimp-brushes gimp-console gimp-dev gimp-plug-ins gimp"
     6.9  
    6.10  compile_rules() {
    6.11  	export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
    6.12 @@ -36,77 +36,33 @@
    6.13  
    6.14  genpkg_rules() {
    6.15  	case $PACKAGE in
    6.16 +		gimp-brushes)
    6.17 +			copy gimp/2.0/brushes/
    6.18 +			find $fs -name 'Basic' -exec rm -r '{}' \; # -> main package
    6.19 +			CAT="graphics|brushes set"
    6.20 +			DEPENDS="gimp"
    6.21 +			;;
    6.22 +		gimp-console)
    6.23 +			copy gimp-console*
    6.24 +			CAT="graphics|console"
    6.25 +			DEPENDS="babl pango cairo gimp glib xorg-libX11 xorg-libXau"
    6.26 +			;;
    6.27 +		gimp-dev)
    6.28 +			copy @dev
    6.29 +			;;
    6.30 +		gimp-plug-ins)
    6.31 +			copy gimp/2.0/plug-ins/
    6.32 +			find $fs \( -name file-jpeg -o -name file-png -o -name pixelize \
    6.33 +				-o -name screenshot \) -delete # -> main package
    6.34 +			CAT="graphics|plug-ins suite for advanced users"
    6.35 +			DEPENDS="gimp lcms xorg-libXpm libmng aalib libexif tiff"
    6.36 +			;;
    6.37  		gimp)
    6.38 +			copy @std @rm # all the rest
    6.39 +			DEPENDS="libart_lgpl babl gegl glib tiff xorg-libXdamage \
    6.40 +			xorg-libXmu xorg-libXt gdk-pixbuf gtk+ libexif"
    6.41  			SUGGESTED="gimp-plug-ins gimp-brushes gimp-console \
    6.42  			gimp-plugin-ufraw"
    6.43 -			DEPENDS="libart_lgpl babl gegl glib tiff xorg-libXdamage \
    6.44 -			xorg-libXmu xorg-libXt gdk-pixbuf gtk+ libexif"
    6.45 -			mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
    6.46 -
    6.47 -			cp -a $install/etc $fs
    6.48 -			cp -a $install/usr/bin $fs/usr
    6.49 -			cp -a $install/usr/lib/*.so* $fs/usr/lib
    6.50 -			cp -a $install/usr/lib/gimp $fs/usr/lib
    6.51 -
    6.52 -			cp $install/usr/share/icons/hicolor/24x24/apps/gimp.png \
    6.53 -				$fs/usr/share/pixmaps/gimp.png
    6.54 -
    6.55 -			# The gimp-console goes in a separate package
    6.56 -			rm $fs/usr/bin/gimp-console*
    6.57 -
    6.58 -			# Most plug-ins goes in a separate package
    6.59 -			rm -rf $fs/usr/lib/gimp/2.0/plug-ins/*
    6.60 -			for i in file-jpeg file-png pixelize screenshot; do
    6.61 -				cp $install/usr/lib/gimp/2.0/plug-ins/$i \
    6.62 -					$fs/usr/lib/gimp/2.0/plug-ins
    6.63 -			done
    6.64 -
    6.65 -			# Include only Basic brushes --> gimp-brushes
    6.66 -			cp -a $install/usr/share/gimp $fs/usr/share
    6.67 -			for i in gimp-* Legacy Media Sketch Splatters Texture; do
    6.68 -				rm -rf $fs/usr/share/gimp/2.0/brushes/$i
    6.69 -			done
    6.70 -
    6.71 -			# Remove devel files
    6.72 -			rm $fs/usr/lib/gimp/2.0/modules/*.*a
    6.73 -
    6.74 -			# Put a nice splash with a spider
    6.75 -			cp -a $stuff/gimp-splash.png $fs/usr/share/gimp/2.0/images
    6.76 -			;;
    6.77 -		gimp-brushes)
    6.78 -			CAT="graphics|brushes set"
    6.79 -			DEPENDS="gimp"
    6.80 -			mkdir -p $fs/usr/share/gimp/2.0
    6.81 -			cp -a $install/usr/share/gimp/2.0/brushes $fs/usr/share/gimp/2.0
    6.82 -			rm -rf $fs/usr/share/gimp/2.0/brushes/Basic
    6.83 -			;;
    6.84 -		gimp-console)
    6.85 -			CAT="graphics|console"
    6.86 -			DEPENDS="babl pango cairo gimp glib xorg-libX11 xorg-libXau"
    6.87 -			mkdir -p $fs/usr/bin
    6.88 -			cp -a $install/usr/bin/gimp-console* $fs/usr/bin
    6.89 -			;;
    6.90 -		gimp-dev)
    6.91 -			mkdir -p $fs/usr
    6.92 -			cp -a $install/usr/include $fs/usr
    6.93 -			cp -a $install/usr/lib $fs/usr
    6.94 -			# Remove libraries files
    6.95 -			rm -rf $fs/usr/lib/*.so*
    6.96 -			rm -rf $fs/usr/lib/gimp/2.0/modules/*.so*
    6.97 -			rm -rf $fs/usr/lib/gimp/2.0/environ
    6.98 -			rm -rf $fs/usr/lib/gimp/2.0/interpreters
    6.99 -			rm -rf $fs/usr/lib/gimp/2.0/plug-ins
   6.100 -			;;
   6.101 -		gimp-plug-ins)
   6.102 -			CAT="graphics|plug-ins suite for advanced users"
   6.103 -			DEPENDS="gimp lcms xorg-libXpm libmng aalib libexif tiff"
   6.104 -			mkdir -p $fs/usr/lib/gimp/2.0
   6.105 -			cp -a $install/usr/lib/gimp/2.0/plug-ins $fs/usr/lib/gimp/2.0
   6.106 -
   6.107 -			# Remove plug-ins provided by the main package.
   6.108 -			for i in file-jpeg file-png pixelize screenshot; do
   6.109 -				rm $fs/usr/lib/gimp/2.0/plug-ins/$i
   6.110 -			done
   6.111  			;;
   6.112  	esac
   6.113  }
     7.1 --- a/goffice/receipt	Wed Apr 04 12:25:12 2018 +0300
     7.2 +++ b/goffice/receipt	Wed Apr 04 16:42:47 2018 +0300
     7.3 @@ -16,13 +16,15 @@
     7.4  SPLIT="goffice-dev"
     7.5  
     7.6  compile_rules() {
     7.7 -	./configure $CONFIGURE_ARGS && make && make install
     7.8 +	./configure $CONFIGURE_ARGS &&
     7.9 +	make &&
    7.10 +	make install
    7.11  }
    7.12  
    7.13  genpkg_rules() {
    7.14  	case $PACKAGE in
    7.15  		goffice)
    7.16 -			copy *.so* *.xml *.xsl README
    7.17 +			copy @std
    7.18  			DEPENDS="at-spi2-core at-spi2-atk atk bzlib cairo dbus fontconfig \
    7.19  			freetype gdk-pixbuf glib glibc-base gtk+3 harfbuzz libcroco libffi \
    7.20  			libgsf libpng16 librsvg xorg-libxcb libxml2 libxslt pango pcre \
    7.21 @@ -32,7 +34,7 @@
    7.22  			xorg-libXinerama xorg-libXrandr xorg-libXrender zlib"
    7.23  			;;
    7.24  		*-dev)
    7.25 -			copy *.h *.la *.pc
    7.26 +			copy @dev
    7.27  			DEPENDS="goffice glib-dev libgsf-dev libxml2-dev gtk+3-dev \
    7.28  			cairo-dev pango-dev librsvg-dev libxslt-dev"
    7.29  			;;
     8.1 --- a/graphviz/receipt	Wed Apr 04 12:25:12 2018 +0300
     8.2 +++ b/graphviz/receipt	Wed Apr 04 16:42:47 2018 +0300
     8.3 @@ -28,7 +28,9 @@
     8.4  	sed -i '/LIBPOSTFIX="64"/s/64//' configure.ac
     8.5  	autoreconf &&
     8.6  
     8.7 -	./configure $CONFIGURE_ARGS && make && make install
     8.8 +	./configure $CONFIGURE_ARGS &&
     8.9 +	make &&
    8.10 +	make install
    8.11  }
    8.12  
    8.13  genpkg_rules() {
    8.14 @@ -100,4 +102,5 @@
    8.15  			xorg-pixman zlib"
    8.16  			;;
    8.17  	esac
    8.18 +	find $fs -name '*.la' -delete
    8.19  }