mirror of
https://github.com/macports/mpbb.git
synced 2026-03-31 14:38:29 -07:00
git-svn-id: https://svn.macports.org/repository/macports/contrib/mpab@81426 d073be05-634f-4543-b044-5fe20cf6d1d6
18 lines
402 B
Bash
Executable File
18 lines
402 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# configure/build/install MacPorts in the chroot
|
|
#
|
|
|
|
if [[ -z "$PREFIX" ]]; then
|
|
PREFIX=/opt/local
|
|
fi
|
|
if [[ -z "$SRC_PREFIX" ]]; then
|
|
SRC_PREFIX=/opt/mports
|
|
fi
|
|
|
|
cd ${SRC_PREFIX}/base
|
|
./configure --prefix=${PREFIX} && make -j2 all && make install && make distclean
|
|
if [[ $? == 0 ]]; then
|
|
echo "file://${SRC_PREFIX}/dports [default,nosync]" > ${PREFIX}/etc/macports/sources.conf
|
|
fi
|