From 72756d18126d2491aecdcc27b509dc2223a69e99 Mon Sep 17 00:00:00 2001 From: kurth4cker Date: Fri, 25 Nov 2022 13:29:11 +0300 Subject: [PATCH] add elfutils, m4 --- dev/libs/elfutils/ympbuild | 48 ++++++++++++++++++++++++++++++++++++++ sys/devel/m4/ympbuild | 35 +++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 dev/libs/elfutils/ympbuild create mode 100644 sys/devel/m4/ympbuild diff --git a/dev/libs/elfutils/ympbuild b/dev/libs/elfutils/ympbuild new file mode 100644 index 00000000..3c5bcfd3 --- /dev/null +++ b/dev/libs/elfutils/ympbuild @@ -0,0 +1,48 @@ +#!/usr/bin/env bash +name='elfutils' +release='1' +version='0.188' +url='https://sourceware.org/elfutils/' +description='Libraries/utilities to handle ELF objects (drop in replacement for libelf)' +email='kurth4cker@tutanota.com' +maintainer='kurth4cker' +license=('GPLv3' 'GPLv2' 'LGPLv3') +source=("https://sourceware.org/elfutils/ftp/${version}/elfutils-${version}.tar.bz2") +depends=( ) +makedepends=( ) +md5sums=('efb25a91873b2eec4df9f31e6a4f4e5c') +uses=(bzip2 lzma nls) +uses_extra=(zstd) +arch=('x86_64') +group=(dev.libs) +bzip2_depends=(bzip2) +lzma_depends=(xz-utils) +nls_depends=(gettext) +zstd_depends=(zstd) + +cd $name-$version + +setup(){ + ./configure --prefix=/usr \ + --libdir=/usr/lib64 \ + --enable-shared \ + --enable-static \ + --disable-debuginfod \ + --disable-libdebuginfod \ + --disable-thread-safety \ + --disable-valgrind \ + $(use_opt nls --enable-nls --disable-nls) \ + --program-prefix="eu-" \ + $(use_opt bzip2 --with-bzlib --without-bzlib) \ + $(use_opt lzma --with-lzma --without-lzma) \ + $(use_opt zstd --with-zstd --without-zstd) +} + +build(){ + make -j`nproc` +} + +package(){ + make install -j`nproc` +} + diff --git a/sys/devel/m4/ympbuild b/sys/devel/m4/ympbuild new file mode 100644 index 00000000..bf4ef7bf --- /dev/null +++ b/sys/devel/m4/ympbuild @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +name='m4' +release='1' +version='1.4.19' +url='https://gnu.org/software/m4' +description='GNU macro processor' +email='kurth4cker@tutanota.com' +maintainer='kurth4cker' +license=('GPLv3') +source=('https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz') +depends=( ) +makedepends=( ) +md5sums=('0d90823e1426f1da2fd872df0311298d') +uses=(nls) +nls_depends=(gettext) +arch=('x86_64') +group=(sys.devel) + +cd $name-$version + +setup(){ + ./configure --prefix=/usr \ + --libdir=/usr/lib64 \ + --enable-changeword \ + $(use_opt nls --enable-nls --disable-nls) +} + +build(){ + make -j`nproc` +} + +package(){ + make install -j`nproc` +} +