Skip to content

Commit ce2e9ef

Browse files
Gnimucgiordano
authored andcommitted
Wizard recipe: libusb-v1.0.23 (#348)
* New Recipe: libusb v1.0.23 * Build on all supported platforms * Update L/libusb/build_tarballs.jl * fix-up * libusb does like FreeBSD * fix-up Co-Authored-By: Mosè Giordano <giordano@users.noreply.github.com> Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
1 parent 9ae952a commit ce2e9ef

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

L/libusb/build_tarballs.jl

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Note that this script can accept some limited command-line arguments, run
2+
# `julia build_tarballs.jl --help` to see a usage message.
3+
using BinaryBuilder
4+
5+
name = "libusb"
6+
version = v"1.0.23"
7+
8+
# Collection of sources required to complete build
9+
sources = [
10+
"https://github.com/libusb/libusb.git" =>
11+
"e782eeb2514266f6738e242cdcb18e3ae1ed06fa",
12+
13+
]
14+
15+
# Bash recipe for building across all platforms
16+
script = raw"""
17+
cd $WORKSPACE/srcdir
18+
cd libusb/
19+
./bootstrap.sh
20+
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} --disable-udev
21+
make -j${nproc}
22+
make install
23+
install_license COPYING
24+
"""
25+
26+
# These are the platforms we will build for by default, unless further
27+
# platforms are passed in on the command line
28+
platforms = [p for p in supported_platforms() if !isa(p, FreeBSD)]
29+
30+
# The products that we will ensure are always built
31+
products = [
32+
LibraryProduct(["libusb", "libusb-1", "libusb-1.0"], :libusb)
33+
]
34+
35+
# Dependencies that must be installed before this package can be built
36+
dependencies = [
37+
38+
]
39+
40+
# Build the tarballs, and possibly a `build.jl` as well.
41+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)

0 commit comments

Comments
 (0)