summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-10-22 18:26:51 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-10-22 18:26:51 +0200
commit2b52e67da00817f93884a344a9a8b7e2c585fc8c (patch)
treecaa9c494197016efa62412c2483e36f011b2d392 /scripts
parente8f74f7222ddc977bf775e31101980b9311b7200 (diff)
parent48b18373159b70caca3f41643804c549552d66f4 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/adkprepare.sh35
-rw-r--r--scripts/scan-pkgs.sh13
-rwxr-xr-xscripts/tar9
3 files changed, 52 insertions, 5 deletions
diff --git a/scripts/adkprepare.sh b/scripts/adkprepare.sh
index 96d8f4303..ff0ecfaf7 100755
--- a/scripts/adkprepare.sh
+++ b/scripts/adkprepare.sh
@@ -7,10 +7,11 @@ ver=$(uname -r)
arch=$(uname -m)
ext=0
-while getopts "e" option
+while getopts "el" option
do
case $option in
e) ext=1 ;;
+ l) lux=1 ;;
*) printf "Option not recognized\n";exit 1 ;;
esac
done
@@ -49,12 +50,19 @@ openbsd_full() {
pkg_add -v m4
pkg_add -v autoconf-2.62p0
pkg_add -v gperf
- pkg_add -v python-2.6.3p1
+ pkg_add -v python-2.6.6p0
+}
+
+openbsd_lux() {
+ PKG_PATH="ftp://ftp.openbsd.org/pub/OpenBSD/${ver}/packages/${arch}/"
+ export PKG_PATH
+ pkg_add -v screen--
+ pkg_add -v vim--no_x11
}
netbsd() {
echo "Preparing NetBSD for OpenADK"
- PKG_PATH="ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/${arch}/5.0/All/"
+ PKG_PATH="ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/${arch}/${ver}/All/"
export PKG_PATH
pkg_add -vu xz
pkg_add -vu scmgit
@@ -71,7 +79,7 @@ netbsd() {
netbsd_full() {
echo "Preparing NetBSD for full OpenADK package builds"
- PKG_PATH="ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/${arch}/5.0/All/"
+ PKG_PATH="ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/${arch}/${ver}/All/"
export PKG_PATH
pkg_add -vu intltool
pkg_add -vu lynx
@@ -82,6 +90,15 @@ netbsd_full() {
pkg_add -vu python26
}
+netbsd_lux() {
+ echo "Preparing NetBSD for deluxe OpenADK package builds"
+ PKG_PATH="ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/${arch}/${ver}/All/"
+ export PKG_PATH
+ pkg_add -vu vim
+ pkg_add -vu screen
+ pkg_add -vu mksh
+}
+
freebsd() {
echo "Preparing FreeBSD for OpenADK"
pkg_add -r git gmake bash wget unzip gtar gsed gawk gperf
@@ -89,7 +106,12 @@ freebsd() {
freebsd_full() {
echo "Preparing FreeBSD for full OpenADK package builds"
- pkg_add -r intltool lynx bison zip xkbcomp glib20 libIDL autoconf262
+ pkg_add -r intltool lynx bison zip xkbcomp glib20 libIDL autoconf268 libxslt automake14 swig
+}
+
+freebsd_lux() {
+ echo "Preparing FreeBSD for deluxe OpenADK package builds"
+ pkg_add -r screen mksh vim
}
case $os in
@@ -100,14 +122,17 @@ case $os in
FreeBSD)
freebsd
[ $ext -eq 1 ] && freebsd_full
+ [ $lux -eq 1 ] && freebsd_lux
;;
OpenBSD)
openbsd
[ $ext -eq 1 ] && openbsd_full
+ [ $lux -eq 1 ] && openbsd_lux
;;
NetBSD)
netbsd
[ $ext -eq 1 ] && netbsd_full
+ [ $lux -eq 1 ] && netbsd_lux
;;
Darwin)
darwin
diff --git a/scripts/scan-pkgs.sh b/scripts/scan-pkgs.sh
index 0bf8f5808..67703df58 100644
--- a/scripts/scan-pkgs.sh
+++ b/scripts/scan-pkgs.sh
@@ -61,6 +61,10 @@ if [[ -n $ADK_NATIVE ]];then
fi
fi
+if [[ -n $ADK_PACKAGE_LIBX11 ]]; then
+ NEED_X11="$NEED_X11 libx11"
+fi
+
if [[ -n $ADK_PACKAGE_GPSD ]]; then
NEED_PYTHON="$NEED_PYTHON gpsd"
fi
@@ -236,6 +240,15 @@ if [[ -n $NEED_X11DEV ]];then
fi
fi
+if [[ -n $NEED_X11 ]];then
+ if ! test -f /usr/include/X11/X.h >/dev/null; then
+ if ! test -f /usr/local/include/X11/X.h >/dev/null; then
+ echo >&2 You need X11 headers to build $NEED_X11
+ out=1
+ fi
+ fi
+fi
+
if [[ -n $NEED_XEXTDEV ]];then
if ! test -f /usr/include/X11/extensions/XShm.h >/dev/null; then
echo >&2 You need X11 extensions headers to build $NEED_XEXTDEV
diff --git a/scripts/tar b/scripts/tar
new file mode 100755
index 000000000..60c5057da
--- /dev/null
+++ b/scripts/tar
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+if [ -z "$(which gtar 2>/dev/null)" ];then
+ /bin/tar "$@"
+else
+ gtar "$@"
+fi