Files
haikuports/sys-block/libusbhxcfe/libusbhxcfe-2.0.0.4.recipe
Jerome Duval dedc2c6324 code style.
2018-08-06 15:08:49 +02:00

63 lines
1.5 KiB
Bash

SUMMARY="CPLD based USB HxC Floppy Emulator HAL library"
DESCRIPTION="The USB HxC floppy emulator is a device that connects to a modern
computer with USB on one side and emulates a Shugart floppy drive on the other
side. It allows transferring files from and to old computers in a simple way
and without using obsolete storage media."
HOMEPAGE="http://hxc2001.com"
COPYRIGHT="2006-2016 JEan-François Del Nero"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/jfdelnero/libusbhxcfe/archive/libusbhxcfe_V2_0_0_4.tar.gz"
CHECKSUM_SHA256="41c16f6539ec6cd6da6c76c94945092d440be4870ff81f308e946e6dfe10e866"
SOURCE_DIR="libusbhxcfe-libusbhxcfe_V2_0_0_4"
PATCHES="libusbhxcfe-2.0.0.4.patchset"
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libusbhxcfe$secondaryArchSuffix = $portVersion
lib:libusbhxcfe$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libsbhxcfe${secondaryArchSuffix}_devel = $portVersion
devel:libusbhxcfe$secondaryArchSuffix
"
REQUIRES_devel="
haiku${secondaryArchSuffix}_devel
libusbhxcfe$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libhxcfe$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc$secondaryArchSuffix
"
BUILD()
{
cd build
make $jobArgs
}
INSTALL()
{
mkdir -p $libDir
mkdir -p $includeDir
cp build/*.so $libDir
cp sources/*.h $includeDir
prepareInstalledDevelLibs \
libusbhxcfe
packageEntries devel \
$developDir
}