|
root / devel
devel Plain Text 858 lines 21.1 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
#!/bin/bash
# Build script for autoconf

set -e
cd "$SRCDIR"

./configure \
    --prefix=$PREFIX

gmake
gmake install DESTDIR="$PKGDIR"
# GNU Autoconf - Automatic configure script builder
# https://www.gnu.org/software/autoconf/

[package]
name = "autoconf"
version = "2.72"
release = 1
description = "Automatic configure script builder"
url = "https://www.gnu.org/software/autoconf/"
license = "GPL-3.0"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []
# Note: Requires perl at runtime, but perl is a system dependency

[[source]]
file = "autoconf-2.72.tar.xz"
urls = ["https://ftp.gnu.org/gnu/autoconf/autoconf-2.72.tar.xz"]
checksum = "ba885c1319578d6c94d46e9b0dceb4014caafe2490e437a0dbca3f270a223f5a"

[build]
parallel = false
#!/bin/bash
# Build script for automake

set -e
cd "$SRCDIR"

./configure \
    --prefix=$PREFIX

gmake
gmake install DESTDIR="$PKGDIR"
# GNU Automake - Makefile generator
# https://www.gnu.org/software/automake/

[package]
name = "automake"
version = "1.17"
release = 1
description = "Automatic Makefile generator"
url = "https://www.gnu.org/software/automake/"
license = "GPL-2.0"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["autoconf"]
build = ["autoconf"]
# Note: Requires perl at runtime, but perl is a system dependency

[[source]]
file = "automake-1.17.tar.xz"
urls = ["https://ftp.gnu.org/gnu/automake/automake-1.17.tar.xz"]
checksum = "8920c1fc411e13b90bf704ef9db6f29d540e76d232cb3b2c9f4dc4cc599bd990"

[build]
parallel = false
#!/bin/bash
# Build script for GNU Binutils

set -e
cd "$SRCDIR"

export PATH="/usr/gnu/bin:$PATH"
export CC="gcc -m64"
export CXX="g++ -m64"
export CFLAGS="-m64 -O2"
export CXXFLAGS="-m64 -O2"
export LDFLAGS="-m64 $LDFLAGS"

# Build in separate directory
mkdir -p build
cd build

../configure \
    --prefix=$PREFIX \
    --libdir=$PREFIX/lib \
    --enable-shared \
    --enable-64-bit-bfd \
    --enable-plugins \
    --enable-threads \
    --disable-werror \
    --with-system-zlib \
    --target=$BUILD_TRIPLE

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# GNU Binutils - Collection of binary tools
# https://www.gnu.org/software/binutils/

[package]
name = "binutils"
version = "2.43.1"
release = 1
description = "GNU assembler, linker and binary utilities"
url = "https://www.gnu.org/software/binutils/"
license = "GPL-3.0-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["zlib"]
build = ["zlib"]

[[source]]
file = "binutils-2.43.1.tar.xz"
urls = [
    "https://ftpmirror.gnu.org/binutils/binutils-2.43.1.tar.xz",
    "https://ftp.gnu.org/gnu/binutils/binutils-2.43.1.tar.xz",
    "https://mirrors.kernel.org/gnu/binutils/binutils-2.43.1.tar.xz"
]
checksum = "13f74202a3c4c51118b797a39ea4200571f4c46be34a35e5cff387a6d6c24e2d"

[build]
parallel = true
#!/bin/bash
# Build script for bison

set -e
cd "$SRCDIR"

./configure \
    --prefix=$PREFIX \
    --libdir=$PREFIX/lib \
    --disable-nls

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
[package]
name = "bison"
version = "3.8.2"
release = 1
description = "GNU parser generator"
url = "https://www.gnu.org/software/bison/"
license = "GPL-3.0-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "bison-3.8.2.tar.xz"
urls = [
    "https://ftpmirror.gnu.org/bison/bison-3.8.2.tar.xz"
]
checksum = "9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2"

