Skip to content

Commit 3759326

Browse files
jstrubegiordano
andcommitted
Wizard recipe: Xorg_libXpm-v3.5.13 (#341)
* New Recipe: Xorg_libXpm v3.5.13 * make platforms consistent with other xorg recipes * [Xorg_libXpm] Install native xgettext Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
1 parent 71e20c0 commit 3759326

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

X/Xorg_libXpm/build_tarballs.jl

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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, Pkg
4+
5+
name = "Xorg_libXpm"
6+
version = v"3.5.13"
7+
8+
# Collection of sources required to complete build
9+
sources = [
10+
"https://www.x.org/archive/individual/lib/libXpm-$(version).tar.bz2" =>
11+
"9cd1da57588b6cb71450eff2273ef6b657537a9ac4d02d0014228845b935ac25",
12+
]
13+
14+
# Bash recipe for building across all platforms
15+
script = raw"""
16+
cd $WORKSPACE/srcdir/libXpm-*/
17+
# We need a native xgettext
18+
apk add gettext
19+
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target}
20+
make -j${nproc}
21+
make install
22+
"""
23+
24+
# These are the platforms we will build for by default, unless further
25+
# platforms are passed in on the command line
26+
platforms = [p for p in supported_platforms() if p isa Union{Linux,FreeBSD}]
27+
28+
# The products that we will ensure are always built
29+
products = [
30+
LibraryProduct("libXpm", :libXpm)
31+
]
32+
33+
# Dependencies that must be installed before this package can be built
34+
dependencies = [
35+
PackageSpec(name="X11_jll", uuid="546b0b6d-9ca3-5ba2-8705-1bc1841d8479")
36+
PackageSpec(name="Xorg_xproto_jll", uuid="46797783-dccc-5433-be59-056c4bde8513")
37+
PackageSpec(name="Gettext_jll", uuid="78b55507-aeef-58d4-861c-77aaff3498b1")
38+
]
39+
40+
# Build the tarballs, and possibly a `build.jl` as well.
41+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)
42+

0 commit comments

Comments
 (0)