Files
haikuports/app-emulation/libdsk/libdsk-1.5.4.recipe
Adrien Destugues c6f6e1c0e6 fix libdsk provides
2017-07-30 10:01:34 +02:00

98 lines
2.1 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="2"
SOURCE_URI="http://www.seasip.info/Unix/LibDsk/libdsk-$portVersion.tar.gz"
CHECKSUM_SHA256="e1c56f6395a011d508a5e548dcbcadce8ee8cb95740f986d6e8e3695ed59de82"
ARCHITECTURES="x86 x86_gcc2"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
libdsk$secondaryArchSuffix = $portVersion
lib:libdsk$secondaryArchSuffix = 4.3.0 compat >= 4
"
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
}