Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev ebuild for convenience on Gentoo. #2

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,290 changes: 1,824 additions & 466 deletions cmake/Modules/FindBoost.cmake

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions gizmod-9999.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# -*- mode: Shell-script; indent-tabs-mode: t; tab-width: 4; … -*-
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit git-r3 eutils cmake-utils

DESCRIPTION="Input event scripting utility that has special support for fancy keyboards and mice, USB dials, LIRC and USB remotes, and more."
HOMEPAGE="http://gizmod.sourceforge.net"
EGIT_REPO_URI="https://github.com/bb010g/${PN}.git"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="libvisual"

RDEPEND="x11-libs/libX11
dev-lang/python
media-libs/alsa-lib
>=dev-libs/boost-1.46.0
libvisual? ( >=media-libs/libvisual-0.4.0 )"
DEPEND="${RDEPEND}
x11-proto/xproto"

src_configure() {
local mycmakeargs=(
-DBUILD_VIS_PLUGIN="$(usex libvisual)"
)

cmake-utils_src_configure
}
15 changes: 6 additions & 9 deletions gizmod/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,22 @@ endif(COMMAND cmake_policy)
# Dependencies
##############

find_package(Boost REQUIRED)
if (NOT BOOST_PROGRAM_OPTIONS_FOUND)
message(FATAL_ERROR "Boost program_options was not found!\nPlease check your boost development library installation.")
endif (NOT BOOST_PROGRAM_OPTIONS_FOUND)
find_package(PythonLibs REQUIRED)
find_package(Boost REQUIRED COMPONENTS program_options)

#################################
# Compiler Switches
##############

