mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-13 10:42:17 -04:00
Edit Book: Fix undocked windows not resizable on OS X
Caused by a regression in Qt. https://bugreports.qt.io/browse/QTBUG-46882 Also, add the build scripts for calibre dependencies on OSX and linux to the source tree.
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Change the version of sqlite below (get the current version from https://sqlite.org/download.html)
|
||||
# You might also need to change 2013 to 2014 in the setup.py script
|
||||
|
||||
cd $SW/build/apsw-* && rm -rf build/* && \
|
||||
python setup.py fetch --version=3.8.5 --sqlite --missing-checksum-ok && python setup.py install
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
LBZ2=libbz2.so.1.0.6
|
||||
|
||||
cd $SW/build/bzip2* && make -f Makefile-libbz2_so && \
|
||||
rm -f $SW/lib/libbz2* && cp -a $LBZ2 $SW/lib && ln -s $LBZ2 $SW/lib/libbz2.so && ln -s $LBZ2 $SW/lib/libbz2.so.1 && ln -s $LBZ2 $SW/lib/libbz2.so.1.0 && \
|
||||
cp -a bzlib.h $SW/include
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $SW/build/chmlib* && \
|
||||
./configure --disable-dependency-tracking --prefix=$SW && make && make install
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/dbus-python-* && \
|
||||
./configure --prefix=$SW && make && make install
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/dbus-glib-* && ./configure --prefix=$SW --disable-static && make && make install
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/expat-* &&\
|
||||
./configure --prefix=$SW && make && make install
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
export FREETYPE_CFLAGS="-I$SW/include/freetype2"
|
||||
export FREETYPE_LIBS="-L$SW/lib -lfreetype -lz -lbz2"
|
||||
|
||||
cd $SW/build/fontconfig-2.* && \
|
||||
./configure --prefix=$SW --disable-static --disable-docs --with-expat=$SW --with-add-fonts=/usr/X11/lib/X11/fonts --disable-dependency-tracking && make && make install
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
cd $SW/build/freetype* && \
|
||||
./configure --disable-static --prefix=$SW && make && make install
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/glib-* && ./configure --prefix=$SW --disable-selinux --disable-fam --disable-static --with-libiconv=gnu && make && make install
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/icu*/source && \
|
||||
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --sbindir=/usr/bin && make && \
|
||||
rm -rf $SW/icu && rm -rf $SW/include/layout $SW/include/unicode && rm -f $SW/lib/libicu* && \
|
||||
make -j1 DESTDIR=$SW/icu install && \
|
||||
cp -ar $SW/icu/usr/include/* $SW/include && cp -a $SW/icu/usr/lib/libicu* $SW/lib/ && \
|
||||
rm -rf $SW/icu
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/libgcrypt-* && ./configure --prefix=$SW --disable-static && make && make install
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/libgpg-error* && ./configure --prefix=$SW --disable-static && make && make install
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
cd $SW/build/libiconv-* && \
|
||||
./configure --disable-static --disable-dependency-tracking --enable-shared --prefix=$SW && make && make install
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
export libusbmuxd_CFLAGS=-I$SW/include
|
||||
export libusbmuxd_LIBS=-lusbmuxd
|
||||
export libplist_CFLAGS=-I$SW/include
|
||||
export libplist_LIBS=-lplist
|
||||
export libplistmm_CFLAGS=-I$SW/include
|
||||
export libplistmm_LIBS=-lplist++
|
||||
export openssl_CFLAGS=-I$SW/include
|
||||
export openssl_LIBS="-lcrypto -lssl"
|
||||
|
||||
cd $SW/build/libimobiledevice-* && ./configure --prefix=$SW --disable-dependency-tracking --without-cython --disable-static && make && make install
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $SW/build/libjpeg-turbo* && \
|
||||
./configure --disable-dependency-tracking --enable-shared --with-jpeg8 --prefix=$SW && make && make install
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
export LIBUSB_CFLAGS="-I$SW/include/libusb-1.0"
|
||||
export LIBUSB_LIBS="-L$SW/lib -lusb-1.0"
|
||||
export CFLAGS="$CFLAGS -DHAVE_ICONV"
|
||||
export LDFLAGS="$LDFLAGS -liconv"
|
||||
|
||||
cd $SW/build/libmtp-* && \
|
||||
./configure --disable-mtpz --disable-dependency-tracking --disable-static --prefix=$SW --with-libiconv-prefix=$SW --with-udev=$SW/udev && \
|
||||
make && make install
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
export CPPFLAGS=$CFLAGS
|
||||
|
||||
cd $SW/build/libpng* && \
|
||||
./configure --prefix=$SW --disable-dependency-tracking --disable-static && make && make install
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/libusb-* && \
|
||||
./configure --disable-udev --disable-dependency-tracking --disable-static --prefix=$SW && \
|
||||
make && make install
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/libwebp-* && ./configure --prefix=$SW --disable-static && make && make install
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
cd $SW/build/libxml2-2.* && \
|
||||
./configure --prefix=$SW --enable-shared --disable-static --with-iconv=$SW --with-zlib=$SW --without-python --without-debug --disable-dependency-tracking && make && make install
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
cd $SW/build/libxslt-*
|
||||
./configure --prefix=$SW --enable-shared --disable-static --without-python --without-debug --disable-dependency-tracking --with-libxml-prefix=$SW && make && make install
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/lxml-3* && rm -rf build/* && python setup.py install
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
export CPPFLAGS=$CFLAGS
|
||||
|
||||
cd $SW/build/mozjpeg && \
|
||||
./configure --prefix=$SW/private/mozjpeg --disable-dependency-tracking --disable-shared --with-jpeg8 --without-turbojpeg && make && make install
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $SW/build/nasm* && \
|
||||
./configure --prefix=$SW && make -j2 && make install
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/ncurses-* && \
|
||||
./configure --prefix=$SW --with-shared --without-debug --without-ada --enable-widec && make && make install
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/netifaces-* && python setup.py build && cp build/*/netifaces.so $SW/lib/python*/site-packages/
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
if [[ `uname -m` == "i686" ]]; then
|
||||
openssltarget=linux-elf;
|
||||
optflags=''
|
||||
else
|
||||
openssltarget=linux-x86_64;
|
||||
optflags='enable-ec_nistp_64_gcc_128';
|
||||
fi
|
||||
|
||||
cd $SW/build/openssl-* && \
|
||||
./Configure --prefix=/usr --openssldir=/etc/ssl shared zlib $optflags $openssltarget -Wa,--noexecstack $CFLAGS $LDFLAGS && make && make test && \
|
||||
rm -rf $SW/openssl && rm -rf $SW/include/openssl && rm -f $SW/lib/libcrypto* $SW/lib/libssl* && \
|
||||
make INSTALL_PREFIX=$SW/openssl install_sw && cp -ra $SW/openssl/usr/include/openssl $SW/include/ && cp -a $SW/openssl/usr/lib/lib*.so* $SW/lib && \
|
||||
rm -rf $SW/openssl
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
export CPPFLAGS=$CFLAGS
|
||||
|
||||
cd $SW/build/optipng* && \
|
||||
./configure -prefix=$SW -with-system-libs && make && make install
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $SW/build/Pillow* && \
|
||||
echo Disabling zip_safe && \
|
||||
python -c "f = open('setup.py', 'r+b'); raw = f.read(); import re; raw = re.sub(r'zip_safe\s*=\s*True', 'zip_safe=False', raw); f.seek(0); f.truncate(0); f.write(raw)" && \
|
||||
python setup.py install
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/libplist-* && \
|
||||
./configure --without-cython --disable-dependency-tracking --prefix=$SW && \
|
||||
make && make install
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
export CMAKE_INCLUDE_PATH=$SW/include
|
||||
export CMAKE_LIBRARY_PATH=$SW/lib
|
||||
|
||||
cd $SW/build/podofo* && \
|
||||
rm -rf $SW/include/podofo && \
|
||||
rm -rf podofo-build && mkdir podofo-build && \
|
||||
cd podofo-build && \
|
||||
|
||||
echo "Running cmake..." && \
|
||||
|
||||
cmake -G "Unix Makefiles" -Wno-dev \
|
||||
-DFREETYPE_INCLUDE_DIR=$SW/include/freetype2 \
|
||||
-DFREETYPE_LIBRARIES=-lfreetype \
|
||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
||||
-DPODOFO_BUILD_SHARED:BOOL=TRUE \
|
||||
-DPODOFO_BUILD_STATIC:BOOL=FALSE \
|
||||
-DCMAKE_INSTALL_PREFIX=$SW \
|
||||
.. && \
|
||||
make VERBOSE=0 podofo_shared && \
|
||||
rm -rf $SW/lib/libpodofo* $SW/include/podofo && \
|
||||
mkdir $SW/include/podofo && \
|
||||
cp src/libpodofo* $SW/lib && \
|
||||
cp -r podofo_config.h ../src/* $SW/include/podofo/
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
export FONTCONFIG_CFLAGS="-I$SW/include/fontconfig -I$SW/include"
|
||||
export FONTCONFIG_LIBS="-L$SW/lib -lfontconfig"
|
||||
export FREETYPE_CFLAGS="-I$SW/include/freetype2 -I$SW/include"
|
||||
export FREETYPE_LIBS="-L$SW/lib -lfreetype -lz"
|
||||
export FREETYPE_CONFIG="$SW/bin/freetype-config"
|
||||
export LIBJPEG_LIBS="-L$SW/lib -ljpeg"
|
||||
export LIBPNG_LIBS="-L$SW/lib -lpng"
|
||||
export LIBPNG_CFLAGS="-I$SW/include/libpng16"
|
||||
|
||||
cd $SW/build/poppler* && \
|
||||
./configure --prefix $SW --without-x --enable-shared --disable-dependency-tracking --disable-silent-rules --enable-zlib --enable-splash-output --disable-cairo-output --disable-poppler-glib --disable-poppler-qt4 --disable-poppler-qt5 --disable-poppler-cpp --disable-gtk-test --enable-libjpeg --enable-compile-warnings=no && make V=1 && make install
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/psutil-* && python setup.py build && cp -r build/lib*/* $SW/lib/python2.7/site-packages/
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/PyQt-gpl-* && \
|
||||
python configure.py --verbose --confirm-license -c -j10 --no-designer-plugin --no-qml-plugin --no-docstrings && \
|
||||
make -j2 && make install
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
export CFLAGS="$CFLAGS -DHAVE_LOAD_EXTENSION"
|
||||
|
||||
# Needed otherwise _ssl module fails to import because system openssl is too old
|
||||
export LD_LIBRARY_PATH=$SW/lib
|
||||
|
||||
cd $SW/build/Python-* && \
|
||||
./configure --prefix=$SW --enable-ipv6 --enable-unicode=ucs4 --with-signal-module --with-threads --with-pymalloc --with-system-expat --enable-shared && make -j2 && make install
|
||||
|
||||
# Install setuptools as described in windows/notes.
|
||||
# Use setuptools to install the various python packages
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# See windows/notes.rst for instructions on slimming down Qt.
|
||||
|
||||
# We disable loading of bearer plugins because many distros ship with broken bearer plugins that cause hangs.
|
||||
# At least, this was the case in Qt 4.x Dont know if it is still true for Qt 5 but since we dont need bearers anyway, it cant hurt.
|
||||
|
||||
cd $SW/build/qt-* && sed -i -e 's:/bearer":/bearer-disabled-by-kovid":' qtbase/src/network/bearer/qnetworkconfigmanager_p.cpp || die "sed for bearer failed."
|
||||
|
||||
# Change pointing_hand to hand2, see https://bugreports.qt.io/browse/QTBUG-41151
|
||||
|
||||
cd $SW/build/qt-* && sed -i -e 's:pointing_hand":hand2":' qtbase/src/plugins/platforms/xcb/qxcbcursor.cpp || die "sed for pointing_hand failed."
|
||||
|
||||
# libudev is disabled because systemd based distros use libudev.so.1 while non systemd based distros use libudev.so.0 (debian stable currently uses libudev.so.0). And according to the incompetent udev developers, we cannot use mismatching udev client and daemon versions. http://www.marshut.com/yiqmk/can-apps-ship-their-own-copy-of-libudev.html
|
||||
|
||||
rm -rf build && mkdir build && cd build && \
|
||||
../configure -opensource -confirm-license -prefix $SW/qt -release -nomake examples -nomake tests -no-sql-odbc -no-sql-psql -no-qml-debug -qt-xcb -cups -no-c++11 -force-pkg-config -pulseaudio -no-libudev -openssl -gtkstyle -icu $CFLAGS $LDFLAGS && \
|
||||
make -j4 && rm -rf $SW/qt && make install
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/readline* && \
|
||||
./configure --prefix=$SW --disable-static && make && make install
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/sip-* && \
|
||||
python configure.py && make && make install
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
export CFLAGS="$CFLAGS"
|
||||
cd $SW/build/sqlite-* &&\
|
||||
./configure --prefix=$SW --disable-dependency-tracking --disable-static && make && make install
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Apply the patch to prevent detection of WIFI devices, from http://www.mobileread.com/forums/showthread.php?t=255234
|
||||
|
||||
export libplist_CFLAGS="-I$SW/include"
|
||||
export libplist_LIBS="-L$SW/lib -lplist"
|
||||
export CPPFLAGS="$CFLAGS"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
|
||||
cd $SW/build/libusbmuxd-* && \
|
||||
./configure --prefix=$SW --disable-dependency-tracking && \
|
||||
make && make install
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $SW/build/xpyb && ./autogen.sh && ./configure --prefix=$SW && make && make install
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
cd $SW/build/zlib-* && \
|
||||
./configure --prefix=$SW && make && make install
|
||||
Reference in New Issue
Block a user