Subversion Repositories Scribus

Rev

Rev 3734 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3265 avox 1
# configuration for OSX using fink libraries
3591 avox 2
#
3
# THIS FILE NEEDS TO BE SOURCED (bash$ . configure.MacOSX) IN ORDER TO WORK!
4
# NO GUARANTEES!
3265 avox 5
 
6
BUNDLE_LOCATION=/Applications/
7
 
8
PKG_CONFIG_PATH=/sw/lib/pkgconfig
9
export PKG_CONFIG_PATH
3591 avox 10
QTDIR=/Developer/qt
5184 avox 11
#QTDIR=/use/local/Trolltech/Qt-4.0.1
3265 avox 12
export QTDIR
3471 avox 13
 
14
MACOSX_DEPLOYMENT_TARGET=10.3
15
LD_PREBIND=1
16
LD_PREBIND_ALLOW_OVERLAP=1
3591 avox 17
DYLD_LIBRARY_PATH=$QTDIR/lib/:$DYLD_LIBRARY_PATH
3471 avox 18
 
3265 avox 19
CPPFLAGS=-I/sw/include
20
LDFLAGS=-L/sw/lib
3591 avox 21
export CPATH LDFLAGS CPPFLAGS MACOSX_DEPLOYMENT_TARGET LD_PREBIND LD_PREBIND_ALLOW_OVERLAP DYLD_LIBRARY_PATH
3471 avox 22
 
5184 avox 23
./configure --enable-debug --enable-mac --enable-bundle --prefix=$BUNDLE_LOCATION/Scribus.app/Contents/ --with-extra-includes=/sw/include/ $EXTRACONF --with-qt-dir=$QTDIR --with-extra-libs=/sw/lib/
3591 avox 24
 
25
cat > install_MacOSX.sh <<-EOF
26
	#!/bin/sh
27
	# This script was created by configure.MacOSX
28
	BUNDLE_CONTENTS=$BUNDLE_LOCATION/Scribus.app/Contents
29
	SKELETON=./Scribus.app/Contents
30
 
31
	mkdir -p \$BUNDLE_CONTENTS/MacOS
32
	mkdir -p \$BUNDLE_CONTENTS/Resources
33
	cp -f \$SKELETON/Info.plist \$BUNDLE_CONTENTS
34
	cp -f \$SKELETON/Resources/*.icns \$BUNDLE_CONTENTS/Resources
3734 avox 35
	(cd \$BUNDLE_CONTENTS/MacOS ; rm -f Scribus ; ln -s ../bin/scribus Scribus)
3591 avox 36
 
3734 avox 37
	install_name_tool -change libqt-mt.3.dylib $QTDIR/lib/libqt-mt.3.dylib \$BUNDLE_CONTENTS/bin/scribus
38
 
3591 avox 39
	echo
40
	echo "Mac OSX Scribus bundle installed!"
41
	echo "Please check bundle dependencies manually:"
42
	echo
3622 avox 43
	otool -hv \$BUNDLE_CONTENTS/bin/scribus
3591 avox 44
	otool -L \$BUNDLE_CONTENTS/bin/scribus
45
EOF
46
 
47
chmod a+x install_MacOSX.sh
48
echo 'To install, enter "make install ; ./install_MacOSX.sh" !'