gnuplot: fix cross build.

This is quite ugly, but I don't have a better idea.
This commit is contained in:
Christian Neukirchen 2016-01-04 16:44:43 +01:00
parent 24c36594d1
commit 95ea2d2b0e
1 changed files with 7 additions and 4 deletions

View File

@ -3,7 +3,7 @@ pkgname=gnuplot
version=5.0.2 version=5.0.2
revision=1 revision=1
configure_args="--with-readline=builtin" configure_args="--with-readline=builtin"
hostmakedepends="pkg-config" hostmakedepends="pkg-config lua52"
makedepends="zlib-devel libX11-devel gd-devel lua52-devel" makedepends="zlib-devel libX11-devel gd-devel lua52-devel"
depends="gnuplot-common>=${version}_${revision}" depends="gnuplot-common>=${version}_${revision}"
replaces="gnuplot<4.6.6_1" replaces="gnuplot<4.6.6_1"
@ -32,7 +32,7 @@ pre_configure() {
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
sed -i 's|^\(SUBDIRS =.*\)demo |\1|' Makefile.in sed -i 's|^\(SUBDIRS =.*\)demo |\1|' Makefile.in
sed -i 's|^\(CFLAGS =\).*|\1 -O0|' docs/Makefile.in sed -i 's|^\(SUBDIRS =.*\)docs |\1|' Makefile.in
fi fi
mkdir -p x11 mkdir -p x11
@ -63,8 +63,6 @@ do_build() {
if [ -z "$CROSS_BUILD" ]; then if [ -z "$CROSS_BUILD" ]; then
make -C wx ${makejobs} make -C wx ${makejobs}
make -C qt ${makejobs} make -C qt ${makejobs}
else
make -C x11/docs CC=gcc
fi fi
make -C x11 ${makejobs} make -C x11 ${makejobs}
} }
@ -79,6 +77,11 @@ do_install() {
mv ${DESTDIR}/usr/bin/gnuplot{,-qt} mv ${DESTDIR}/usr/bin/gnuplot{,-qt}
# install wx # install wx
make -C wx DESTDIR=${DESTDIR} install make -C wx DESTDIR=${DESTDIR} install
else
find -name '*.o' -delete
make -C x11/docs DESTDIR=${DESTDIR} \
CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" \
LDFLAGS="$BUILD_LDFLAGS" install
fi fi
vlicense x11/Copyright LICENSE vlicense x11/Copyright LICENSE
} }