| @@ -1,25 +1,25 @@ | | | @@ -1,25 +1,25 @@ |
1 | $NetBSD: patch-CMakeLists.txt,v 1.1.1.1 2011/03/07 07:02:06 ryoon Exp $ | | 1 | $NetBSD: patch-CMakeLists.txt,v 1.2 2011/12/08 08:20:39 marino Exp $ |
2 | | | 2 | |
3 | --- CMakeLists.txt.orig 2010-11-21 09:54:19.000000000 +0000 | | 3 | --- CMakeLists.txt.orig 2010-11-21 09:54:19.000000000 +0000 |
4 | +++ CMakeLists.txt | | 4 | +++ CMakeLists.txt |
5 | @@ -13,9 +13,9 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL Linux) | | 5 | @@ -13,9 +13,9 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL Linux) |
6 | set (QGT_L10N_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/qgoogletranslator/l10n) | | 6 | set (QGT_L10N_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/qgoogletranslator/l10n) |
7 | endif(${CMAKE_SYSTEM_NAME} STREQUAL Linux) | | 7 | endif(${CMAKE_SYSTEM_NAME} STREQUAL Linux) |
8 | | | 8 | |
9 | -if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD) | | 9 | -if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD) |
10 | +if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR ${CMAKE_SYSTEM_NAME} STREQUAL NetBSD) | | 10 | +if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR ${CMAKE_SYSTEM_NAME} STREQUAL NetBSD OR ${CMAKE_SYSTEM_NAME} STREQUAL DragonFly) |
11 | set (QGT_L10N_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/qgoogletranslator/l10n) | | 11 | set (QGT_L10N_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/qgoogletranslator/l10n) |
12 | -endif(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD) | | 12 | -endif(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD) |
13 | +endif(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD") | | 13 | +endif(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD" OR CMAKE_SYSTEM_NAME STREQUAL "DragonFly") |
14 | | | 14 | |
15 | | | 15 | |
16 | ADD_DEFINITIONS(${QT_DEFINITIONS}) | | 16 | ADD_DEFINITIONS(${QT_DEFINITIONS}) |
17 | @@ -133,7 +133,7 @@ endif() | | 17 | @@ -133,7 +133,7 @@ endif() |
18 | | | 18 | |
19 | | | 19 | |
20 | # install for freebsd | | 20 | # install for freebsd |
21 | -if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD) | | 21 | -if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD) |
22 | +if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR ${CMAKE_SYSTEM_NAME} STREQUAL NetBSD) | | 22 | +if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR ${CMAKE_SYSTEM_NAME} STREQUAL NetBSD OR ${CMAKE_SYSTEM_NAME} STREQUAL DragonFly) |
23 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qgoogletranslator.desktop ${CMAKE_CURRENT_BINARY_DIR}/qgoogletranslator.desktop COPYONLY) | | 23 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qgoogletranslator.desktop ${CMAKE_CURRENT_BINARY_DIR}/qgoogletranslator.desktop COPYONLY) |
24 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/artwork/icons/eyeworld_icon.png ${CMAKE_CURRENT_BINARY_DIR}/qgoogletranslator.png COPYONLY) | | 24 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/artwork/icons/eyeworld_icon.png ${CMAKE_CURRENT_BINARY_DIR}/qgoogletranslator.png COPYONLY) |
25 | install(TARGETS qgoogletranslator DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) | | 25 | install(TARGETS qgoogletranslator DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) |