include_directories(
${includes}
${includes}
${CMAKE_BINARY_DIR}
${BOOST_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${PYTHON_INCLUDE_PATH}
)

add_definitions(
${BOOST_DEFINITIONS}
${Boost_DEFINITIONS}
)

#################################
Expand Down Expand Up @@ -80,15 +77,15 @@ add_executable(gizmod
##############

link_directories(
${BOOST_LIBRARY_DIRS}
${Boost_LIBRARY_DIRS}
${GIZMOD_BINARY_DIR}/libH
${GIZMOD_BINARY_DIR}/libGizmod
)

target_link_libraries(gizmod
H
Gizmod
${BOOST_PROGRAM_OPTIONS_LIBRARY}
${Boost_PROGRAM_OPTIONS_LIBRARY}
${PYTHON_LIBRARIES}
)

Expand Down
36 changes: 11 additions & 25 deletions libGizmod/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,9 @@ endif(COMMAND cmake_policy)
# Dependencies
##############

find_package(Boost REQUIRED QUIET)
if (NOT BOOST_FILESYSTEM_FOUND)
message(FATAL_ERROR "Boost filesystem was not found!\nPlease check your boost development library installation.")
endif (NOT BOOST_FILESYSTEM_FOUND)
if (NOT BOOST_THREAD-MT_FOUND)
message(FATAL_ERROR "Boost thread was not found!\nPlease check your boost development library installation.")
endif (NOT BOOST_THREAD-MT_FOUND)
if (NOT BOOST_PYTHON_FOUND)
message(FATAL_ERROR "Boost python was not found!\nPlease check your boost development library installation.")
endif (NOT BOOST_PYTHON_FOUND)
if (NOT BOOST_SERIALIZATION_FOUND)
message(FATAL_ERROR "Boost serialization was not found!\nPlease check your boost development library installation.")
endif (NOT BOOST_SERIALIZATION_FOUND)
if (NOT BOOST_SYSTEM_FOUND)
message(FATAL_ERROR "Boost system was not found!\nPlease check your boost development library installation.")
endif (NOT BOOST_SYSTEM_FOUND)
find_package(PythonLibs REQUIRED)
set(Boost_USE_MULTITHREADED ON)
find_package(Boost REQUIRED COMPONENTS filesystem thread python serialization system)
find_package(Alsa REQUIRED)
find_package(X11 REQUIRED)

Expand All @@ -58,16 +44,16 @@ find_package(X11 REQUIRED)
##############

include_directories(
${includes}
${includes}
${CMAKE_BINARY_DIR}
${BOOST_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${X11_INCLUDE_DIR}
${ALSA_INCLUDES}
${PYTHON_INCLUDE_PATH}
)

add_definitions(
${BOOST_DEFINITIONS}
${Boost_DEFINITIONS}
)

#################################
Expand Down Expand Up @@ -115,17 +101,17 @@ set_target_properties(Gizmod PROPERTIES VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.
##############

link_directories(
${BOOST_LIBRARY_DIRS}
${Boost_LIBRARY_DIRS}
${GIZMOD_BINARY_DIR}/libH
)

target_link_libraries(Gizmod
H
${BOOST_FILESYSTEM_LIBRARY}
${BOOST_THREAD_LIBRARY}
${BOOST_SERIALIZATION_LIBRARY}
${BOOST_SYSTEM_LIBRARY}
${BOOST_PYTHON_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
${Boost_THREAD_LIBRARY}
${Boost_SERIALIZATION_LIBRARY}
${Boost_SYSTEM_LIBRARY}
${Boost_PYTHON_LIBRARY}
${PYTHON_LIBRARIES}
${ASOUND_LIBRARY}
${X11_LIBRARIES}
Expand Down
21 changes: 8 additions & 13 deletions libH/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,8 @@ endif(COMMAND cmake_policy)
# Dependencies
##############

find_package(Boost REQUIRED)
if (NOT BOOST_FILESYSTEM_FOUND)
message(FATAL_ERROR "Boost filesystem was not found!\nPlease check your boost development library installation.")
endif (NOT BOOST_FILESYSTEM_FOUND)
if (NOT BOOST_THREAD-MT_FOUND)
message(FATAL_ERROR "Boost thread was not found!\nPlease check your boost development library installation.")
endif (NOT BOOST_THREAD-MT_FOUND)
set(Boost_USE_MULTITHREADED ON)
find_package(Boost REQUIRED COMPONENTS filesystem thread)

#################################
# Compiler Switches
Expand All @@ -46,11 +41,11 @@ find_package(Boost REQUIRED)
include_directories(
${includes}
${CMAKE_BINARY_DIR}
${BOOST_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)

add_definitions(
${BOOST_DEFINITIONS}
${Boost_DEFINITIONS}
)

#################################
Expand Down Expand Up @@ -81,12 +76,12 @@ add_library(H STATIC
##############

link_directories(
${BOOST_LIBRARY_DIRS}
${Boost_LIBRARY_DIRS}
)

target_link_libraries(H
${BOOST_FILESYSTEM_LIBRARY}
${BOOST_THREAD_LIBRARY}
target_link_libraries(H
${Boost_FILESYSTEM_LIBRARY}
${Boost_THREAD_LIBRARY}
)

#################################
Expand Down
10 changes: 5 additions & 5 deletions visplugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ endif(COMMAND cmake_policy)
# Dependencies
##############

find_package(Boost REQUIRED QUIET)
find_package(PythonLibs REQUIRED)
find_package(Boost REQUIRED)
find_package(Libvisual)

#################################
Expand All @@ -44,15 +44,15 @@ if (LIBVISUAL_FOUND AND BUILD_VIS_PLUGIN)
##############

include_directories(
${includes}
${includes}
${CMAKE_BINARY_DIR}
${LIBVISUAL_INCLUDE_DIR}
${BOOST_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${PYTHON_INCLUDE_PATH}
)

add_definitions(
${BOOST_DEFINITIONS}
${Boost_DEFINITIONS}
${LIBVISUAL_DEFINITIONS}
)

Expand All @@ -71,7 +71,7 @@ add_library(actor_gizmod SHARED
##############

link_directories(
${BOOST_LIBRARY_DIRS}
${Boost_LIBRARY_DIRS}
${GIZMOD_BINARY_DIR}/libH
${GIZMOD_BINARY_DIR}/libGizmod
)
Expand Down