jgmod: turn bep into recipe.

This commit is contained in:
Adrien Destugues
2014-03-30 13:08:33 +02:00
parent fc970ad4fc
commit ccb8d2f684

View File

@@ -1,16 +1,39 @@
DESCRIPTION="jgmod is a MOD music playing add-on library for Allegro"
SUMMARY="jgmod is a MOD music playing add-on library for Allegro"
DESCRIPTION="
JGMOD is a mod library for MOD musics. It is built on top of Allegro lower
level digital sound routines. Currently supports MOD, S3M, XM, Unreal
S3M (in UMX extension), and JGM under DJGPP, Mingw32, MSVC, Linux and BEOS.
"
HOMEPAGE="http://guan.is-a-geek.com/jgmod/jgmod.html"
COPYRIGHT="1997-2002 Guan Foo Wah"
LICENSE="JGMOD"
SRC_URI="http://guan.is-a-geek.com/jgmod/jgmod.zip"
REVISION="2"
STATUS_HAIKU="stable"
DEPEND="media-libs/allegro >= 4.4"
CHECKSUM_MD5="0e6e540ffadced9283251a7f86c106fe"
REVISION="2"
ARCHITECTURES="x86_gcc2"
PROVIDES="
jgmod = $portVersion
lib:libjgmod
"
REQUIRES="
lib:liballeg >= 4.4
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
devel:liballeg
"
BUILD_PREREQUIRES="
cmd:find
cmd:gcc
cmd:make
"
SOURCE_DIR="jgmod"
BUILD()
{
cd jgmod
chmod 777 ./fixbe.sh
./fixbe.sh
cd src
@@ -19,16 +42,18 @@ BUILD()
INSTALL()
{
cd jgmod/src
if [ -n ${DESTDIR} ];then
mkdir -p ${DESTDIR}/boot/common/lib
mkdir -p ${DESTDIR}/boot/common/include
make install \
CPLIBDEST=${DESTDIR}/boot/common/lib \
CPINCDEST=${DESTDIR}/boot/common/include
else
make install \
CPLIBDEST=/boot/common/lib \
CPINCDEST=/boot/common/include
fi
cd src
mkdir -p $libDir $includeDir
make install CPLIBDEST=$libDir CPINCDEST=$includeDir
prepareInstalledDevelLib libjgmod
packageEntries devel $developDir
}
PROVIDES_devel="
devel:libjgmod
"
REQUIRES_devel="
jgmod == $portVersion base
"