summaryrefslogtreecommitdiffstats
path: root/tdeioslave/audiocd/plugins/lame
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-03-26 15:58:46 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-03-26 15:58:46 +0200
commit8b12682035e2ae92a29a9ce12abc5fbcf38b1192 (patch)
tree1cc5c3fe9ef3b23557fc4e9e507fd0d23d007160 /tdeioslave/audiocd/plugins/lame
parent250d713ff809fa943f614459009d1160e269dcef (diff)
downloadtdemultimedia-8b12682035e2ae92a29a9ce12abc5fbcf38b1192.tar.gz
tdemultimedia-8b12682035e2ae92a29a9ce12abc5fbcf38b1192.zip
Initial cmake conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdeioslave/audiocd/plugins/lame')
-rw-r--r--tdeioslave/audiocd/plugins/lame/CMakeLists.txt44
-rw-r--r--tdeioslave/audiocd/plugins/lame/encoderlame.cpp2
2 files changed, 45 insertions, 1 deletions
diff --git a/tdeioslave/audiocd/plugins/lame/CMakeLists.txt b/tdeioslave/audiocd/plugins/lame/CMakeLists.txt
new file mode 100644
index 00000000..da6d458b
--- /dev/null
+++ b/tdeioslave/audiocd/plugins/lame/CMakeLists.txt
@@ -0,0 +1,44 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+ ${CMAKE_SOURCE_DIR}/libkcddb
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+ ${TAGLIB_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TAGLIB_LIBRARY_DIRS}
+)
+
+
+##### libaudiocd_encoder_lame (module) ##########
+
+tde_add_kpart( libaudiocd_encoder_lame AUTOMOC
+ SOURCES
+ audiocd_lame_encoder.kcfgc
+ encoderlame.cpp
+ encoderlameconfig.ui
+ collectingprocess.cpp
+ LINK
+ tdeio-shared audiocdplugins-shared ${TAGLIB_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES audiocd_lame_encoder.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
diff --git a/tdeioslave/audiocd/plugins/lame/encoderlame.cpp b/tdeioslave/audiocd/plugins/lame/encoderlame.cpp
index 8af27620..0b3787ad 100644
--- a/tdeioslave/audiocd/plugins/lame/encoderlame.cpp
+++ b/tdeioslave/audiocd/plugins/lame/encoderlame.cpp
@@ -18,7 +18,7 @@
#include <config.h>
-#ifdef __OpenBSD__
+#if defined(__OpenBSD__) || defined(__FreeBSD__)
#include <sys/types.h>
#include <sys/endian.h>
#else