gnuplot: fix cross build.
This is quite ugly, but I don't have a better idea.
This commit is contained in:
parent
24c36594d1
commit
95ea2d2b0e
1 changed files with 7 additions and 4 deletions
|
@ -3,7 +3,7 @@ pkgname=gnuplot
|
|||
version=5.0.2
|
||||
revision=1
|
||||
configure_args="--with-readline=builtin"
|
||||
hostmakedepends="pkg-config"
|
||||
hostmakedepends="pkg-config lua52"
|
||||
makedepends="zlib-devel libX11-devel gd-devel lua52-devel"
|
||||
depends="gnuplot-common>=${version}_${revision}"
|
||||
replaces="gnuplot<4.6.6_1"
|
||||
|
@ -32,7 +32,7 @@ pre_configure() {
|
|||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
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
|
||||
|
||||
mkdir -p x11
|
||||
|
@ -63,8 +63,6 @@ do_build() {
|
|||
if [ -z "$CROSS_BUILD" ]; then
|
||||
make -C wx ${makejobs}
|
||||
make -C qt ${makejobs}
|
||||
else
|
||||
make -C x11/docs CC=gcc
|
||||
fi
|
||||
make -C x11 ${makejobs}
|
||||
}
|
||||
|
@ -79,6 +77,11 @@ do_install() {
|
|||
mv ${DESTDIR}/usr/bin/gnuplot{,-qt}
|
||||
# install wx
|
||||
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
|
||||
vlicense x11/Copyright LICENSE
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue