Skip to content

Commit

Permalink
Adapt for CouchDB trunk on Leopard; make icu-config removal more gene…
Browse files Browse the repository at this point in the history
…ric, fix install_name_tool call to use correct source dir, remove 64bit erlang compile flag
  • Loading branch information
dzuelke authored and janl committed Jan 15, 2010
1 parent 71a5f68 commit ba520fe
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions couchdbx-core-builder.sh
Expand Up @@ -63,8 +63,7 @@ erlang_install()
--enable-hipe \
--enable-dynamic-ssl-lib \
--with-ssl=/usr \
--without-java \
--enable-darwin-64bit
--without-java
# skip wxWidgets
touch lib/wx/SKIP
make # can't have -jN so no $MAKEOPTS
Expand Down Expand Up @@ -176,6 +175,10 @@ couchdb_install()
{
# if [ ! -e .couchdb-installed ]; then
cd src/$COUCHDBSRCDIR

# remove icu-config call
perl -pi -e "s@command=\"\`%ICU_CONFIG% --invoke\`@command=\"@" bin/couchdb.tpl.in

# PATH hack for jan's machine
PATH=/usr/bin:$PATH ./bootstrap
export ERLC_FLAGS="+native"
Expand Down Expand Up @@ -234,8 +237,6 @@ couchdb_post_install()
# replace absolute to relative paths
perl -pi -e "s@$WORKDIR/dist/@@g" bin/couchdb bin/couchjs etc/couchdb/default.ini

# remove icu-config call
perl -pi -e "s@command=\"\`/usr/local/bin/icu-config --invoke\`@command=\"@" bin/couchdb
cd ../../src/$COUCHDBSRCDIR
}

Expand Down Expand Up @@ -306,7 +307,7 @@ package()
dist/js \
$PACKAGEDIR
install_name_tool -change Darwin_DBG.OBJ/libjs.dylib js/lib/libjs.dylib \
$WORKDIR/dist/$COUCHDBSRCDIR/lib/couchdb/bin/couchjs
$PACKAGEDIR/$COUCHDBDISTDIR/lib/couchdb/bin/couchjs
cd $PACKAGEDIR
ln -s $COUCHDBDISTDIR couchdb
cd ..
Expand Down

0 comments on commit ba520fe

Please sign in to comment.