aboutsummaryrefslogtreecommitdiff
path: root/flow-native/src/pkg/mkpkg
blob: c82d9cb67beeccd1b3926a500fc9554801b11fe6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#
# This script produces a .pkg installable package on a mac.

# Name of the package
PACKAGE=flow3

# Place to install libraries (should be on java.library.path)
LIBDIR=/Library/Java/Extensions 

# Temporary directory to install libraries
TEMPDIR=`pwd`/out

mkdir ${TEMPDIR} && \
cd .. && \
./configure --libdir=${LIBDIR} && \
make && \
DESTDIR=${TEMPDIR} make install && \
productbuild --root=pkg ${PACKAGE}.pkg