diff --git a/README.md b/README.md index 9570ef8..9c96c33 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ mlpack Jenkins configuration and test support --------------------------------------------- This repository contains a number of scripts which are used by Jenkins -(http://big.cc.gt.atl.ga.us) in order to build and test mlpack. +(http://big.mlpack.org:7780/) in order to build and test mlpack. diff --git a/build-on-osx.sh b/build-on-osx.sh new file mode 100644 index 0000000..19597fd --- /dev/null +++ b/build-on-osx.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# Install mlpack on OSX 10.11 (EI Capitan) + +# assume we are in the root of mlpack project +# CMake and Xcode Command Line Tools are required + +# git clone https://github.com/mlpack/mlpack +# cd mlpack + +mkdir build +cd build + +# compile armadillo and install for all user +curl -O http://tenet.dl.sourceforge.net/project/arma/armadillo-6.500.5.tar.gz +tar zxvf armadillo-6.500.5.tar.gz +cd armadillo-6.500.5 +./configure +make -j4 +make install +cd .. + +# compile boost and and install for all user +curl -O http://netcologne.dl.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.gz +tar zxvf boost_1_60_0.tar.gz +cd boost_1_60_0 +sh bootstrap.sh +./b2 install +cd .. + +# compile mlpack +cmake -DDEBUG=OFF -DPROFILE=OFF .. +make -j4 + +# we do not need performance install on a build server +# make install \ No newline at end of file diff --git a/packaging/build-osx-pkg.sh b/packaging/build-osx-pkg.sh new file mode 100644 index 0000000..d7bf473 --- /dev/null +++ b/packaging/build-osx-pkg.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# Build OS X .pkg installer +rm -rf res +mkdir res +cp -r ../build/bin res/ +cp -r ../build/lib res/ +cp -r ../build/include res/ + +cp ../README.md docs/ +cp ../LICENSE.txt docs/ + +rm -rf pkg +mkdir pkg +pkgbuild --identifier org.mlpack.pkg \ + --root ./res \ + --version 2.0.1 \ + --ownership recommended \ + pkg/mlpacktools.pkg + +productbuild --distribution distribution.plist \ + --resources docs \ + --package-path pkg \ + --version 2.0.1 \ + mlpack.pkg \ No newline at end of file diff --git a/packaging/distribution.plist b/packaging/distribution.plist new file mode 100644 index 0000000..f5f7e37 --- /dev/null +++ b/packaging/distribution.plist @@ -0,0 +1,26 @@ + + + + mlpack + mlpack.org + + + + + + + + + + + + + + + + + + + mlpacktools.pkg + \ No newline at end of file diff --git a/packaging/docs/conclusion.txt b/packaging/docs/conclusion.txt new file mode 100644 index 0000000..412fca0 --- /dev/null +++ b/packaging/docs/conclusion.txt @@ -0,0 +1,13 @@ +mlpack was installed at + + /usr/local/bin + +mlpack lib was installed at + + /usr/local/lib + +mlpack header file was installed at + + /usr/local/include/mlpack + +Make sure that /usr/local/bin is in your $PATH. \ No newline at end of file