wok-next diff ladspa/receipt @ rev 20715

Up nsd (4.1.21)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun May 27 13:10:46 2018 +0300 (2018-05-27)
parents 2a5cc8208d36
children d5aab818505e
line diff
     1.1 --- a/ladspa/receipt	Sun Oct 20 22:08:25 2013 +0000
     1.2 +++ b/ladspa/receipt	Sun May 27 13:10:46 2018 +0300
     1.3 @@ -1,34 +1,39 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="ladspa"
     1.8  VERSION="1.13"
     1.9  CATEGORY="multimedia"
    1.10 +SHORT_DESC="LADSPA: Linux Audio Developer's Simple Plugin API"
    1.11  MAINTAINER="jozee@slitaz.org"
    1.12  LICENSE="LGPL2.1"
    1.13 -SHORT_DESC="Linux Audio Developer's Simple Plugin API (LADSPA)"
    1.14  WEB_SITE="http://www.ladspa.org/"
    1.15 -TARBALL="${PACKAGE}_sdk_$VERSION.tgz"
    1.16 -WGET_URL="$WEB_SITE/download/$TARBALL"
    1.17 -TAGS="multimedia"
    1.18  
    1.19 -DEPENDS="gcc-lib-base"
    1.20 -BUILD_DEPENDS=""
    1.21 +TARBALL="ladspa_sdk_$VERSION.tgz"
    1.22 +WGET_URL="https://github.com/OpenMandrivaAssociation/ladspa/raw/master/$TARBALL"
    1.23  
    1.24 -# Rules to configure and make the package.
    1.25 -compile_rules()
    1.26 -{
    1.27 -	cd $src/src
    1.28 -	sed -i -e 's/mkdirhier/mkdir -p/' makefile 
    1.29 -	make targets 
    1.30 +SPLIT="ladspa-dev"
    1.31 +
    1.32 +compile_rules() {
    1.33 +	cd src
    1.34 +	sed -i \
    1.35 +		-e 's/mkdirhier/mkdir -p/' \
    1.36 +		-e "s#-O3#${CFLAGS} ${LDFLAGS/,--as-needed/}#" \
    1.37 +		makefile
    1.38 +	make targets &&
    1.39  	make INSTALL_PLUGINS_DIR=$DESTDIR/usr/lib/ladspa/ \
    1.40 -		INSTALL_INCLUDE_DIR=$DESTDIR/usr/include/  \
    1.41 -		INSTALL_BINARY_DIR=$DESTDIR/usr/bin/ install 
    1.42 +		INSTALL_INCLUDE_DIR=$DESTDIR/usr/include/ \
    1.43 +		INSTALL_BINARY_DIR=$DESTDIR/usr/bin/ \
    1.44 +		install
    1.45  }
    1.46 -	
    1.47 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.48 -genpkg_rules()
    1.49 -{
    1.50 -	mkdir -p $fs/usr/lib/$PACKAGE
    1.51 -	cp -a $install/usr/bin $fs/usr
    1.52 -	cp -a $install/usr/lib/$PACKAGE/*so* $fs/usr/lib/$PACKAGE	
    1.53 +
    1.54 +genpkg_rules() {
    1.55 +	case $PACKAGE in
    1.56 +		ladspa)
    1.57 +			copy @std
    1.58 +			TAGS="multimedia"
    1.59 +			;;
    1.60 +		*-dev)
    1.61 +			copy @dev
    1.62 +			;;
    1.63 +	esac
    1.64  }