Ignore:
Timestamp:
Sep 18, 2011 4:56:10 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
f2fe514
Parents:
2461b95
Message:

NetBSD support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/c/jbigi/mbuild-all.sh

    r2461b95 r2261039  
    1 #/bin/bash
     1#!/usr/bin/env bash
    22
    33#FIXME What platforms for MacOS?
     
    88
    99#
    10 # If you know of other platforms i2p on linux works on, 
     10# If you know of other platforms i2p on linux works on,
    1111# please add them here.
    1212# Do NOT add any X86 platforms, do that below in the x86 platform list.
     
    1515
    1616#
    17 # If you know of other platforms i2p on FREEBSD works on, 
     17# If you know of other platforms i2p on FREEBSD works on,
    1818# please add them here.
    1919# Do NOT add any X86 platforms, do that below in the x86 platform list.
    2020#
    2121MISC_FREEBSD_PLATFORMS="alphaev56 ultrasparc2i"
     22MISC_NETBSD_PLATFORMS="powerpc powerpc64 powerpc64le powerpcle m68k-atari amiga m68knommu"
    2223
    2324#
     
    4445LINUX_PLATFORMS="${X86_PLATFORMS} ${MISC_LINUX_PLATFORMS}"
    4546FREEBSD_PLATFORMS="${X86_PLATFORMS} ${MISC_FREEBSD_PLATFORMS}"
     47NETBSD_PLATFORMS="${FREEBSD_PLATFORMS} ${LINUX_PLATFORMS} ${MISC_NETBSD_PLATFORMS}"
    4648DARWIN_PLATFORMS="core2 corei"
    4749
    48 # Set the version to 5.0.2 for OSX because 
     50# Set the version to 5.0.2 for OSX because
    4951# 1) it doesn't have the -r parameter as an option for sed
    5052# 2) AFAIK there are only 64bit capable CPUs for the Intel Macs
     
    5557fi
    5658
    57 if [ "$VER" == "" ] ; then
     59if [ "$VER" = "" ] ; then
    5860        echo "ERROR! Can't find gmp source tarball."
    5961        exit 1
     
    98100        esac
    99101        echo "Building ${TARGET} .so's for ${arch}";;
     102NetBSD*)
     103        PLATFORM_LIST="${NETBSD_PLATFORMS}"
     104        NAME="libjbigi"
     105        TYPE="so"
     106        TARGET="-netbsd-"
     107        echo "Building netbsd .sos for all architectures";;
    100108FreeBSD*)
    101109        PLATFORM_LIST="${FREEBSD_PLATFORMS}"
     
    121129        make && return 0
    122130        cd ..
    123         rm -R "$2" 
     131        rm -R "$2"
    124132        echo -e "\n\nFAILED! ${3}${5}${2} not made.\a"
    125133        sleep 10
     
    151159
    152160echo "Extracting GMP Version $VER ..."
    153 tar -xf gmp-$VER.tar.bz2 || ( echo "Error in tarball file!" ; exit 1 )
     161tar -xjf gmp-$VER.tar.bz2 || ( echo "Error in tarball file!" ; exit 1 )
    154162
    155163if [ ! -d bin ]; then
Note: See TracChangeset for help on using the changeset viewer.