[build]
parallel = true
#!/bin/bash
# Build script for cmake

set -e
cd "$SRCDIR"

export PATH="/usr/gnu/bin:$PATH"

# CMake uses its own bootstrap script
# Note: --system-curl removed due to curl 8.x header incompatibility on illumos
# (CURL_NETRC_* defined as long instead of enum)
./bootstrap \
    --prefix=$PREFIX \
    --system-zlib \
    --parallel=${JOBS:-1}

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# CMake - Cross-platform build system
# https://cmake.org/

[package]
name = "cmake"
version = "3.31.4"
release = 1
description = "Cross-platform build system generator"
url = "https://cmake.org/"
license = "BSD-3-Clause"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["curl", "zlib"]
build = ["curl", "zlib"]

[[source]]
file = "cmake-3.31.4.tar.gz"
urls = ["https://github.com/Kitware/CMake/releases/download/v3.31.4/cmake-3.31.4.tar.gz"]
checksum = "a6130bfe75f5ba5c73e672e34359f7c0a1931521957e8393a5c2922c8b0f7f25"

[build]
parallel = true
#!/bin/bash
# Build script for flex

set -e
cd "$SRCDIR"

./configure \
    --prefix=$PREFIX \
    --libdir=$PREFIX/lib \
    --disable-nls

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
[package]
name = "flex"
version = "2.6.4"
release = 1
description = "Fast lexical analyzer generator"
url = "https://github.com/westes/flex"
license = "BSD-2-Clause"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "flex-2.6.4.tar.gz"
urls = [
    "https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz"
]
checksum = "e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995"

[build]
parallel = true
#!/bin/bash
# Build script for GCC

set -e
cd "$SRCDIR"

export PATH="/usr/gnu/bin:$PATH"
export CC="gcc -m64"
export CXX="g++ -m64"
export CFLAGS="-m64 -O2"
export CXXFLAGS="-m64 -O2"
# Note: Don't add -L/usr/lib/amd64 to LDFLAGS - it picks up system's libgcc-unwind.map
export LDFLAGS="-m64 $LDFLAGS"

# GCC must be built in a separate directory
mkdir -p build
cd build

../configure \
    --prefix=$PREFIX \
    --libdir=$PREFIX/lib \
    --libexecdir=$PREFIX/libexec \
    --enable-languages=c,c++ \
    --enable-shared \
    --enable-threads=posix \
    --enable-__cxa_atexit \
    --enable-clocale=gnu \
    --enable-gnu-unique-object \
    --enable-linker-build-id \
    --disable-multilib \
    --disable-werror \
    --disable-bootstrap \
    --disable-libstdcxx-pch \
    --disable-lto \
    --with-gmp=$PREFIX \
    --with-mpfr=$PREFIX \
    --with-mpc=$PREFIX \
    --with-gnu-as \
    --with-gnu-ld \
    --with-system-zlib

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"

# Create cc symlink
ln -sf gcc "$PKGDIR$PREFIX/bin/cc"

# Ensure runtime libraries have .so symlinks without version
cd "$PKGDIR$PREFIX/lib"
[[ -f libstdc++.so.6 ]] && ln -sf libstdc++.so.6 libstdc++.so
[[ -f libgcc_s.so.1 ]] && ln -sf libgcc_s.so.1 libgcc_s.so
[[ -f libatomic.so.1 ]] && ln -sf libatomic.so.1 libatomic.so
# GCC - GNU Compiler Collection
# https://gcc.gnu.org/

[package]
name = "gcc"
version = "14.2.0"
release = 1
description = "GNU Compiler Collection (C, C++)"
url = "https://gcc.gnu.org/"
license = "GPL-3.0-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["gmp", "mpfr", "mpc", "zlib"]
build = ["gmp", "mpfr", "mpc", "zlib", "binutils"]

