Libdsk: update to current version and recipe standards

* Release 1.3.3 is not even online anymore on the homepage
* Reorder things in the recipe to match current practises
* Remove libtoolize invokation since it is not needed anymore (upstream
fixed)
* Move tools to a separate package
This commit is contained in:
Adrien Destugues
2015-07-25 11:03:20 +02:00
parent 146f2cc665
commit 5b2ad2f0f4

View File

@@ -1,19 +1,34 @@
SUMMARY="LibDSK is a library for manipulating disk image files"
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.demon.co.uk/Unix/LibDsk/"
SOURCE_URI="http://www.seasip.info/Unix/LibDsk/libdsk-1.3.3.tar.gz"
CHECKSUM_SHA256="a9186b167934ce5b847f74d2389b6c37084761ea255501dab481051336353606"
REVISION="2"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
SOURCE_URI="http://www.seasip.info/Unix/LibDsk/libdsk-$portVersion.tar.gz"
CHECKSUM_SHA256="1472cb30534e3a1b3ac0c2e7e4a00a9c247955af5d407cb95c25391fb61e45d4"
PROVIDES="
libdsk$secondaryArchSuffix = $portVersion
lib:libdsk$secondaryArchSuffix = $portVersion
lib:libdsk$secondaryArchSuffix = 3.3.1 compat >= 3
"
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
PROVIDES_tools="$PROVIDES
cmd:apriboot
cmd:dskdump
cmd:dskform
@@ -23,6 +38,11 @@ PROVIDES="$PROVIDES
cmd:dskutil
cmd:md3serial
"
REQUIRES_tools="
haiku
lib:libdsk
"
fi
PROVIDES_devel="
@@ -36,22 +56,26 @@ REQUIRES_devel="
REQUIRES="
haiku$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
haiku_devel
haiku${secondaryArchSuffix}_devel
cmd:libtoolize
cmd:aclocal
cmd:autoconf
cmd:make
cmd:gcc$secondaryArchSuffix
"
cmd:libtoolize
cmd:make
"
BUILD()
{
# Need to update the libtools in the package to build shared libraries
libtoolize --install --copy --force
autoconf
#aclocal
# libtoolize --install --copy --force
# autoconf
runConfigure ./configure
make $jobArgs
}
@@ -68,20 +92,6 @@ INSTALL()
prepareInstalledDevelLib libdsk
packageEntries devel $developDir
packageEntries tools $binDir
}
COPYRIGHT="2010 John Elliott"
LICENSE="GNU GPL v2"
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.
"