Files
haikuports/haiku-apps/aplayer/aplayer-4.0_svn.recipe
fbrosson bcebdeb6dd Fix 2nd arch for live555 & aplayer; cosmetic edits elsewhere. (#593)
* live555: Use $developLibDir instead of $developDir/lib since the
  latter is not appropriate for 2nd arch builds.
* aplayer: Drop $secondaryArchSuffix for cmd:nasm in BUILD_PREREQ.
* re2c: use tabs (instead of white spaces) in BUILD_REQUIRES.
* Remove x86_64 from SECONDARY_ARCHITECTURES for sdl2_net, edgar,
  paladin-git and mediainfo-0.7.61.
2016-05-09 16:19:34 -04:00

57 lines
1.5 KiB
Bash

SUMMARY="A player for Amiga modules and other formats"
DESCRIPTION="APlayer is a module player and can play a lot of different \
music file formats, from Amiga and elsewhere."
HOMEPAGE="https://github.com/pulkomandy/APlayer"
COPYRIGHT="1994-2002 Polycode
2011-2016 Adrien Destugues"
LICENSE="Artistic"
REVISION="3"
SOURCE_URI="https://github.com/pulkomandy/APlayer/archive/8fdb80db65d3480a0a6b84aa3d27def0da90ac95.tar.gz"
SOURCE_DIR="APlayer-8fdb80db65d3480a0a6b84aa3d27def0da90ac95"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
PROVIDES="
aplayer$secondaryArchSuffix = $portVersion
app:APlayer = $portVersion
lib:PolyKit = $portVersion
lib:APlayerKit = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgme$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libgme$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:nasm
"
BUILD()
{
cd Master
make
cd ..
}
INSTALL()
{
aplayerDir=$appsDir/APlayer
mkdir -p $aplayerDir $aplayerDir/add-ons $aplayerDir/Documentation $aplayerDir/lib
cp APlayer/bin/BeOS_$targetArchitecture/APlayer $aplayerDir
cp -r Documentation/* $aplayerDir/Documentation
cp -r APlayer/bin/BeOS_$targetArchitecture/add-ons/* $aplayerDir/add-ons
cp APlayer/bin/BeOS_$targetArchitecture/lib/APlayerKit.so $aplayerDir/lib
cp PolyKit/bin/BeOS/$targetArchitecture/PolyKit.so $aplayerDir/lib
addAppDeskbarSymlink $aplayerDir/APlayer
}