[[source]]
file = "gcc-14.2.0.tar.xz"
urls = [
    "https://ftpmirror.gnu.org/gcc/gcc-14.2.0/gcc-14.2.0.tar.xz",
    "https://ftp.gnu.org/gnu/gcc/gcc-14.2.0/gcc-14.2.0.tar.xz",
    "https://mirrors.kernel.org/gnu/gcc/gcc-14.2.0/gcc-14.2.0.tar.xz"
]
checksum = "a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9"

[build]
parallel = true
#!/bin/bash
# Build script for GMP

set -e
cd "$SRCDIR"

export PATH="/usr/gnu/bin:$PATH"
export CC="gcc -m64"
export CXX="g++ -m64"
export CFLAGS="-m64 -O2"
export CXXFLAGS="-m64 -O2"

./configure \
    --prefix=$PREFIX \
    --libdir=$PREFIX/lib \
    --enable-cxx \
    --enable-fat

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# GMP - GNU Multiple Precision Arithmetic Library
# https://gmplib.org/

[package]
name = "gmp"
version = "6.3.0"
release = 1
description = "GNU Multiple Precision Arithmetic Library"
url = "https://gmplib.org/"
license = "LGPL-3.0-or-later OR GPL-2.0-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "gmp-6.3.0.tar.xz"
urls = [
    "https://ftpmirror.gnu.org/gmp/gmp-6.3.0.tar.xz",
    "https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz",
    "https://mirrors.kernel.org/gnu/gmp/gmp-6.3.0.tar.xz"
]
checksum = "a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898"

[build]
parallel = true
#!/bin/sh
# Build script for gperf (autotools). No libtool/shared-lib output (gperf
# builds a single static binary tool, not a library) so the Template A
# libtool hammerhead* dynamic-linker sed does not apply here - confirmed
# by grepping the release configure for "libtool" (zero hits).
set -e
cd "$SRCDIR"

export CFLAGS="${CFLAGS} -D__EXTENSIONS__"

./configure \
    --prefix="$PREFIX" \
    --build="$BUILD_TRIPLE" \
    --host="$BUILD_TRIPLE"

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# gperf - perfect hash function generator (fontconfig build dependency)
# https://www.gnu.org/software/gperf/

[package]
name = "gperf"
version = "3.3"
release = 1
description = "Perfect hash function generator"
url = "https://www.gnu.org/software/gperf/"
license = "GPL-3.0-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "gperf-3.3.tar.gz"
urls = ["https://ftp.gnu.org/gnu/gperf/gperf-3.3.tar.gz"]
checksum = "fd87e0aba7e43ae054837afd6cd4db03a3f2693deb3619085e6ed9d8d9604ad8"

[build]
parallel = true
#!/bin/bash
# Build script for libtool

set -e
cd "$SRCDIR"

./configure \
    --prefix=$PREFIX

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# GNU Libtool - Generic library support script
# https://www.gnu.org/software/libtool/

[package]
name = "libtool"
version = "2.4.7"
release = 1
description = "Generic library support script"
url = "https://www.gnu.org/software/libtool/"
license = "GPL-2.0"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "libtool-2.4.7.tar.xz"
urls = ["https://ftp.gnu.org/gnu/libtool/libtool-2.4.7.tar.xz"]
checksum = "4f7f217f057ce655ff22559ad221a0fd8ef84ad1fc5fcb6990cecc333aa1635d"

[build]
parallel = true
#!/bin/zsh
# Build script for GNU make

set -e
cd "$SRCDIR"

./configure \
    --prefix=$PREFIX \
    --build=$BUILD_TRIPLE \
    --disable-nls

# Use system make to bootstrap
make -j${JOBS:-1}
make install DESTDIR="$PKGDIR"

# Install as gmake with make symlink
cd "$PKGDIR$PREFIX/bin"
if [[ -f make && ! -f gmake ]]; then
    mv make gmake
    ln -sf gmake make
fi
# GNU Make - Build automation tool
# https://www.gnu.org/software/make/

