2019-04-28 12:39:26 +00:00
|
|
|
SUMMARY="A framework to make 2D games in Lua"
|
|
|
|
DESCRIPTION="LÖVE is a framework to make 2D games in Lua.
|
|
|
|
It's free, open-source, and works also on Windows, Mac OS X and Linux."
|
|
|
|
HOMEPAGE="http://love2d.org/"
|
2021-11-15 15:36:54 +00:00
|
|
|
COPYRIGHT="2010-2019 Löve"
|
2019-04-28 12:39:26 +00:00
|
|
|
LICENSE="Zlib"
|
2021-11-15 15:36:54 +00:00
|
|
|
REVISION="1"
|
|
|
|
SOURCE_URI="https://github.com/love2d/love/releases/download/${portVersion}/love-${portVersion}-linux-src.tar.gz"
|
|
|
|
CHECKSUM_SHA256="649f0db7750ca121e4de7b60208703661052356df35f4cfad490b1ba14dd1455"
|
2019-04-28 12:39:26 +00:00
|
|
|
PATCHES="love-$portVersion.patchset"
|
2021-11-15 15:36:54 +00:00
|
|
|
ADDITIONAL_FILES="love.rdef.in
|
|
|
|
x-love-game.rsrc"
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
2019-04-28 12:39:26 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
love$secondaryArchSuffix = $portVersion
|
|
|
|
cmd:love$secondaryArchSuffix = $portVersion
|
2021-11-15 15:36:54 +00:00
|
|
|
lib:liblove_${portVersion}$secondaryArchSuffix = $portVersion
|
2019-04-28 12:39:26 +00:00
|
|
|
"
|
|
|
|
REQUIRES="
|
|
|
|
haiku$secondaryArchSuffix
|
|
|
|
lib:libbz2$secondaryArchSuffix
|
|
|
|
lib:libfreetype$secondaryArchSuffix
|
|
|
|
lib:libGL$secondaryArchSuffix
|
|
|
|
lib:libIL$secondaryArchSuffix
|
|
|
|
lib:libjasper$secondaryArchSuffix
|
|
|
|
lib:libjpeg$secondaryArchSuffix
|
|
|
|
lib:libluajit_5.1$secondaryArchSuffix
|
|
|
|
lib:libmng$secondaryArchSuffix
|
|
|
|
lib:libmodplug$secondaryArchSuffix
|
|
|
|
lib:libmpg123$secondaryArchSuffix
|
|
|
|
lib:libogg$secondaryArchSuffix
|
|
|
|
lib:libopenal$secondaryArchSuffix
|
|
|
|
lib:libphysfs$secondaryArchSuffix
|
|
|
|
lib:libpng16$secondaryArchSuffix
|
|
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
|
|
lib:libtheora$secondaryArchSuffix
|
|
|
|
lib:libtiff$secondaryArchSuffix
|
|
|
|
lib:libvorbis$secondaryArchSuffix
|
|
|
|
lib:libvorbisfile$secondaryArchSuffix
|
|
|
|
lib:libz$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
PROVIDES_devel="
|
|
|
|
love${secondaryArchSuffix}_devel = $portVersion
|
|
|
|
devel:liblove$secondaryArchSuffix = $portVersion
|
2021-11-15 15:36:54 +00:00
|
|
|
devel:liblove_${portVersion}$secondaryArchSuffix = $portVersion
|
2019-04-28 12:39:26 +00:00
|
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
|
|
love$secondaryArchSuffix == $portVersion base
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
|
|
|
devel:libbz2$secondaryArchSuffix
|
|
|
|
devel:libfreetype$secondaryArchSuffix
|
|
|
|
devel:libGL$secondaryArchSuffix
|
|
|
|
devel:libIL$secondaryArchSuffix
|
|
|
|
devel:libjasper$secondaryArchSuffix
|
|
|
|
devel:libjpeg$secondaryArchSuffix
|
|
|
|
devel:libluajit_5.1$secondaryArchSuffix
|
|
|
|
devel:libmng$secondaryArchSuffix
|
|
|
|
devel:libmodplug$secondaryArchSuffix
|
|
|
|
devel:libmpg123$secondaryArchSuffix
|
|
|
|
devel:libogg$secondaryArchSuffix
|
|
|
|
devel:libopenal$secondaryArchSuffix
|
|
|
|
devel:libphysfs$secondaryArchSuffix
|
|
|
|
devel:libpng16$secondaryArchSuffix
|
|
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
|
|
devel:libtheora$secondaryArchSuffix
|
|
|
|
devel:libtiff$secondaryArchSuffix
|
|
|
|
devel:libvorbis$secondaryArchSuffix
|
|
|
|
devel:libvorbisfile$secondaryArchSuffix
|
|
|
|
devel:libz$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
2021-02-14 11:48:14 +00:00
|
|
|
cmd:aclocal
|
|
|
|
cmd:autoconf
|
|
|
|
cmd:automake
|
2019-04-28 12:39:26 +00:00
|
|
|
cmd:awk
|
|
|
|
cmd:cmp
|
|
|
|
cmd:dd
|
|
|
|
cmd:diff
|
|
|
|
cmd:gcc$secondaryArchSuffix
|
|
|
|
cmd:ld$secondaryArchSuffix
|
2021-02-14 11:48:14 +00:00
|
|
|
cmd:libtoolize$secondaryArchSuffix
|
2019-04-28 12:39:26 +00:00
|
|
|
cmd:make
|
|
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
{
|
2021-02-14 11:48:14 +00:00
|
|
|
autoreconf -fi
|
2019-04-28 12:39:26 +00:00
|
|
|
runConfigure ./configure
|
|
|
|
|
|
|
|
make $jobArgs
|
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
|
|
|
make install
|
|
|
|
|
|
|
|
# remove libtool file *.la
|
|
|
|
rm -f $libDir/*.la
|
|
|
|
|
|
|
|
# remove not relevant files
|
2021-11-15 15:36:54 +00:00
|
|
|
rm -rf $dataDir/{applications,icons,pixmaps,mime}
|
|
|
|
|
|
|
|
# copy mimetype rsrc for love2d games
|
|
|
|
mkdir -p $dataDir/mime_db/application/
|
|
|
|
resattr -o $dataDir/mime_db/application/x-love-game $portDir/additional-files/x-love-game.rsrc
|
|
|
|
|
2019-04-28 12:39:26 +00:00
|
|
|
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
|
|
local MINOR="0"
|
|
|
|
sed \
|
|
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
|
|
$portDir/additional-files/love.rdef.in > love.rdef
|
|
|
|
|
|
|
|
addResourcesToBinaries love.rdef $binDir/love
|
|
|
|
|
2021-11-15 15:36:54 +00:00
|
|
|
prepareInstalledDevelLibs liblove-${portVersion} liblove
|
2019-04-28 12:39:26 +00:00
|
|
|
|
|
|
|
packageEntries devel \
|
|
|
|
$developDir
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST()
|
|
|
|
{
|
|
|
|
make test
|
|
|
|
}
|