parent
9b661aaa04
commit
1f3adc7459
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'tesseract'
|
# Template file for 'tesseract'
|
||||||
pkgname=tesseract
|
pkgname=tesseract
|
||||||
version=1
|
version=1
|
||||||
revision=3
|
revision=4
|
||||||
wrksrc="$pkgname"
|
wrksrc="$pkgname"
|
||||||
hostmakedepends="pkg-config ImageMagick"
|
hostmakedepends="pkg-config ImageMagick"
|
||||||
makedepends="SDL2_image-devel SDL2_mixer-devel MesaLib-devel libpng-devel zlib-devel"
|
makedepends="SDL2_image-devel SDL2_mixer-devel MesaLib-devel libpng-devel zlib-devel"
|
||||||
|
@ -17,6 +17,11 @@ pre_build() {
|
||||||
for dim in 16 32 48 64 128 256 512; do
|
for dim in 16 32 48 64 128 256 512; do
|
||||||
convert -resize "${dim}x${dim}" media/interface/cube.png "${pkgname}${dim}.png"
|
convert -resize "${dim}x${dim}" media/interface/cube.png "${pkgname}${dim}.png"
|
||||||
done
|
done
|
||||||
|
sed -i src/Makefile \
|
||||||
|
-e"s;-o tess_client;${LDFLAGS} &;" \
|
||||||
|
-e"s;-o tess_server;${LDFLAGS} &;"
|
||||||
|
sed -i src/enet/Makefile \
|
||||||
|
-e"s;^\(CFLAGS=\).*;\1${CFLAGS};"
|
||||||
}
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
make ${makejobs} -C src CXXFLAGS="${CXXFLAGS} -fomit-frame-pointer -ffast-math"
|
make ${makejobs} -C src CXXFLAGS="${CXXFLAGS} -fomit-frame-pointer -ffast-math"
|
||||||
|
|
Loading…
Reference in a new issue