Fix build error, qt4-tools is needed.
Fix patch to CMakeLists.txt. Sadly on DragonFLy build fails.
This commit is contained in:
parent
88e0a6169d
commit
77fd705f5f
4 changed files with 8 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2010/11/22 21:41:47 ryo-on Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2010/12/26 12:57:47 ryo-on Exp $
|
||||
#
|
||||
|
||||
DISTNAME= qgoogletranslator-1.2.1
|
||||
|
@ -19,6 +19,7 @@ USE_LANGUAGES= c++ c
|
|||
USE_CMAKE= yes
|
||||
|
||||
FIND_PREFIX:= MPG123DIR=mpg123
|
||||
.include "../../mk/find-prefix.mk"
|
||||
|
||||
SUBST_CLASSES+= mpg123-cmd
|
||||
SUBST_STAGE.mpg123-cmd= pre-configure
|
||||
|
@ -26,7 +27,7 @@ SUBST_FILES.mpg123-cmd= src/defines.h.in
|
|||
SUBST_SED.mpg123-cmd= -e 's,/usr/bin/mpg123,${MPG123DIR}/bin/mpg123,'
|
||||
SUBST_SED.mpg123-cmd+= -e 's,/usr/local/bin/mpg123,${MPG123DIR}/bin/mpg123,'
|
||||
|
||||
.include "../../x11/qt4-tools/buildlink3.mk"
|
||||
.include "../../x11/qt4-libs/buildlink3.mk"
|
||||
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
||||
.include "../../mk/find-prefix.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
|
@ -1 +1 @@
|
|||
* for DragonFly (now qt4-lib fails to build)
|
||||
* for DragonFly
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2010/11/22 21:41:47 ryo-on Exp $
|
||||
$NetBSD: distinfo,v 1.2 2010/12/26 12:57:47 ryo-on Exp $
|
||||
|
||||
SHA1 (qgoogletranslator-1.2.1.tar.bz2) = 7c41aef23f770f462ffa3fae502fc62e8fe56453
|
||||
RMD160 (qgoogletranslator-1.2.1.tar.bz2) = 1e0032ff76be79a826d8329f5021ef6ee5fdf969
|
||||
Size (qgoogletranslator-1.2.1.tar.bz2) = 279120 bytes
|
||||
SHA1 (patch-aa) = 258684e4d34c0b8919742e6bcaf9e7c355068f67
|
||||
SHA1 (patch-ab) = 7dcd84bdefb2ae3612bb94a2e0378d70c879be7e
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: patch-ab,v 1.1.1.1 2010/11/22 21:41:47 ryo-on Exp $
|
||||
$NetBSD: patch-ab,v 1.2 2010/12/26 12:57:47 ryo-on Exp $
|
||||
|
||||
--- CMakeLists.txt.orig 2010-11-21 09:54:19.000000000 +0000
|
||||
+++ CMakeLists.txt
|
||||
|
@ -7,7 +7,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2010/11/22 21:41:47 ryo-on Exp $
|
|||
endif(${CMAKE_SYSTEM_NAME} STREQUAL Linux)
|
||||
|
||||
-if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
|
||||
+if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD" )
|
||||
+if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR ${CMAKE_SYSTEM_NAME} STREQUAL NetBSD)
|
||||
set (QGT_L10N_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/qgoogletranslator/l10n)
|
||||
-endif(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
|
||||
+endif(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
|
||||
|
@ -19,7 +19,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2010/11/22 21:41:47 ryo-on Exp $
|
|||
|
||||
# install for freebsd
|
||||
-if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
|
||||
+if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
|
||||
+if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR ${CMAKE_SYSTEM_NAME} STREQUAL NetBSD)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qgoogletranslator.desktop ${CMAKE_CURRENT_BINARY_DIR}/qgoogletranslator.desktop COPYONLY)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/artwork/icons/eyeworld_icon.png ${CMAKE_CURRENT_BINARY_DIR}/qgoogletranslator.png COPYONLY)
|
||||
install(TARGETS qgoogletranslator DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
||||
|
|
Loading…
Reference in a new issue