File: configure.MacOSX

package info (click to toggle)
scribus 1.3.3.13.dfsg~svn20081228-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 54,668 kB
  • ctags: 14,434
  • sloc: cpp: 165,840; ansic: 8,920; python: 3,149; xml: 419; makefile: 114; perl: 94; sh: 69
file content (49 lines) | stat: -rw-r--r-- 1,543 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# configuration for OSX using fink libraries
# 
# THIS FILE NEEDS TO BE SOURCED (bash$ . configure.MacOSX) IN ORDER TO WORK!
# NO GUARANTEES!

BUNDLE_LOCATION=/Applications/

PKG_CONFIG_PATH=/sw/lib/pkgconfig
export PKG_CONFIG_PATH
QTDIR=/Developer/qt
export QTDIR


MACOSX_DEPLOYMENT_TARGET=10.3 
LD_PREBIND=1
LD_PREBIND_ALLOW_OVERLAP=1
DYLD_LIBRARY_PATH=$QTDIR/lib/:$DYLD_LIBRARY_PATH

CPPFLAGS=-I/sw/include
LDFLAGS=-L/sw/lib
export CPATH LDFLAGS CPPFLAGS MACOSX_DEPLOYMENT_TARGET LD_PREBIND LD_PREBIND_ALLOW_OVERLAP DYLD_LIBRARY_PATH

./configure --enable-debug --enable-mac --enable-bundle --prefix=$BUNDLE_LOCATION/Scribus.app/Contents/ --with-extra-includes=/sw/include/ $EXTRACONF
#--with-extra-libs=/sw/lib/

cat > install_MacOSX.sh <<-EOF
	#!/bin/sh
	# This script was created by configure.MacOSX
	BUNDLE_CONTENTS=$BUNDLE_LOCATION/Scribus.app/Contents
	SKELETON=./Scribus.app/Contents
	
	mkdir -p \$BUNDLE_CONTENTS/MacOS
	mkdir -p \$BUNDLE_CONTENTS/Resources
	cp -f \$SKELETON/Info.plist \$BUNDLE_CONTENTS
	cp -f \$SKELETON/Resources/*.icns \$BUNDLE_CONTENTS/Resources
	(cd \$BUNDLE_CONTENTS/MacOS ; rm -f Scribus ; ln -s ../bin/scribus Scribus)

	install_name_tool -change libqt-mt.3.dylib $QTDIR/lib/libqt-mt.3.dylib \$BUNDLE_CONTENTS/bin/scribus

	echo
	echo "Mac OSX Scribus bundle installed!"
	echo "Please check bundle dependencies manually:"
	echo
	otool -hv \$BUNDLE_CONTENTS/bin/scribus
	otool -L \$BUNDLE_CONTENTS/bin/scribus
EOF

chmod a+x install_MacOSX.sh
echo 'To install, enter "make install ; ./install_MacOSX.sh" !'