[package]
name = "make"
version = "4.4.1"
release = 1
description = "GNU make build automation tool"
url = "https://www.gnu.org/software/make/"
license = "GPL-3.0"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "make-4.4.1.tar.gz"
urls = ["https://ftpmirror.gnu.org/gnu/make/make-4.4.1.tar.gz", "https://ftp.gnu.org/gnu/make/make-4.4.1.tar.gz"]
checksum = "dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3"


[build]
parallel = true
#!/bin/bash
# Build script for Mercurial (CPython application).
# Builds against the `python` zport; installs /usr/local/bin/hg.

set -e
cd "$SRCDIR"

PYTHON="$PREFIX/bin/python3"

# Mercurial's setup.py imports setuptools_scm (only needed for VCS/dev builds);
# a release tarball has __version__ baked in. Patch out the import.
sed -i 's/import setuptools_scm/setuptools_scm = None  # release tarball/' setup.py

# setup.py needs setuptools — Python 3.13's ensurepip ships pip only. pip works
# against the base OpenSSL 3.5, so fetch setuptools from PyPI over HTTPS.
"$PYTHON" -m pip install --quiet setuptools

# Build + install the C extensions and pure-Python modules; hg gets an
# absolute #!$PREFIX/bin/python3 shebang.
"$PYTHON" setup.py build
"$PYTHON" setup.py install --prefix="$PREFIX" --root="$PKGDIR"
# Mercurial - distributed source control (CPython application)
# https://www.mercurial-scm.org/

[package]
name = "mercurial"
version = "7.1.2"
release = 1
description = "Mercurial distributed version control system"
url = "https://www.mercurial-scm.org/"
license = "GPL-2.0-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["python"]
build = ["python"]

[[source]]
file = "mercurial-7.1.2.tar.gz"
urls = ["https://www.mercurial-scm.org/release/mercurial-7.1.2.tar.gz"]
checksum = "ce27b9a4767cf2ea496b51468bae512fa6a6eaf0891e49f8961dc694b4dc81ca"
extract = true

[build]
parallel = false
#!/bin/sh
# Build script for meson (pure-Python package, installed via pip3).
#
# meson is a pure-Python wheel/sdist with no C extension to compile, so
# there is nothing for a "build" step to do beyond letting pip3 stage it
# under $PKGDIR with $PREFIX baked in as the install prefix.
#
# NOTE: meson's pyproject.toml declares `requires = ["setuptools>=42"]` /
# `build-backend = "setuptools.build_meta"`. The Hammerhead python port
# (lang/python) ships only pip via ensurepip -- no setuptools/wheel in
# site-packages -- so --no-build-isolation (as originally sketched in the
# brief) fails hard with `ModuleNotFoundError: No module named 'setuptools'`
# (confirmed on alpha9, 2026-07-22). Fix: do NOT pass --no-build-isolation;
# let pip3 build an ephemeral PEP517 build environment (it fetches
# setuptools from PyPI into a throwaway dir for the build only -- alpha9
# has outbound internet). --no-deps is kept: meson's own runtime deps are
# stdlib-only for our purposes (ninja is invoked as a subprocess build_dep,
# never imported).
set -e
cd "$SRCDIR"

pip3 install --no-deps --prefix="$PREFIX" --root="$PKGDIR" .
# Meson - fast and user friendly build system
# https://mesonbuild.com/

[package]
name = "meson"
version = "1.11.2"
release = 1
description = "Fast and user friendly build system (pure Python)"
url = "https://mesonbuild.com/"
license = "Apache-2.0"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["python"]
build = ["python", "ninja"]

[[source]]
file = "meson-1.11.2.tar.gz"
urls = ["https://github.com/mesonbuild/meson/releases/download/1.11.2/meson-1.11.2.tar.gz"]
checksum = "698feae069cef3ecd4d7aaf281d7df359bdfcf555a9a1564383d3b913fa8a736"

[build]
parallel = false
#!/bin/bash
# Build script for MPC

set -e
cd "$SRCDIR"

