From d59860b69dd83bb2584b0ebb18170702f04959f9 Mon Sep 17 00:00:00 2001 From: doitux Date: Fri, 30 May 2008 18:26:01 +0000 Subject: [PATCH] pro files patch for BSD (thx jbriz) --- pokerth_game.pro | 12 ++++++++++-- pokerth_server.pro | 10 +++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/pokerth_game.pro b/pokerth_game.pro index c8876897..0a5fe623 100644 --- a/pokerth_game.pro +++ b/pokerth_game.pro @@ -347,13 +347,21 @@ unix: !mac{ libSDL_mixer, libSDL --> http://www.libsdl.org/") } + UNAME = $$system(uname -s) + BSD = $$find(UNAME, "BSD") + LIBS += -lpokerth_lib LIBS += $$BOOST_LIBS - LIBS += -lgnutls-openssl -lgcrypt -lSDL_mixer -lcurl -lz + LIBS += -lSDL_mixer -lcurl + !isEmpty( BSD ) { + LIBS += -lcrypto + } else { + LIBS += -lgnutls-openssl -lgcrypt + } TARGETDEPS += ./lib/libpokerth_lib.a ##### My release static libs - #LIBS += -lgcrypt_static -lgpg-error_static -lgnutls-openssl_static -lgnutls_static -lSDL_mixer_static -lSDL -lmikmod -lcurl -lz + #LIBS += -lgcrypt_static -lgpg-error_static -lgnutls-openssl_static -lgnutls_static -lSDL_mixer_static -lSDL -lmikmod -lcurl #### INSTALL #### diff --git a/pokerth_server.pro b/pokerth_server.pro index e21f2ad1..a1bc7d53 100644 --- a/pokerth_server.pro +++ b/pokerth_server.pro @@ -203,9 +203,17 @@ unix : !mac { libboost (version >= 1.34.1) --> http://www.boost.org/") } + UNAME = $$system(uname -s) + BSD = $$find(UNAME, "BSD") + LIBS += -lpokerth_lib LIBS += $$BOOST_LIBS - LIBS += -lgnutls-openssl -lgcrypt -lcurl + LIBS += -lcurl + !isEmpty( BSD ) { + LIBS += -lcrypto -liconv + } else { + LIBS += -lgnutls-openssl -lgcrypt + } TARGETDEPS += ./lib/libpokerth_lib.a