the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: python24
Version: 2.4.3
Revision: 1003
Epoch: 1
Maintainer: None
Conflicts: python24-nox, python-nox (<= 2.2.1-8)
Replaces: python24-nox, python (<= 2.2.1-8), python-nox (<= 2.2.1-8)
Depends: %N-shlibs (= %e:%v-%r), tcltk (>= 8.4.1-1), python24-socket, bzip2-shlibs, libncursesw5-shlibs
BuildConflicts: libquicktime0
BuildDepends: readline5, db44-aes | db44, gdbm3, gmp (>= 4.1.4-1), libmpfr1, tcltk-dev, expat1, bzip2-dev, libgettext3-dev, gettext-bin, gettext-tools, libncurses5 (>= 5.4-20041023-1006), libncursesw5, x11-dev, blt-dev, fink (>= 0.24.12-1)
Source: http://python.org/ftp/python/%v/Python-%v.tgz
Source2: http://www.python.org/ftp/python/doc/%v/html-%v.zip
Source-MD5: edf994473a8c1a963aaa71e442b285b7
Source2-MD5: 469674aa69df8650873f096bfccfbcf3
PatchFile: %n.patch
PatchFile-MD5: e3dd5c63b0a1b934aec1e5498481fbeb
PatchScript: sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
ConfigureParams: --mandir=%p/share/man
GCC: 4.0
InstallScript: <<
make install DESTDIR=%d
(cd %i/bin; sed 's|%p/bin/python|%p/bin/python2.4|g' < idle > idle2.4; chmod 755 idle2.4; rm -f idle)
(cd %i/bin; sed 's|%p/bin/python|%p/bin/python2.4|g' < pydoc > pydoc2.4; chmod 755 pydoc2.4; rm -f pydoc)
(cd %i/bin; sed 's|%p/bin/python|%p/bin/python2.4|g' < smtpd.py > smtpd.py2.4; chmod 755 smtpd.p2.4; rm -f smtpd.py)
(cd Misc; /bin/rm -rf RPM)
mkdir -p %i/share/doc/%n
/bin/cp -R Demo Doc %i/share/doc/%n
/bin/cp -R Misc Tools %i/lib/python2.4
/bin/rm -f %i/bin/python
/bin/mv %i/share/man/man1/python.1 %i/share/man/man1/python24.1
cc -dynamiclib -single_module -all_load -undefined dynamic_lookup -framework System -framework CoreServices -framework Foundation %i/lib/python2.4/config/libpython2.4.a -o %i/lib/python2.4/config/libpython2.4.dylib -install_name %p/lib/python2.4/config/libpython2.4.dylib -current_version 2.4 -compatibility_version 2.4 -L%p/lib -ldl
(cd %i/lib/python2.4/config; mv Makefile Makefile.orig; sed 's|-fno-common||g' < Makefile.orig > Makefile; /bin/rm -f Makefile.orig)
ln -s %p/bin/python2.4 %i/bin/python
ln -s %p/bin/pydoc2.4 %i/bin/pydoc
ln -s %p/bin/idle2.4 %i/bin/idle
ln -s %p/bin/smtpd.py2.4 %i/bin/smtpd.py
ln -s %p/share/man/man1/python24.1 %i/share/man/man1/python.1
(mkdir -p %i/share/doc/%n/html; cd ..; /bin/cp -R Python-Docs-%v/ %i/share/doc/%n/html)
<<
SplitOff: <<
Package: %N-shlibs
Depends: readline5-shlibs, expat1-shlibs, gdbm3-shlibs, gmp-shlibs (>= 4.1.4-1), libmpfr1-shlibs, db44-aes-shlibs | db44-shlibs, tcltk-shlibs (>= 8.4.1), blt-shlibs
Conflicts: python24-nox-shlibs
Replaces: python24-nox-shlibs, python (<= 2.2.1-8), python-nox (<= 2.2.1-8)
Files: lib/python2.4/config/libpython2.4.dylib
Shlibs: %p/lib/python2.4/config/libpython2.4.dylib 2.4.0 python24-shlibs (>= 2.4-1) | python24-nox-shlibs (>= 2.4-1)
DocFiles: README LICENSE
<<
SplitOff2: <<
Package: python
Depends: python24
Conflicts: python-nox
Replaces: python-nox, python24 (<< 1:2.4.2-3)
Files: bin/pydoc bin/python bin/idle bin/smtpd.py share/man/man1/python.1
DocFiles: README LICENSE
<<
SplitOff3: <<
Package: python24-socket
Replaces: python24-socket-ssl, python24-socket-nox
Files: lib/python2.4/lib-dynload/_socket.so
DocFiles: README LICENSE
Description: Socket plugin for python
<<
DocFiles: README LICENSE
Description: Interpreted, object-oriented language
DescDetail: <<
Python is often compared to Tcl, Perl, Scheme or Java.
This package installs unix python - not the OSX Framework version.
Builds a two-level namespace dynamic libpython (needed for koffice).
Much help from Dave Morrison and Peter O'Gorman
<<
DescPackaging: <<
All available extension modules are built.
blt is silently detected and tkinter links it if found, so make sure
it's present in case other packages need that support.
<<
License: OSI-Approved
Homepage: http://www.python.org
--- Python-2.4/configure.orig Sat Dec 11 14:30:53 2004
+++ Python-2.4/configure Sat Dec 11 14:38:12 2004
@@ -3816,7 +3816,7 @@
;;
# is there any other compiler on Darwin besides gcc?
Darwin*)
- BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
+ BASECFLAGS="$BASECFLAGS -fno-common -Wno-long-double -no-cpp-precomp -mno-fused-madd"
;;
esac
;;
@@ -10295,7 +10295,8 @@
LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
else
# No framework. Ignore undefined symbols, assuming they come from Python
- LDSHARED="$LDSHARED -undefined suppress"
+# LDSHARED="$LDSHARED -undefined suppress"
+ LDSHARED="$LDSHARED -flat_namespace -undefined suppress"
fi ;;
Darwin/1.4*|Darwin/5.*|Darwin/6.*)
LDSHARED='$(CC) $(LDFLAGS) -bundle'
@@ -10305,8 +10306,10 @@
LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
else
# No framework, use the Python app as bundle-loader
- BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
- LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
+# BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
+# LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
+ BLDSHARED="$LDSHARED -flat_namespace -undefined suppress"
+ LDSHARED="$LDSHARED -flat_namespace -undefined suppress"
fi ;;
Darwin/*)
# Use -undefined dynamic_lookup whenever possible (10.3 and later).
--- Python-2.4//Makefile.pre.in.orig Sat Dec 11 14:25:10 2004
+++ Python-2.4/Makefile.pre.in Sat Dec 11 14:25:25 2004
@@ -56,7 +56,7 @@
OPT= @OPT@
BASECFLAGS= @BASECFLAGS@
CFLAGS= $(BASECFLAGS) $(OPT)
-CPPFLAGS= -I. -I$(srcdir)/Include
+CPPFLAGS= -I. -I$(srcdir)/Include -I@PREFIX@/include
LDFLAGS= @LDFLAGS@
LDLAST= @LDLAST@
SGI_ABI= @SGI_ABI@
--- Python-2.4/Misc/setuid-prog.c.orig Sat Dec 11 14:29:22 2004
+++ Python-2.4/Misc/setuid-prog.c Sat Dec 11 14:30:13 2004
@@ -70,6 +70,13 @@
#define environ _environ
#endif
+#if defined(__APPLE__)
+# include
+# include
+# define environ (*_NSGetEnviron())
+#endif /* __APPLE__ */
+
+
/* don't change def_IFS */
char def_IFS[] = "IFS= \t\n";
/* you may want to change def_PATH, but you should really change it in */
--- Python-2.4/Modules/posixmodule.c.orig Sat Dec 11 14:27:52 2004
+++ Python-2.4/Modules/posixmodule.c Sat Dec 11 14:28:17 2004
@@ -298,7 +298,7 @@
#endif
/* Return a dictionary corresponding to the POSIX environment table */
-#ifdef WITH_NEXT_FRAMEWORK
+#ifdef __APPLE__
/* On Darwin/MacOSX a shared library or framework has no access to
** environ directly, we must obtain it with _NSGetEnviron().
*/
@@ -316,7 +316,7 @@
d = PyDict_New();
if (d == NULL)
return NULL;
-#ifdef WITH_NEXT_FRAMEWORK
+#ifdef __APPLE__
if (environ == NULL)
environ = *_NSGetEnviron();
#endif
--- Python-2.4/Lib/pydoc.py Mon Dec 13 11:24:02 2004
+++ Python-2.4/Lib/pydoc.py.orig Mon Dec 13 11:21:37 2004
@@ -1615,19 +1615,7 @@
def __init__(self, input, output):
self.input = input
self.output = output
- self.docdir = None
- execdir = os.path.dirname(sys.executable)
- homedir = os.environ.get('PYTHONHOME')
- for dir in [os.environ.get('PYTHONDOCS'),
- homedir and os.path.join(homedir, 'doc'),
- os.path.join(execdir, 'doc'),
- '/usr/doc/python-docs-' + split(sys.version)[0],
- '/usr/doc/python-' + split(sys.version)[0],
- '/usr/doc/python-docs-' + sys.version[:3],
- '/usr/doc/python-' + sys.version[:3],
- os.path.join(sys.prefix, 'Resources/English.lproj/Documentation')]:
- if dir and os.path.isdir(os.path.join(dir, 'lib')):
- self.docdir = dir
+ self.docdir = os.path.join(sys.prefix, 'share','doc','python'+sys.version[0]+sys.version[2],'html')
def __repr__(self):
if inspect.stack()[1][3] == '?':
--- Python/setup.py 2005-10-13 16:24:35.000000000 -0600
+++ Python/setup.py.orig 2005-10-13 16:19:05.000000000 -0600
@@ -245,8 +245,8 @@
# Add paths to popular package managers on OS X/darwin
if sys.platform == "darwin":
# Fink installs into /sw by default
- add_dir_to_list(self.compiler.library_dirs, '/sw/lib')
- add_dir_to_list(self.compiler.include_dirs, '/sw/include')
+ add_dir_to_list(self.compiler.library_dirs, '@PREFIX@/lib')
+ add_dir_to_list(self.compiler.include_dirs, '@PREFIX@/include')
# DarwinPorts installs into /opt/local by default
add_dir_to_list(self.compiler.library_dirs, '/opt/local/lib')
add_dir_to_list(self.compiler.include_dirs, '/opt/local/include')
@@ -265,11 +265,11 @@
# lib_dirs and inc_dirs are used to search for files;
# if a file is found in one of those directories, it can
# be assumed that no additional -I,-L directives are needed.
- lib_dirs = self.compiler.library_dirs + [
+ lib_dirs = self.compiler.library_dirs + ['@PREFIX@/lib',
'/lib64', '/usr/lib64',
'/lib', '/usr/lib',
]
- inc_dirs = self.compiler.include_dirs + ['/usr/include']
+ inc_dirs = self.compiler.include_dirs + ['@PREFIX@/include','/usr/include']
exts = []
platform = self.get_platform()
@@ -456,6 +456,7 @@
'/usr/contrib/ssl/include/'
]
)
+ ssl_incs = None # suppress SSL support.
if ssl_incs is not None:
krb5_h = find_file('krb5.h', inc_dirs,
['/usr/kerberos/include'])
@@ -499,11 +500,11 @@
'/usr/include/db4',
'/usr/local/include/db4',
'/opt/sfw/include/db4',
- '/sw/include/db4',
+ '@PREFIX@/include/db4',
'/usr/include/db3',
'/usr/local/include/db3',
'/opt/sfw/include/db3',
- '/sw/include/db3',
+ '@PREFIX@/include/db3',
]
# 4.x minor number specific paths
for x in (0,1,2,3):
@@ -968,9 +969,9 @@
# AquaTk is a separate method. Only one Tkinter will be built on
# Darwin - either AquaTk, if it is found, or X11 based Tk.
platform = self.get_platform()
- if platform == 'darwin' and \
- self.detect_tkinter_darwin(inc_dirs, lib_dirs):
- return
+# if platform == 'darwin' and \
+# self.detect_tkinter_darwin(inc_dirs, lib_dirs):
+# return
# Assume we haven't found any of the libraries or include files
# The versions with dots are used on Unix, and the versions without
Package: python24
Version: 2.4.4
Revision: 1
Epoch: 1
Maintainer: None
Conflicts: python24-nox, python-nox (<= 2.2.1-8)
Replaces: python24-nox, python (<= 2.2.1-8), python-nox (<= 2.2.1-8)
Depends: %N-shlibs (= %e:%v-%r), tcltk (>= 8.4.1-1), python24-socket, bzip2-shlibs, libncursesw5-shlibs
BuildConflicts: libquicktime0
BuildDepends: readline5, db44-aes | db44, gdbm3, gmp (>= 4.1.4-1), libmpfr1, tcltk-dev, expat1, bzip2-dev, libgettext3-dev, gettext-bin, gettext-tools, libncurses5 (>= 5.4-20041023-1006), libncursesw5, x11-dev, blt-dev (>= 2.4z-15), libjpeg, fink (>= 0.24.12-1)
Source: http://python.org/ftp/python/%v/Python-%v.tgz
Source2: http://www.python.org/ftp/python/doc/%v/html-%v.zip
Source-MD5: 82d000617baaef269ad5795c595fdc58
Source2-MD5: b43340ce1199ef87826fe1b235882f0e
PatchFile: %n.patch
PatchFile-MD5: ca7201fabdbf5c19069d2bd3d1f41ec2
PatchScript: sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
ConfigureParams: --mandir=%p/share/man
GCC: 4.0
InstallScript: <<
make install DESTDIR=%d
(cd %i/bin; sed 's|%p/bin/python|%p/bin/python2.4|g' < idle > idle2.4; chmod 755 idle2.4; rm -f idle)
(cd %i/bin; sed 's|%p/bin/python|%p/bin/python2.4|g' < pydoc > pydoc2.4; chmod 755 pydoc2.4; rm -f pydoc)
(cd %i/bin; sed 's|%p/bin/python|%p/bin/python2.4|g' < smtpd.py > smtpd.py2.4; chmod 755 smtpd.p2.4; rm -f smtpd.py)
(cd Misc; /bin/rm -rf RPM)
mkdir -p %i/share/doc/%n
/bin/cp -R Demo Doc %i/share/doc/%n
/bin/cp -R Misc Tools %i/lib/python2.4
/bin/rm -f %i/bin/python
/bin/mv %i/share/man/man1/python.1 %i/share/man/man1/python24.1
cc -dynamiclib -single_module -all_load -undefined dynamic_lookup -framework System -framework CoreServices -framework Foundation %i/lib/python2.4/config/libpython2.4.a -o %i/lib/python2.4/config/libpython2.4.dylib -install_name %p/lib/python2.4/config/libpython2.4.dylib -current_version 2.4 -compatibility_version 2.4 -L%p/lib -ldl
(cd %i/lib/python2.4/config; mv Makefile Makefile.orig; sed 's|-fno-common||g' < Makefile.orig > Makefile; /bin/rm -f Makefile.orig)
ln -s %p/bin/python2.4 %i/bin/python
ln -s %p/bin/pydoc2.4 %i/bin/pydoc
ln -s %p/bin/idle2.4 %i/bin/idle
ln -s %p/bin/smtpd.py2.4 %i/bin/smtpd.py
ln -s %p/share/man/man1/python24.1 %i/share/man/man1/python.1
(mkdir -p %i/share/doc/%n/html; cd ..; /bin/cp -R Python-Docs-%v/ %i/share/doc/%n/html)
<<
SplitOff: <<
Package: %N-shlibs
Depends: readline5-shlibs, expat1-shlibs, gdbm3-shlibs, gmp-shlibs (>= 4.1.4-1), libmpfr1-shlibs, db44-aes-shlibs | db44-shlibs, tcltk-shlibs (>= 8.4.1), blt-shlibs
Conflicts: python24-nox-shlibs
Replaces: python24-nox-shlibs, python (<= 2.2.1-8), python-nox (<= 2.2.1-8)
Files: lib/python2.4/config/libpython2.4.dylib
Shlibs: %p/lib/python2.4/config/libpython2.4.dylib 2.4.0 python24-shlibs (>= 2.4-1) | python24-nox-shlibs (>= 2.4-1)
DocFiles: README LICENSE
<<
SplitOff2: <<
Package: python
Depends: python24
Conflicts: python-nox
Replaces: python-nox, python24 (<< 1:2.4.2-3)
Files: bin/pydoc bin/python bin/idle bin/smtpd.py share/man/man1/python.1
DocFiles: README LICENSE
<<
SplitOff3: <<
Package: python24-socket
Replaces: python24-socket-ssl, python24-socket-nox
Files: lib/python2.4/lib-dynload/_socket.so
DocFiles: README LICENSE
Description: Socket plugin for python
<<
DocFiles: README LICENSE
Description: Interpreted, object-oriented language
DescDetail: <<
Python is often compared to Tcl, Perl, Scheme or Java.
This package installs unix python - not the OSX Framework version.
Builds a two-level namespace dynamic libpython (needed for koffice).
Much help from Dave Morrison and Peter O'Gorman
<<
DescPackaging: <<
All available extension modules are built.
blt is silently detected and tkinter links it if found, so make sure
it's present in case other packages need that support.
<<
License: OSI-Approved
Homepage: http://www.python.org
--- Python-2.4/configure.orig 2006-10-17 18:03:36.000000000 +0200
+++ Python-2.4/configure 2008-09-06 11:17:57.000000000 +0200
@@ -3907,7 +3907,7 @@
;;
# is there any other compiler on Darwin besides gcc?
Darwin*)
- BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
+ BASECFLAGS="$BASECFLAGS -fno-common -Wno-long-double -no-cpp-precomp -mno-fused-madd"
if test "${enable_universalsdk}"; then
BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
fi
@@ -10435,7 +10435,8 @@
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
else
# No framework. Ignore undefined symbols, assuming they come from Python
- LDSHARED="$LDSHARED -undefined suppress"
+# LDSHARED="$LDSHARED -undefined suppress"
+ LDSHARED="$LDSHARED -flat_namespace -undefined suppress"
fi ;;
Darwin/1.4*|Darwin/5.*|Darwin/6.*)
LDSHARED='$(CC) $(LDFLAGS) -bundle'
@@ -10445,8 +10446,10 @@
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
else
# No framework, use the Python app as bundle-loader
- BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
- LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
+# BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
+# LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
+ BLDSHARED="$LDSHARED -flat_namespace -undefined suppress"
+ LDSHARED="$LDSHARED -flat_namespace -undefined suppress"
fi ;;
Darwin/*)
# Use -undefined dynamic_lookup whenever possible (10.3 and later).
--- Python-2.4//Makefile.pre.in.orig Sat Dec 11 14:25:10 2004
+++ Python-2.4/Makefile.pre.in Sat Dec 11 14:25:25 2004
@@ -56,7 +56,7 @@
OPT= @OPT@
BASECFLAGS= @BASECFLAGS@
CFLAGS= $(BASECFLAGS) $(OPT)
-CPPFLAGS= -I. -I$(srcdir)/Include
+CPPFLAGS= -I. -I$(srcdir)/Include -I@PREFIX@/include
LDFLAGS= @LDFLAGS@
LDLAST= @LDLAST@
SGI_ABI= @SGI_ABI@
--- Python-2.4/Misc/setuid-prog.c.orig Sat Dec 11 14:29:22 2004
+++ Python-2.4/Misc/setuid-prog.c Sat Dec 11 14:30:13 2004
@@ -70,6 +70,13 @@
#define environ _environ
#endif
+#if defined(__APPLE__)
+# include
+# include
+# define environ (*_NSGetEnviron())
+#endif /* __APPLE__ */
+
+
/* don't change def_IFS */
char def_IFS[] = "IFS= \t\n";
/* you may want to change def_PATH, but you should really change it in */
--- Python-2.4/Modules/posixmodule.c.orig Sat Dec 11 14:27:52 2004
+++ Python-2.4/Modules/posixmodule.c Sat Dec 11 14:28:17 2004
@@ -298,7 +298,7 @@
#endif
/* Return a dictionary corresponding to the POSIX environment table */
-#ifdef WITH_NEXT_FRAMEWORK
+#ifdef __APPLE__
/* On Darwin/MacOSX a shared library or framework has no access to
** environ directly, we must obtain it with _NSGetEnviron().
*/
@@ -316,7 +316,7 @@
d = PyDict_New();
if (d == NULL)
return NULL;
-#ifdef WITH_NEXT_FRAMEWORK
+#ifdef __APPLE__
if (environ == NULL)
environ = *_NSGetEnviron();
#endif
--- Python-2.4/Lib/pydoc.py Mon Dec 13 11:24:02 2004
+++ Python-2.4/Lib/pydoc.py.orig Mon Dec 13 11:21:37 2004
@@ -1615,19 +1615,7 @@
def __init__(self, input, output):
self.input = input
self.output = output
- self.docdir = None
- execdir = os.path.dirname(sys.executable)
- homedir = os.environ.get('PYTHONHOME')
- for dir in [os.environ.get('PYTHONDOCS'),
- homedir and os.path.join(homedir, 'doc'),
- os.path.join(execdir, 'doc'),
- '/usr/doc/python-docs-' + split(sys.version)[0],
- '/usr/doc/python-' + split(sys.version)[0],
- '/usr/doc/python-docs-' + sys.version[:3],
- '/usr/doc/python-' + sys.version[:3],
- os.path.join(sys.prefix, 'Resources/English.lproj/Documentation')]:
- if dir and os.path.isdir(os.path.join(dir, 'lib')):
- self.docdir = dir
+ self.docdir = os.path.join(sys.prefix, 'share','doc','python'+sys.version[0]+sys.version[2],'html')
def __repr__(self):
if inspect.stack()[1][3] == '?':
--- Python/setup.py 2005-10-13 16:24:35.000000000 -0600
+++ Python/setup.py.orig 2005-10-13 16:19:05.000000000 -0600
@@ -245,8 +245,8 @@
# Add paths to popular package managers on OS X/darwin
if sys.platform == "darwin":
# Fink installs into /sw by default
- add_dir_to_list(self.compiler.library_dirs, '/sw/lib')
- add_dir_to_list(self.compiler.include_dirs, '/sw/include')
+ add_dir_to_list(self.compiler.library_dirs, '@PREFIX@/lib')
+ add_dir_to_list(self.compiler.include_dirs, '@PREFIX@/include')
# DarwinPorts installs into /opt/local by default
add_dir_to_list(self.compiler.library_dirs, '/opt/local/lib')
add_dir_to_list(self.compiler.include_dirs, '/opt/local/include')
@@ -265,11 +265,11 @@
# lib_dirs and inc_dirs are used to search for files;
# if a file is found in one of those directories, it can
# be assumed that no additional -I,-L directives are needed.
- lib_dirs = self.compiler.library_dirs + [
+ lib_dirs = self.compiler.library_dirs + ['@PREFIX@/lib',
'/lib64', '/usr/lib64',
'/lib', '/usr/lib',
]
- inc_dirs = self.compiler.include_dirs + ['/usr/include']
+ inc_dirs = self.compiler.include_dirs + ['@PREFIX@/include','/usr/include']
exts = []
platform = self.get_platform()
@@ -456,6 +456,7 @@
'/usr/contrib/ssl/include/'
]
)
+ ssl_incs = None # suppress SSL support.
if ssl_incs is not None:
krb5_h = find_file('krb5.h', inc_dirs,
['/usr/kerberos/include'])
@@ -499,11 +500,11 @@
'/usr/include/db4',
'/usr/local/include/db4',
'/opt/sfw/include/db4',
- '/sw/include/db4',
+ '@PREFIX@/include/db4',
'/usr/include/db3',
'/usr/local/include/db3',
'/opt/sfw/include/db3',
- '/sw/include/db3',
+ '@PREFIX@/include/db3',
]
# 4.x minor number specific paths
for x in (0,1,2,3):
@@ -968,9 +969,9 @@
# AquaTk is a separate method. Only one Tkinter will be built on
# Darwin - either AquaTk, if it is found, or X11 based Tk.
platform = self.get_platform()
- if platform == 'darwin' and \
- self.detect_tkinter_darwin(inc_dirs, lib_dirs):
- return
+# if platform == 'darwin' and \
+# self.detect_tkinter_darwin(inc_dirs, lib_dirs):
+# return
# Assume we haven't found any of the libraries or include files
# The versions with dots are used on Unix, and the versions without