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
}