diff --git a/KEEP/smu.patch b/KEEP/smu.patch new file mode 100644 index 000000000..7790e2111 --- /dev/null +++ b/KEEP/smu.patch @@ -0,0 +1,11 @@ +--- a/config.mk ++++ b/config.mk +@@ -2,7 +2,7 @@ + VERSION = 1.4 + + # paths +-PREFIX = /usr/local ++PREFIX = / + MANPREFIX = ${PREFIX}/share/man + + # includes and libs diff --git a/pkg/graphite2 b/pkg/graphite2 new file mode 100644 index 000000000..2baaa91ae --- /dev/null +++ b/pkg/graphite2 @@ -0,0 +1,40 @@ +[vars] +filesize=8495904 +sha512=00ec4ec3de02b22aa9a723a5ce529e9e1ed81677627f5101e0d224ea0b0bd1349bc6b4d5d7b1accb5db47f5f53ea823b4217b1784e4b6f647d8f6e987a58f42a + +[mirrors] +http://downloads.sourceforge.net/silgraphite/graphite2-1.3.1.tgz + +[deps] + +[deps.host] +cmake + +[build] +mkdir -p build && cd build +for i in ar ld nm objcopy objdump strip ; do +printf '#!/bin/sh\n%s%s "$@"\n' "$CROSS_COMPILE" "$i" > "$CROSS_COMPILE""$i" +chmod +x "$CROSS_COMPILE""$i" +done +[ -n "$CROSS_COMPILE" ] && xconfflags=" +-DCMAKE_FIND_ROOT_PATH=$butch_root_dir$butch_prefix \ +-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \ +-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ +-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ +-DCMAKE_AR="$CROSS_COMPILE"ar \ +-DCMAKE_LD="$CROSS_COMPILE"ld \ +-DCMAKE_NM="$CROSS_COMPILE"nm \ +-DCMAKE_OBJCOPY="$CROSS_COMPILE"objcopy \ +-DCMAKE_OBJDUMP="$CROSS_COMPILE"objdump \ +-DCMAKE_STRIP="$CROSS_COMPILE"strip \ +" + +CFLAGS="-D_GNU_SOURCE $optcflags" \ +LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \ +CXXFLAGS="$optcflags" \ +cmake $xconfflags \ + -DCMAKE_INSTALL_PREFIX="$butch_prefix" \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ + .. +make -j$MAKE_THREADS VERBOSE=1 +make DESTDIR="$butch_install_dir" install diff --git a/pkg/harfbuzz b/pkg/harfbuzz index f140c7528..089f7e5e1 100644 --- a/pkg/harfbuzz +++ b/pkg/harfbuzz @@ -7,6 +7,8 @@ sha512=9dcc8f5790b78efa14d328e48c68d97f44fce8658fdad9f6d46a79feb715a57903064087d [deps] freetype +icu +graphite2 [build] #patch -p1 < "$K"/some.patch @@ -18,7 +20,8 @@ freetype CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \ LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \ ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags \ - --with-icu=no + --with-icu=yes \ + --with-graphite2=yes #[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir" diff --git a/pkg/smu b/pkg/smu new file mode 100644 index 000000000..9b72867d3 --- /dev/null +++ b/pkg/smu @@ -0,0 +1,20 @@ +[vars] +filesize=9617 +sha512=75f411ff289a30a686ac9d14aab2171d08eef1597b4810bd45b07336273b81a5efe4c8d4fe9a217fb2d063911af001a1f397b64ccad4c65f01f31e2766997b8a +tardir=smu-1.4 +tarball=smu-1.4.tar.gz + +[mirrors] +http://github.com/Gottox/smu/archive/v1.4.tar.gz + +[deps] + +[build] +patch -p1 < "$K"/smu.patch + +[ -n "$CROSS_COMPILE" ] && \ + xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \ + --with-sysroot=$butch_root_dir" + +make V=1 -j$MAKE_THREADS +make DESTDIR="$butch_install_dir" install