freebsd-ports/astro/gpsd/files/patch-SConstruct
Dmitry Marakasov 851e0901d0 - Update to 3.2
Submitted by:	glebius (maintainer)
2011-10-27 10:54:44 +00:00

25 lines
1 KiB
Text

--- SConstruct.orig 2011-10-26 07:05:02.000000000 +0400
+++ SConstruct 2011-10-26 16:22:43.000000000 +0400
@@ -385,12 +385,7 @@
# are like FreeBSD.
ncurseslibs= []
if env['ncurses']:
- if config.CheckPKG('ncurses'):
- ncurseslibs = pkg_config('ncurses')
- elif config.CheckExecutable('ncurses5-config --version', 'ncurses5-config'):
- ncurseslibs = ['!ncurses5-config --libs --cflags']
- elif sys.platform.startswith('freebsd'):
- ncurseslibs= [ '-lncurses' ]
+ ncurseslibs= [ '-lncurses' ]
if env['usb']:
# In FreeBSD except version 7, USB libraries are in the base system
@@ -1111,7 +1106,7 @@
if not env['python']:
python_install = []
else:
- python_lib_dir = sysconfig.get_python_lib(plat_specific=1)
+ python_lib_dir = sysconfig.get_python_lib(plat_specific=1, prefix = env['prefix'])
python_module_dir = python_lib_dir + os.sep + 'gps'
python_extensions_install = python_env.Install( DESTDIR + python_module_dir,
python_built_extensions)