Kovid Goyal 95f29656fa 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.
2016-06-20 11:03:03 +05:30

26 lines
802 B
Bash
Executable File

#!/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/