Files
haikuports/app-emulation/libdsk/libdsk-1.5.4.recipe
Adrien Destugues 120fb9eb8e libdsk: update to 1.5.4.
1.5.0 is gone from the upstream website.
2017-05-10 20:31:43 +02:00

98 lines
2.0 KiB
Bash

SUMMARY="A library for manipulating disk image files"
DESCRIPTION="LIBDSK is a library for accessing discs and disc image files. \
It is intended for use in:
* Emulator tools - converting between real floppy discs and disc images, as \
CPCTRANS / PCWTRANS do under DOS.
* Filesystem utilities - CPMTOOLS is configurable to use LIBDSK, thus allowing \
the use of CPMTOOLS on emulator .DSK images. To do this, install LIBDSK and \
then build CPMTOOLS, using \"./configure --with-libdsk\". For CPMTOOLS 1.9 or \
2.0, you will also need to apply this patch.
* Emulators - it is possible to use LIBDSK as part of an emulator's floppy \
controller emulation, thus giving the emulator transparent access to .DSK \
files or real discs.
"
COPYRIGHT="2010-2015 John Elliott"
LICENSE="GNU GPL v2"
HOMEPAGE="http://www.seasip.info/Unix/LibDsk/"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
SOURCE_URI="http://www.seasip.info/Unix/LibDsk/libdsk-$portVersion.tar.gz"
PROVIDES="
libdsk$secondaryArchSuffix = $portVersion
lib:libdsk$secondaryArchSuffix = 3.3.1 compat >= 3
"
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES_tools="$PROVIDES
cmd:apriboot
cmd:dskconv
cmd:dskdump
cmd:dskform
cmd:dskid
cmd:dskscan
cmd:dsktrans
cmd:dskutil
cmd:md3serial
"
REQUIRES_tools="
haiku
lib:libdsk
"
fi
PROVIDES_devel="
devel:libdsk$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
libdsk$secondaryArchSuffix == $portVersion base
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:libtoolize
cmd:make
"
BUILD()
{
# aclocal
# libtoolize --install --copy --force
# autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
# remove command for secondary architecture
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $binDir
fi
prepareInstalledDevelLib libdsk
packageEntries devel $developDir
if [ -z "$secondaryArchSuffix" ]; then
packageEntries tools $binDir
fi
}