+autoconf+automake+libjpeg+unicode (#81)

This commit is contained in:
Max Howell 2022-08-17 13:35:41 -04:00 committed by GitHub
parent fe0049b30c
commit ac366df5ec
7 changed files with 130 additions and 0 deletions

View file

@ -0,0 +1,32 @@
distributable:
url: http://ftp.gnu.org/gnu/autoconf/autoconf-{{ version.raw }}.tar.xz
strip-components: 1
versions:
- 2.71
provides:
- bin/autoconf
- bin/autoheader
- bin/autom4te
- bin/autoreconf
- bin/autoscan
- bin/autoupdate
- bin/ifnames
dependencies:
gnu.org/m4: 1
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
perl.org: '*'
script: |-
./configure \
--build={{ hw.target }} \
--prefix="{{ prefix }}"
make --jobs {{ hw.concurrency }} install
test: true #FIXME

View file

@ -0,0 +1,2 @@
bin_PROGRAMS = test
test_SOURCES = test.c

View file

@ -0,0 +1,5 @@
AC_INIT(test, 1.0)
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_CONFIG_FILES(Makefile)
AC_OUTPUT

View file

@ -0,0 +1,39 @@
distributable:
url: http://ftp.gnu.org/gnu/automake/automake-{{ version }}.tar.xz
strip-components: 1
#FIXME: need versions
versions:
- 1.16.5
provides:
- bin/aclocal
- bin/automake
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/autoconf: ^2.65.0
perl.org: '*' #TODO `inherit`
script: |-
./configure \
--build={{ hw.target }} \
--prefix="{{ prefix }}"
make --jobs {{ hw.concurrency }} install
# TODO to prove automake doesn't require autoconf we should
# use “depend” on the autoconf test to generate our `configure` separately
test:
dependencies:
gnu.org/autoconf: ^2.65.0
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
cp ${{ pkg.pantry-prefix }}/* .
aclocal
automake --add-missing --foreign
autoconf
./configure
make
./test

View file

@ -0,0 +1,3 @@
int main() {
return 0;
}

View file

@ -0,0 +1,23 @@
#FIXME
# libjpeg has archaic versioning and we need a mechanism to convert to
# semantic versions with a `versions.ts` script
distributable:
url: http://jpegclub.org/reference/wp-content/uploads/2022/01/jpegsrc.v9e.tar.gz
strip-components: 1
versions:
- 9.5.0
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |-
./configure \
--disable-dependency-tracking \
--disable-silent-rules \
--prefix="{{ prefix }}"
make --jobs {{ hw.concurrency }} install
test: true #FIXME

View file

@ -0,0 +1,26 @@
distributable:
url: https://github.com/unicode-org/icu/releases/download/release-{{version.major}}-{{version.minor}}/icu4c-{{version.major}}_{{version.minor}}-src.tgz
strip-components: 1
versions:
- 71.1.0
#TODO ^^ unicode-org/icu but it's madness
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
working-directory: source
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }}
make install
env:
ARGS:
- --prefix={{prefix}}
- --disable-samples
- --disable-tests
- --enable-static
- --with-library-bits=64
test: true #FIXME