--- graphics/imagereader.h.orig 2013-08-12 04:07:23.000000000 +0800 +++ graphics/imagereader.h 2023-08-23 10:23:58.000000000 +0800 @@ -10,7 +10,7 @@ #include #ifdef GM -#include +#include #endif class ImageReader : public QObject { --- CMakeLists.txt.orig 2013-08-12 04:07:23.000000000 +0800 +++ CMakeLists.txt 2023-08-23 11:19:01.000000000 +0800 @@ -88,8 +88,9 @@ if(PHONON) ADD_DEFINITIONS(-DPHONON) + TARGET_LINK_LIBRARIES(photoqt "phonon") if(UNIX) - SET(QT_PHONON_INCLUDE_DIR /usr/include/phonon) + SET(QT_PHONON_INCLUDE_DIR @PREFIX@/include/phonon) endif(UNIX) message("** Phonon enabled") elseif(NOT PHONON) @@ -98,7 +99,7 @@ if(GM) if(UNIX) - INCLUDE_DIRECTORIES("/usr/include/GraphicsMagick/") + INCLUDE_DIRECTORIES("@PREFIX@/include/GraphicsMagick/") endif(UNIX) TARGET_LINK_LIBRARIES(photoqt "GraphicsMagick++") ADD_DEFINITIONS(-DGM) @@ -117,8 +118,8 @@ if(UNIX) - # Set the install prefix to /usr/ - SET(PRODUCT_INSTALL_PREFIX /usr) + # Set the install prefix to @PREFIX@ + SET(PRODUCT_INSTALL_PREFIX @PREFIX@) # Install executeable INSTALL(