export PATH="/usr/gnu/bin:$PATH"
export CC="gcc -m64"
export CXX="g++ -m64"
export CFLAGS="-m64 -O2"
export CXXFLAGS="-m64 -O2"
export LDFLAGS="-L$PREFIX/lib $LDFLAGS"

./configure \
    --prefix=$PREFIX \
    --libdir=$PREFIX/lib \
    --with-gmp=$PREFIX \
    --with-mpfr=$PREFIX

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# MPC - Multiple Precision Complex Library
# https://www.multiprecision.org/mpc/

[package]
name = "mpc"
version = "1.3.1"
release = 1
description = "Multiple Precision Complex Library"
url = "https://www.multiprecision.org/mpc/"
license = "LGPL-3.0-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["gmp", "mpfr"]
build = ["gmp", "mpfr"]

[[source]]
file = "mpc-1.3.1.tar.gz"
urls = [
    "https://ftpmirror.gnu.org/mpc/mpc-1.3.1.tar.gz",
    "https://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz",
    "https://mirrors.kernel.org/gnu/mpc/mpc-1.3.1.tar.gz"
]
checksum = "ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8"

[build]
parallel = true
#!/bin/bash
# Build script for MPFR

set -e
cd "$SRCDIR"

export PATH="/usr/gnu/bin:$PATH"
export CC="gcc -m64"
export CXX="g++ -m64"
export CFLAGS="-m64 -O2"
export CXXFLAGS="-m64 -O2"
export LDFLAGS="-L$PREFIX/lib $LDFLAGS"

./configure \
    --prefix=$PREFIX \
    --libdir=$PREFIX/lib \
    --with-gmp=$PREFIX

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# MPFR - Multiple Precision Floating-Point Reliable Library
# https://www.mpfr.org/

[package]
name = "mpfr"
version = "4.2.1"
release = 1
description = "Multiple Precision Floating-Point Reliable Library"
url = "https://www.mpfr.org/"
license = "LGPL-3.0-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["gmp"]
build = ["gmp"]

[[source]]
file = "mpfr-4.2.1.tar.xz"
urls = [
    "https://ftpmirror.gnu.org/mpfr/mpfr-4.2.1.tar.xz",
    "https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.1.tar.xz",
    "https://mirrors.kernel.org/gnu/mpfr/mpfr-4.2.1.tar.xz"
]
checksum = "277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2"

[build]
parallel = true
#!/bin/sh
# Build script for nasm (autotools, Template A).
set -e
cd "$SRCDIR"

./configure \
    --prefix=$PREFIX \
    --build=$BUILD_TRIPLE \
    --host=$BUILD_TRIPLE

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# NASM - Netwide Assembler
# https://www.nasm.us/

[package]
name = "nasm"
version = "2.16.03"
release = 1
description = "The Netwide Assembler, a portable x86/x86-64 assembler"
url = "https://www.nasm.us/"
license = "BSD-2-Clause"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "nasm-2.16.03.tar.xz"
urls = ["https://www.nasm.us/pub/nasm/releasebuilds/2.16.03/nasm-2.16.03.tar.xz"]
checksum = "1412a1c760bbd05db026b6c0d1657affd6631cd0a63cddb6f73cc6d4aa616148"

[build]
parallel = true
#!/bin/zsh
# Build script for ninja

set -e
cd "$SRCDIR"

cmake -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=$PREFIX \
    -DCMAKE_INSTALL_RPATH=$PREFIX/lib \
    -DBUILD_TESTING=OFF

cmake --build build -j${JOBS:-1}
cmake --install build
# Ninja - Small build system with a focus on speed
# https://ninja-build.org/

[package]
name = "ninja"
version = "1.13.2"
release = 1
description = "Small build system with a focus on speed"
url = "https://ninja-build.org/"
license = "Apache-2.0"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "ninja-1.13.2.tar.gz"
urls = ["https://github.com/ninja-build/ninja/archive/refs/tags/v1.13.2.tar.gz"]
checksum = "974d6b2f4eeefa25625d34da3cb36bdcebe7fbce40f4c16ac0835fd1c0cbae17"

