diff --git a/common/options.description b/common/options.description index 06360211a2..46e24a140e 100644 --- a/common/options.description +++ b/common/options.description @@ -49,6 +49,7 @@ desc_option_lz4="Enable support for LZ4 compression format" desc_option_lzo="Enable support for LZO compression format" desc_option_microhttpd="Enable support for microhttpd" desc_option_mpcdec="Enable support for the Musepack decoder" +desc_option_native_build="Enable instruction subsets supported by the build computer" desc_option_notify="Enable support for desktop notifications (libnotify)" desc_option_nvenc="Enable support for NVENC codecs" desc_option_openblas="Enable support for OpenBLAS accelerated linear algebra" diff --git a/common/shlibs b/common/shlibs index 548401e239..76a40ce5fe 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3984,6 +3984,7 @@ libpari-gmp.so.7 pari-2.13.0_1 libpari-gmp-tls.so.7 pari-2.13.2_1 libtree-sitter.so.0 tree-sitter-0.19.0_1 libgtkdatabox.so.1 gtkdatabox3-1.0.0_1 +libgf2x.so.3 gf2x-1.3.0_1 libwayland-client++.so.0 libwaylandpp-0.2.8_1 libwayland-cursor++.so.0 libwaylandpp-0.2.8_1 libwayland-egl++.so.0 libwaylandpp-0.2.8_1 diff --git a/srcpkgs/gf2x-devel b/srcpkgs/gf2x-devel new file mode 120000 index 0000000000..4542295e8d --- /dev/null +++ b/srcpkgs/gf2x-devel @@ -0,0 +1 @@ +gf2x \ No newline at end of file diff --git a/srcpkgs/gf2x/template b/srcpkgs/gf2x/template new file mode 100644 index 0000000000..b056ac4f87 --- /dev/null +++ b/srcpkgs/gf2x/template @@ -0,0 +1,35 @@ +# Template file for 'gf2x' +pkgname=gf2x +version=1.3.0 +revision=1 +wrksrc=gf2x-gf2x-${version} +build_style=gnu-configure +hostmakedepends="automake libtool" +short_desc="C/C++ library for fast arithmetic in GF(2)[x]" +maintainer="Gonzalo TornarĂ­a " +license="GPL-3.0-or-later" +homepage="https://gitlab.inria.fr/gf2x/gf2x" +distfiles="https://gitlab.inria.fr/gf2x/gf2x/-/archive/gf2x-${version}/gf2x-gf2x-${version}.tar.gz" +checksum=11bcf98b620c60c2ee3b4460b02b7be741f14cfdc26b542f22c92950926575e0 + +build_options="native_build" + +if [ -z "$build_option_native_build" ]; then + # this disables sse3, ssse3, sse41, pclmul + configure_args="--disable-sse3" +fi + +pre_configure() { + autoreconf -fi +} + +gf2x-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +} diff --git a/srcpkgs/gf2x/update b/srcpkgs/gf2x/update new file mode 100644 index 0000000000..5045036101 --- /dev/null +++ b/srcpkgs/gf2x/update @@ -0,0 +1 @@ +pkgname=gf2x-gf2x