58 lines
998 B
Bash
58 lines
998 B
Bash
|
version=\
|
||
|
(
|
||
|
"4.6.1"
|
||
|
)
|
||
|
|
||
|
url=\
|
||
|
(
|
||
|
"ftp://ftp.dante.de/pub/tex/graphics/gnuplot/${version}/gnuplot-${version}.tar.gz"
|
||
|
)
|
||
|
|
||
|
md5=\
|
||
|
(
|
||
|
"4c9a06461f402482c30cf94e267eb877"
|
||
|
)
|
||
|
|
||
|
configure()
|
||
|
{
|
||
|
./configure \
|
||
|
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||
|
--target="$cfg_target_canonical" \
|
||
|
--host="$cfg_target_canonical" \
|
||
|
--build="$cfg_host_canonical" \
|
||
|
--disable-history-file \
|
||
|
--without-x \
|
||
|
--disable-raise-console \
|
||
|
--disable-mouse \
|
||
|
--without-tutorial \
|
||
|
--without-demo \
|
||
|
--disable-demo \
|
||
|
--without-row-help \
|
||
|
--disable-history-file \
|
||
|
--without-lisp-files \
|
||
|
--disable-wxwidgets \
|
||
|
--without-lua \
|
||
|
--without-latex \
|
||
|
--without-cairo
|
||
|
|
||
|
sed -i "s#demo ##g" Makefile
|
||
|
}
|
||
|
|
||
|
build()
|
||
|
{
|
||
|
$cmd_make
|
||
|
}
|
||
|
|
||
|
host_install()
|
||
|
{
|
||
|
$cmd_make install
|
||
|
}
|
||
|
|
||
|
target_install()
|
||
|
{
|
||
|
$cmd_target_strip -v "$cfg_dir_toolchain_sysroot/usr/bin/gnuplot" -o "$cfg_dir_rootfs/usr/bin/gnuplot"
|
||
|
$cmd_cp "$cfg_dir_toolchain_sysroot/usr/share/gnuplot" "$cfg_dir_rootfs/usr/share"
|
||
|
}
|
||
|
|
||
|
|