[build]
parallel = true
#!/bin/bash
# Build script for pkgconf

set -e
cd "$SRCDIR"

./configure \
    --prefix=$PREFIX \
    --with-pkg-config-dir=$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig \
    --with-system-libdir=$PREFIX/lib \
    --with-system-includedir=$PREFIX/include

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"

# Create pkg-config symlink for compatibility
ln -sf pkgconf "$PKGDIR$PREFIX/bin/pkg-config"
# pkgconf - Package compiler and linker metadata toolkit
# https://github.com/pkgconf/pkgconf

[package]
name = "pkgconf"
version = "2.3.0"
release = 1
description = "Package compiler and linker metadata toolkit"
url = "https://github.com/pkgconf/pkgconf"
license = "ISC"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "pkgconf-2.3.0.tar.xz"
urls = [
    "https://distfiles.ariadne.space/pkgconf/pkgconf-2.3.0.tar.xz",
    "https://github.com/pkgconf/pkgconf/releases/download/pkgconf-2.3.0/pkgconf-2.3.0.tar.xz"
]
checksum = "3a9080ac51d03615e7c1910a0a2a8df08424892b5f13b0628a204d3fcce0ea8b"

[build]
parallel = true
#!/bin/sh
# Build script for unzip (Info-ZIP hand-rolled unix/Makefile, not
# autotools/cmake/meson). Upstream's own auto-detect step ("flags" target)
# runs a battery of trial one-line compiles with a bare $CC and, on
# Hammerhead's GCC 14 (which makes -Wimplicit-function-declaration a hard
# error by default), every one of those trial compiles fails - so the
# detector falls back to "unavailable" for fchmod/fchown/lchown/
# nl_langinfo/dirent/valloc/etc, which then generates broken substitute
# macros (e.g. redefining opendir()/readdir() in terms of fopen()/fread())
# that don't even compile. Fix: run the "flags" detection step itself with
# -Wno-implicit-function-declaration and -D__EXTENSIONS__ so the trial
# compiles succeed and the real capabilities get detected correctly, then
# build with that same flags file.
set -e
cd "$SRCDIR"

# NOTE: coral runs build.sh under zsh, not /bin/sh despite the shebang -
# zsh's nomatch aborts on a glob with no match (see project gotcha:
# never use bare globs under zsh). find+xargs is glob-match-safe.
find . -maxdepth 1 -name "*.o" -delete
rm -f flags conftest conftest.c unzip funzip unzipsfx zipgrep

gmake -f unix/Makefile flags CC="gcc -Wno-implicit-function-declaration -D__EXTENSIONS__"

eval gmake -f unix/Makefile unzips ACONF_DEP=flags `cat flags`

mkdir -p "$PKGDIR$PREFIX/bin" "$PKGDIR$PREFIX/share/man/man1"
install -m 755 unzip funzip unzipsfx "$PKGDIR$PREFIX/bin/"
[ -f unzip.1 ] && install -m 644 unzip.1 "$PKGDIR$PREFIX/share/man/man1/" || true
[ -f funzip.1 ] && install -m 644 funzip.1 "$PKGDIR$PREFIX/share/man/man1/" || true
# unzip - Info-ZIP unzip (needed: coral's own source-extraction step shells
# out to "unzip" for .zip source archives, e.g. base/dejavu-fonts). No
# unzip binary existed anywhere on Hammerhead prior to this port.
# http://www.info-zip.org/UnZip.html

[package]
name = "unzip"
version = "6.0"
release = 1
description = "Info-ZIP unzip"
url = "http://www.info-zip.org/UnZip.html"
license = "Info-ZIP"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "unzip60.tar.gz"
urls = ["https://downloads.sourceforge.net/project/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz"]
checksum = "036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37"

[build]
parallel = false