libusbhxcfe-2.0.0.4.recipe revision 1e17abb3
1SUMMARY="CPLD based USB HxC Floppy Emulator HAL library"
2DESCRIPTION="The USB HxC floppy emulator is a device that connects to a modern
3computer with USB on one side and emulates a Shugart floppy drive on the other
4side. It allows transferring files from and to old computers in a simple way
5and without using obsolete storage media."
6HOMEPAGE="http://hxc2001.com"
7COPYRIGHT="2006-2016 JEan-Fran��ois Del Nero"
8LICENSE="GNU GPL v3"
9REVISION="2"
10SOURCE_URI="https://github.com/jfdelnero/libusbhxcfe/archive/libusbhxcfe_V2_0_0_4.tar.gz"
11CHECKSUM_SHA256="41c16f6539ec6cd6da6c76c94945092d440be4870ff81f308e946e6dfe10e866"
12SOURCE_DIR="libusbhxcfe-libusbhxcfe_V2_0_0_4"
13PATCHES="libusbhxcfe-2.0.0.4.patchset"
14
15ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
16SECONDARY_ARCHITECTURES="x86"
17
18PROVIDES="
19	libusbhxcfe$secondaryArchSuffix = $portVersion
20	lib:libusbhxcfe$secondaryArchSuffix
21	"
22REQUIRES="
23	haiku$secondaryArchSuffix
24	"
25
26PROVIDES_devel="
27	libusbhxcfe${secondaryArchSuffix}_devel = $portVersion
28	devel:libusbhxcfe$secondaryArchSuffix
29	"
30REQUIRES_devel="
31	haiku${secondaryArchSuffix}_devel
32	libusbhxcfe$secondaryArchSuffix == $portVersion base
33	"
34
35BUILD_REQUIRES="
36	haiku${secondaryArchSuffix}_devel
37	devel:libhxcfe$secondaryArchSuffix
38	"
39BUILD_PREREQUIRES="
40	cmd:make
41	cmd:gcc$secondaryArchSuffix
42	"
43
44BUILD()
45{
46	cd build
47	make $jobArgs
48}
49
50INSTALL()
51{
52	mkdir -p $libDir
53	mkdir -p $includeDir
54
55	cp build/*.so $libDir
56	cp sources/*.h $includeDir
57
58	prepareInstalledDevelLibs \
59		libusbhxcfe
60	packageEntries devel \
61		$developDir
62}
63