Commits

Leyorus committed 8a15285

fix cmake build (thanks to AUR user 'benjarobin')

  • Participants
  • Parent commits 1d5dbc2
  • Tags v0.9.2

Comments (0)

Files changed (3)

pkg/archlinux/default-build/PKGBUILD

 # Contributor: Leyorus <leyorus@gmail.com>
 pkgname=mkvextract-gtk
 pkgver=0.9.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Simple Linux GUI to extract tracks from matroska (mkv) files"
 arch=(any)
 conflicts=('mkvextract-gtk-git')
 url="https://bitbucket.org/Leyorus/mkvextract-gtk/"
 license=('GPL2')
 depends=('mkvtoolnix-cli')
+makedepends=('gcc' 'cmake' 'boost')
 source="https://bitbucket.org/Leyorus/mkvextract-gtk/get/v0.9.1.tar.gz"
 md5sums=('aa0ff7de372be15113218fa0b6e5f326')
 

pkg/archlinux/git-build/PKGBUILD

 # Contributor: Leyorus <leyorus@gmail.com>
 pkgname=mkvextract-gtk-git
 pkgver=20130202
-pkgrel=1
+pkgrel=2
 pkgdesc="Simple Linux GUI to extract tracks from matroska (mkv) files"
 conflicts=('mkvextract-gtk')
 arch=(any)
 url="https://bitbucket.org/Leyorus/mkvextract-gtk/"
 license=('GPL2')
 depends=('mkvtoolnix-cli')
-makedepends=('git' 'cmake')
+makedepends=('git' 'gcc' 'cmake' 'boost')
 _gitroot="https://bitbucket.org/Leyorus/mkvextract-gtk.git"
 _gitname="mkvextract-gtk"
 

src/CMakeLists.txt

 add_subdirectory(yamka) 
 
 find_package(PkgConfig)
+find_package(Threads)
 
 pkg_check_modules(GTKMM gtkmm-2.4) # look into FindPkgConfig.cmake, 
 
-set(CMAKE_CXX_FLAGS "-g -Wall")
+set(CMAKE_CXX_FLAGS "-Wall")
 
 
 file(GLOB_RECURSE core_source_files	core/* )
 	${GTKMM_LIBRARIES}
 	yamka
 	util # usefull for forkpty() function
+	${CMAKE_THREAD_LIBS_INIT}
 	)
 
 install(TARGETS 
     IMMEDIATE @ONLY)
 
 add_custom_target(uninstall
-    COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
+    COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)