ports: imlib2 xfishtank

This commit is contained in:
Matheus
2024-09-21 20:07:18 -03:00
parent 6d436b1a9a
commit 5df1428050
4 changed files with 54 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
name=imlib2
revision=1
from_source=imlib2
imagedeps="base-devel"
hostdeps="xgcc xbinutils libtool pkgconfig"
deps="base freetype libx11 libice libpng libjpeg-turbo bzip2 zlib libxext"
build() {
${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --disable-static
make -j${parallelism}
}
package() {
make install DESTDIR="${dest_dir}"
}
+21
View File
@@ -0,0 +1,21 @@
name=xfishtank
revision=1
from_source=xfishtank
imagedeps="base-devel imake"
hostdeps="xgcc xbinutils libtool pkgconfig"
deps="base imlib2"
build() {
# the build system sucks, so we will directly call the compiler and ignore it!
cp -rp ${source_dir}/* .
gcc makeh.c -o makeh
./makeh fishmaps/?*.h > xfishy.h
x86_64-astral-gcc -Dlinux -I./fishmaps -lX11 -lImlib2 -lm xfish.c medcut.c -o xfishtank
}
package() {
mkdir -p ${dest_dir}/usr/bin/
cp -v xfishtank ${dest_dir}/usr/bin/xfishtank
}
+9
View File
@@ -0,0 +1,9 @@
name=imlib2
version=1.12.3
source_method=tarball
tarball_url="https://downloads.sourceforge.net/enlightenment/imlib2-${version}.tar.xz"
tarball_sha512=79feea73fb67508ffdce52f8430c2c887b06d8bcb70f6e3bc551c86d521ebf61fc1eff10994b69def4d7a237873f107066aefa367e05b5f89b5d675751d9314f
hostdeps="autoconf automake libtool pkgconfig"
regenerate() {
autoreconf -vfi
}
+9
View File
@@ -0,0 +1,9 @@
name=xfishtank
version=0
source_method=tarball
tarball_url="https://github.com/sydneyjd/xfishtank/archive/63022c8877710cefa7e4815dda8bd6ae50557fb5.tar.gz"
tarball_sha512=1ef1e0b89cc3fbe3d9a246509dac158d1663d784e302be7e3e28baf52205a11d83a5a0b4170ccef1e8befb49e013177a7480b2ae0e87953129b19d75723d0b81
regenerate() {
true
}