| @@ -1,15 +1,32 @@ | | | @@ -1,15 +1,32 @@ |
1 | $NetBSD: patch-setup_extensions.py,v 1.6 2015/12/30 00:08:33 wiz Exp $ | | 1 | $NetBSD: patch-setup_extensions.py,v 1.7 2016/06/04 12:06:07 joerg Exp $ |
2 | | | 2 | |
3 | Fix build for pictureflow. | | 3 | Fix build for pictureflow. |
4 | | | 4 | |
5 | --- setup/extensions.py.orig 2015-12-21 03:57:33.000000000 +0000 | | 5 | --- setup/extensions.py.orig 2016-02-26 03:04:36.000000000 +0000 |
6 | +++ setup/extensions.py | | 6 | +++ setup/extensions.py |
7 | @@ -636,7 +636,7 @@ class Build(Command): | | 7 | @@ -549,6 +549,7 @@ class Build(Command): |
| | | 8 | INCLUDEPATH += {freetype} |
| | | 9 | DESTDIR = {destdir} |
| | | 10 | CONFIG -= create_cmake # Prevent qmake from generating a cmake build file which it puts in the calibre src directory |
| | | 11 | + QMAKE_LFLAGS += $(COMPILER_RPATH_FLAG)$(X11BASE)/lib |
| | | 12 | QMAKE_LIBS_PRIVATE += {glib} {fontconfig} |
| | | 13 | ''').format( |
| | | 14 | headers=' '.join(headers), sources=' '.join(sources), others=' '.join(others), destdir=self.d( |
| | | 15 | @@ -603,6 +604,8 @@ class Build(Command): |
| | | 16 | SOURCES = {sources} |
| | | 17 | INCLUDEPATH += {sipinc} {pyinc} |
| | | 18 | VERSION = {ver} |
| | | 19 | + QMAKE_LFLAGS += $(COMPILER_RPATH_FLAG)$(X11BASE)/lib |
| | | 20 | + |
| | | 21 | win32 {{ |
| | | 22 | LIBS += {py_lib} |
| | | 23 | TARGET_EXT = .dll |
| | | 24 | @@ -633,7 +636,7 @@ class Build(Command): |
8 | if iswindows: | | 25 | if iswindows: |
9 | qmc += ['-spec', qmakespec] | | 26 | qmc += ['-spec', qmakespec] |
10 | fext = 'dll' if iswindows else 'dylib' if isosx else 'so' | | 27 | fext = 'dll' if iswindows else 'dylib' if isosx else 'so' |
11 | - name = '%s%s.%s' % ('release/' if iswindows else 'lib', sip['target'], fext) | | 28 | - name = '%s%s.%s' % ('release/' if iswindows else 'lib', sip['target'], fext) |
12 | + name = '%s%s.%s' % ('release/' if iswindows else '.libs/lib', sip['target'], fext) | | 29 | + name = '%s%s.%s' % ('release/' if iswindows else '.libs/lib', sip['target'], fext) |
13 | try: | | 30 | try: |
14 | os.chdir(src_dir) | | 31 | os.chdir(src_dir) |
15 | if self.newer(dest, sip['headers'] + sip['sources'] + ext.sources + ext.headers): | | 32 | if self.newer(dest, sip['headers'] + sip['sources'] + ext.sources + ext.headers): |