Ticket #37748: dream.pro.diff

File dream.pro.diff, 3.3 KB (added by gilles.risch@…, 11 years ago)
  • dream.pro

    old new  
    7272        FORMS += JLViewer.ui BWSViewer.ui SlideShowViewer.ui
    7373        unix {
    7474            macx {
    75                 exists(libs/qwt.framework) {
    76                     message("with qwt6")
    77                     INCLUDEPATH += libs/qwt
     75                exists(@PREFIX@/lib/qwt.framework) {
     76                    message("with macports qwt6")
     77                    INCLUDEPATH += @PREFIX@/lib/qwt.framework/Headers
    7878                    LIBS += -framework qwt
    7979                }
    8080                else {
     
    135135        }
    136136}
    137137macx {
    138     INCLUDEPATH += /Developer/dream/include /opt/local/include
    139     LIBS += -L/Developer/dream/lib -L/opt/local/lib
     138    INCLUDEPATH += @PREFIX@/include
     139    LIBS += -L@PREFIX@/lib
    140140    LIBS += -framework CoreFoundation -framework CoreServices
    141141    LIBS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit
    142142    UI_DIR = moc
    143143    MOC_DIR = moc
    144144    RC_FILE = src/GUI-QT/res/macicons.icns
    145145}
    146 exists(libs/faac.h) {
     146exists(@PREFIX@/include/faac.h) {
    147147    CONFIG += faac
    148     message("with FAAC")
     148    message("with macports FAAC")
    149149}
    150 exists(libs/neaacdec.h) {
     150exists(@PREFIX@/include/neaacdec.h) {
    151151    CONFIG += faad
    152     message("with FAAD2")
     152    message("with macports FAAD2")
    153153}
    154154unix {
    155155    target.path = /usr/bin
     
    160160                  message("with pulseaudio")
    161161              }
    162162    else {
    163     #packagesExist(portaudio-2.0) {
    164         CONFIG += portaudio
    165      PKGCONFIG += portaudio-2.0
    166                   message("with portaudio")
     163        exists(@PREFIX@/include/portaudio.h) {
     164                CONFIG += portaudio
     165                PKGCONFIG += portaudio-2.0
     166                message("with macports portaudio")
    167167              }
    168     exists(/usr/include/hamlib/rig.h) {
     168        }
     169    exists(@PREFIX@/include/hamlib/rig.h) {
    169170        CONFIG += hamlib
    170                   message("with hamlib")
     171                  message("with macports hamlib")
    171172              }
    172173    exists(/usr/local/include/hamlib/rig.h) {
    173174        CONFIG += hamlib
     
    177178        CONFIG += gps
    178179                  message("with gps")
    179180              }
    180     exists(/usr/include/pcap.h) {
     181    exists(@PREFIX@/include/pcap.h) {
    181182        CONFIG += pcap
    182                   message("with pcap")
     183                  message("with macports pcap")
    183184              }
    184185    exists(/usr/include/sndfile.h) {
    185186        CONFIG += sndfile
    186187                  message("with libsndfile")
    187188              }
    188     exists(/opt/local/include/sndfile.h) {
     189    exists(@PREFIX@/include/sndfile.h) {
    189190        CONFIG += sndfile
    190                   message("with libsndfile")
     191                  message("with macports libsndfile")
    191192              }
    192     exists(/usr/include/fftw3.h) {
     193    exists(@PREFIX@/include/fftw3.h) {
    193194        DEFINES += HAVE_FFTW3_H
    194                    LIBS += -lfftw3
    195                            message("with fftw3")
     195        LIBS += -lfftw3
     196        message("with macports fftw3")
    196197                       }
    197198    else {
    198199      exists(/usr/include/fftw.h) {
     
    307308faad {
    308309    DEFINES += HAVE_LIBFAAD \
    309310    USE_FAAD2_LIBRARY
    310     LIBS += -lfaad_drm
     311    LIBS += -lfaad
    311312}
    312313faac {
    313314    DEFINES += HAVE_LIBFAAC \
    314315    USE_FAAC_LIBRARY
    315     LIBS += -lfaac_drm
     316    LIBS += -lfaac
    316317}
    317318sndfile {
    318319    DEFINES += HAVE_LIBSNDFILE