CMake conversion.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/4/head
Michele Calgaro 9 months ago
parent f3116341d0
commit bc7518bdba
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -0,0 +1,94 @@
############################################
# #
# Improvements and feedbacks are welcome #
# #
# This file is released under GPL >= 3 #
# #
############################################
cmake_minimum_required( VERSION 3.1 )
#### general package setup
project( tderadio )
#### include essential cmake modules
include( FindPkgConfig )
include( CheckSymbolExists )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
#### include our cmake modules
include( TDEMacros )
##### set version number ########################
tde_set_project_version( )
##### setup install paths
include( TDESetupPaths )
tde_setup_paths( )
##### optional stuff
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
option( WITH_LAME "Enable lame support" ${WITH_ALL_OPTIONS} )
option( WITH_OGG "Enable ogg/vorbis support" ${WITH_ALL_OPTIONS} )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
##### user requested modules
option( BUILD_ALL "Build all" ON )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
option( BUILD_ALSA_PLUGIN "Build ALSA plugin" ${BUILD_ALL} )
option( BUILD_LIRC_PLUGIN "Build LIRC plugin" ${BUILD_ALL} )
option( BUILD_OSS_PLUGIN "Build OSS plugin" ${BUILD_ALL} )
##### configure checks
include( ConfigureChecks.cmake )
###### global compiler settings
add_definitions( -DHAVE_CONFIG_H )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
##### directories
add_subdirectory( convert-presets )
add_subdirectory( icons )
add_subdirectory( plugins )
add_subdirectory( presets )
add_subdirectory( src )
##### other data ################################
tde_conditional_add_project_docs( BUILD_DOC )
##### write configure files
configure_file( config.h.cmake config.h @ONLY )

@ -0,0 +1,94 @@
###########################################
# #
# Improvements and feedback are welcome #
# #
# This file is released under GPL >= 3 #
# #
###########################################
# required stuff
find_package( TQt )
find_package( TDE )
tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
tde_setup_largefiles( )
##### check for gcc visibility support
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( WITH_GCC_VISIBILITY )
##### check for ALSA #####
if( BUILD_ALSA_PLUGIN )
find_package( ALSA )
if( NOT ALSA_FOUND )
tde_message_fatal( "alsa support is requested, but was not found on your system" )
endif( NOT ALSA_FOUND )
endif( BUILD_ALSA_PLUGIN )
###### check for LAME #####
if( WITH_LAME )
check_include_file( lame/lame.h HAVE_LAME_H )
if( NOT HAVE_LAME_H )
tde_message_fatal( "lame is requested, but not found on your system" )
endif( )
check_library_exists( mp3lame lame_init "" HAVE_LAME )
if( NOT HAVE_LAME )
tde_message_fatal( "mp3lame is requested, but not found on your system" )
endif( )
set( HAVE_LAME 1 )
set( LAME_LIBRARIES mp3lame CACHE INTERNAL "" FORCE )
endif( WITH_LAME )
##### check for LIRC #####
if( BUILD_LIRC_PLUGIN )
pkg_search_module( LIRC lirc )
if( NOT LIRC_FOUND )
tde_message_fatal( "lirc support is requested, but was not found on your system" )
endif( NOT LIRC_FOUND )
endif( BUILD_LIRC_PLUGIN )
##### check for OGG/Vorbis #####
if( WITH_OGG )
pkg_search_module( VORBIS vorbis )
pkg_search_module( VORBISFILE vorbisfile )
pkg_search_module( VORBISENC vorbisenc )
pkg_search_module( OGG ogg )
if( NOT VORBIS_FOUND )
tde_message_fatal( "vorbis is requested, but was not found on your system" )
elseif( NOT VORBISFILE_FOUND OR NOT VORBISENC_FOUND OR NOT OGG_FOUND )
tde_message_fatal( "vorbis is requested, but some of it's essential parts wasn't found on your system" )
endif( )
set( HAVE_OGG 1 )
endif( WITH_OGG )
##### check for sndfile #####
pkg_search_module( SNDFILE sndfile )
if( NOT SNDFILE_FOUND )
tde_message_fatal( "sndfile is required, but was not found on your system" )
endif( )
##### Check for videodev #####
check_include_file( "linux/videodev2.h" HAVE_VIDEODEV2_H )
if( HAVE_VIDEODEV2_H )
set( HAVE_V4L2 1 )
endif( )

@ -1,16 +1,3 @@
Note on automake/autoconf versions
==================================
TDERadio should build with automake >= 1.6.1 and autoconf 2.5*
If you have such a version but configure/make complains it needs e.g.
automake 1.7.x you should try to run
make -f Makefile.dist
before you run ./configure.
Basic Installation
==================
@ -53,7 +40,7 @@ The simplest way to compile this package is:
documentation.
4. You can remove the program binaries and object files from the
source code directory by typing `make clean'.
source code directory by typing `make clean'.
Compilers and Options
=====================

@ -1,72 +0,0 @@
This is a comfortable radio application for KDE 3.x.
You can get the latest version from
http://sourceforge.net/projects/tderadio/
------------------
Mailing Lists
------------------
http://lists.sourceforge.net/lists/listinfo/tderadio-user
http://lists.sourceforge.net/lists/listinfo/tderadio-devel
http://lists.sourceforge.net/lists/listinfo/tderadio-announce
------------------
Compile CVS tree
------------------
First checkout tderadio from CVS
mkdir tderadio-cvs
cd tderadio-cvs
# next follow instructions on http://sourceforge.net/cvs/?group_id=45668
cd tderadio
and compile it
make -f Makefile.dist
./configure
make
make install
-------------------
Configuration files
-------------------
gui, alarms, etc.:
<dot-tdedir>/share/config/tderadiorc
stations (xml-format):
<dot-tdedir>/share/apps/tderadio/stations.krp
systemwide presets (xml-format):
<tdedir>/share/apps/tderadio/presets/<country>/<city>-<media>.krp
------------------
lirc support
------------------
lirc support is realized by the lirc_client lib. It should be detected
automatically by ./configure. This library is used to translate the
remote control key names to names used by tderadio, and may additionally
be used for state management (tv, etc). An example for an apropriate
.lircrc file can be found in ./tderadio/dot-lircrc.example.
Names used by tderadio:
TV powerOff, give tv program a chance
0..9 numerical station selection
CH+ frequency increment
CH- frequency decrement
VOL+ volume increment
VOL- volume decrement
CH-SEARCH beachward station search
CH+SEARCH forward statino search
POWER power tderadio on/off
RADIO power tderadio on
SLEEP enable sleep countdown
NEXT next station in list
PREV prev station in list
QUIT quit tderadio application

@ -0,0 +1,61 @@
TDERadio - a comfortable radio application for TDE
Requirements
------------
- v4l or v4l2 enabled kernel
- libsndfile (development package or header for compilation, library for execution)
- libmp3lame (for mp3 encoding)
- oss support (mixer, dsp/pcm) ??
- radio card ;)
Configuration files
---------------------
gui, alarms, etc.:
.trinity/share/config/tderadiorc
stations (xml-format):
.trinity/share/apps/tderadio/stations.krp
systemwide presets (xml-format):
<tdedir>/share/apps/tderadio/presets/<country>/<city>-<media>.krp
lirc support
--------------
lirc support is realized by the lirc_client lib. This library is used to
translate the remote control key names to names used by tderadio, and may
additionally be used for state management (tv, etc).
Names used by tderadio:
TV powerOff, give tv program a chance
0..9 numerical station selection
CH+ frequency increment
CH- frequency decrement
VOL+ volume increment
VOL- volume decrement
CH-SEARCH beachward station search
CH+SEARCH forward statino search
POWER power tderadio on/off
RADIO power tderadio on
SLEEP enable sleep countdown
NEXT next station in list
PREV prev station in list
QUIT quit tderadio application
.
Contributing
--------------
If you wish to contribute to TDERadio, you might do so:
- TDE Gitea Workspace (TGW) collaboration tool.
https://mirror.git.trinitydesktop.org/gitea
- TDE Weblate Translation Workspace (TWTW) collaboration tool.
https://mirror.git.trinitydesktop.org/weblate

@ -57,8 +57,6 @@ FUTURE
======
* mediacontrol applet integration
* dcop interface
* compile with -DTQT_NO_ASCII_CAST (see src/Makefile.am)
(necessary for Qt4)
* just grep for FIXME and TODO...

@ -0,0 +1,17 @@
#define VERSION "@VERSION@"
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
// Defined if LAME support found
#cmakedefine HAVE_LAME
// Defined if OGG/Vorbis support found
#cmakedefine HAVE_OGG
// Defined if videodev2 support found
#cmakedefine HAVE_V4L2

@ -0,0 +1,26 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### convert_presets (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### convert_presets (executable)
tde_add_executable( convert-presets AUTOMOC
SOURCES convert-presets.cpp
LINK tdecore-shared tdeui-shared
DESTINATION ${BIN_INSTALL_DIR}
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,150 @@
.\" This file was generated by kdemangen.pl
.TH CONVERT\-PRESETS 1 "Dec 2005" "Trinity Desktop Environment" "convert-presets"
.SH NAME
convert\-presets
\- convert-presets
.SH SYNOPSIS
convert\-presets [Qt\-options] [TDE\-options] [options] [preset files]
.SH DESCRIPTION
convert-presets
.SH OPTIONS
.SS
.SS Arguments:
.TP
.B preset
files preset file to convert
.SS Options:
-q be quiet
.SS
.SS Generic options:
.TP
.B \-\-help
Show help about options
.TP
.B \-\-help\-qt
Show Qt specific options
.TP
.B \-\-help\-tde
Show TDE specific options
.TP
.B \-\-help\-all
Show all options
.TP
.B \-\-author
Show author information
.TP
.B \-v, \-\-version
Show version information
.TP
.B \-\-license
Show license information
.TP
.B \-\-
End of options
.SS
.SS TDE options:
.TP
.B \-\-caption <caption>
Use 'caption' as name in the titlebar
.TP
.B \-\-icon <icon>
Use 'icon' as the application icon
.TP
.B \-\-miniicon <icon>
Use 'icon' as the icon in the titlebar
.TP
.B \-\-config <filename>
Use alternative configuration file
.TP
.B \-\-dcopserver <server>
Use the DCOP Server specified by 'server'
.TP
.B \-\-nocrashhandler
Disable crash handler, to get core dumps
.TP
.B \-\-waitforwm
Waits for a WM_NET compatible windowmanager
.TP
.B \-\-style <style>
sets the application GUI style
.TP
.B \-\-geometry <geometry>
sets the client geometry of the main widget - see man X for the argument format
.SS
.SS Qt options:
.TP
.B \-\-display <displayname>
Use the X-server display 'displayname'
.TP
.B \-\-session <sessionId>
Restore the application for the given 'sessionId'
.TP
.B \-\-cmap
Causes the application to install a private color
map on an 8-bit display
.TP
.B \-\-ncols <count>
Limits the number of colors allocated in the color
cube on an 8-bit display, if the application is
using the QApplication::ManyColor color
specification
.TP
.B \-\-nograb
tells Qt to never grab the mouse or the keyboard
.TP
.B \-\-dograb
running under a debugger can cause an implicit
-nograb, use -dograb to override
.TP
.B \-\-sync
switches to synchronous mode for debugging
.TP
.B \-\-fn, \-\-font <fontname>
defines the application font
.TP
.B \-\-bg, \-\-background <color>
sets the default background color and an
application palette (light and dark shades are
calculated)
.TP
.B \-\-fg, \-\-foreground <color>
sets the default foreground color
.TP
.B \-\-btn, \-\-button <color>
sets the default button color
.TP
.B \-\-name <name>
sets the application name
.TP
.B \-\-title <title>
sets the application title (caption)
.TP
.B \-\-visual TrueColor
forces the application to use a TrueColor visual on
an 8-bit display
.TP
.B \-\-inputstyle <inputstyle>
sets XIM (X Input Method) input style. Possible
values are onthespot, overthespot, offthespot and
root
.TP
.B \-\-im <XIM server>
set XIM server
.TP
.B \-\-noxim
disable XIM
.TP
.B \-\-reverse
mirrors the whole layout of widgets
.SS
.SH SEE ALSO
Full user documentation is available through the TDE Help Center. You can also enter the URL
.BR help:/convert\-presets/
directly into konqueror or you can run
.BR "`khelpcenter help:/convert\-presets/'"
from the command-line.
.br
.SH AUTHORS
Ernst Martin Witte, Klas Kalass
.nf

@ -0,0 +1,147 @@
.\" This file was generated by kdemangen.pl
.TH KRADIO 1 "Dec 2005" "Trinity Desktop Environment" "TDERadio"
.SH NAME
tderadio
\- TDERadio
.SH SYNOPSIS
tderadio [Qt\-options] [TDE\-options]
.SH DESCRIPTION
TDERadio
.SH OPTIONS
.SS Generic options:
.TP
.B \-\-help
Show help about options
.TP
.B \-\-help\-qt
Show Qt specific options
.TP
.B \-\-help\-tde
Show TDE specific options
.TP
.B \-\-help\-all
Show all options
.TP
.B \-\-author
Show author information
.TP
.B \-v, \-\-version
Show version information
.TP
.B \-\-license
Show license information
.TP
.B \-\-
End of options
.SS
.SS TDE options:
.TP
.B \-\-caption <caption>
Use 'caption' as name in the titlebar
.TP
.B \-\-icon <icon>
Use 'icon' as the application icon
.TP
.B \-\-miniicon <icon>
Use 'icon' as the icon in the titlebar
.TP
.B \-\-config <filename>
Use alternative configuration file
.TP
.B \-\-dcopserver <server>
Use the DCOP Server specified by 'server'
.TP
.B \-\-nocrashhandler
Disable crash handler, to get core dumps
.TP
.B \-\-waitforwm
Waits for a WM_NET compatible windowmanager
.TP
.B \-\-style <style>
sets the application GUI style
.TP
.B \-\-geometry <geometry>
sets the client geometry of the main widget - see man X for the argument format
.SS Qt options:
.TP
.B \-\-display <displayname>
Use the X-server display 'displayname'
.TP
.B \-\-session <sessionId>
Restore the application for the given 'sessionId'
.TP
.B \-\-cmap
Causes the application to install a private color
map on an 8-bit display
.TP
.B \-\-ncols <count>
Limits the number of colors allocated in the color
cube on an 8-bit display, if the application is
using the QApplication::ManyColor color
specification
.TP
.B \-\-nograb
tells Qt to never grab the mouse or the keyboard
.TP
.B \-\-dograb
running under a debugger can cause an implicit
-nograb, use -dograb to override
.TP
.B \-\-sync
switches to synchronous mode for debugging
.TP
.B \-\-fn, \-\-font <fontname>
defines the application font
.TP
.B \-\-bg, \-\-background <color>
sets the default background color and an
application palette (light and dark shades are
calculated)
.TP
.B \-\-fg, \-\-foreground <color>
sets the default foreground color
.TP
.B \-\-btn, \-\-button <color>
sets the default button color
.TP
.B \-\-name <name>
sets the application name
.TP
.B \-\-title <title>
sets the application title (caption)
.TP
.B \-\-visual TrueColor
forces the application to use a TrueColor visual on
an 8-bit display
.TP
.B \-\-inputstyle <inputstyle>
sets XIM (X Input Method) input style. Possible
values are onthespot, overthespot, offthespot and
root
.TP
.B \-\-im <XIM server>
set XIM server
.TP
.B \-\-noxim
disable XIM
.TP
.B \-\-reverse
mirrors the whole layout of widgets
.SS
.SH SEE ALSO
Full user documentation is available through the TDE Help Center. You can also enter the URL
.BR help:/tderadio/
directly into konqueror or you can run
.BR "`khelpcenter help:/tderadio/'"
from the command-line.
.br
.SH AUTHORS
.nf
Martin Witte <witte@kawo1.rwth-aachen.de>
.br
Marcus Camen <mcamen@mcamen.de>
.br
Klas Kalass <klas.kalass@gmx.de>
.br

@ -0,0 +1 @@
tde_install_icons( )

@ -0,0 +1,14 @@
tde_conditional_add_subdirectory( BUILD_ALSA_PLUGIN alsa-sound )
add_subdirectory( gui-docking-menu )
add_subdirectory( gui-error-log )
add_subdirectory( gui-quickbar )
add_subdirectory( gui-standard-display )
tde_conditional_add_subdirectory( BUILD_LIRC_PLUGIN lirc )
tde_conditional_add_subdirectory( BUILD_OSS_PLUGIN oss-sound )
add_subdirectory( radio )
add_subdirectory( recording )
add_subdirectory( soundserver )
add_subdirectory( streaming )
add_subdirectory( timecontrol )
add_subdirectory( timeshifter )
add_subdirectory( v4lradio )

@ -0,0 +1,31 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### alsa-sound (icons and translations)
add_subdirectory( icons )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### alsa-sound (plugin)
tde_add_kpart( libalsa-sound AUTOMOC
SOURCES
alsa-sound.cpp alsa-sound-configuration-ui.ui
alsa-sound-configuration.cpp alsa-mixer-element-ui.ui
alsa-mixer-element.cpp alsa-config-mixer-setting.cpp
LINK tderadio-shared ${ALSA_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,28 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### gui-docking-menu (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### gui-docking-menu (plugin)
tde_add_kpart( libdocking-menu AUTOMOC
SOURCES docking-configuration.cpp docking.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,27 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### gui-error-log (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### gui-error-log (plugin)
tde_add_kpart( liberror-log AUTOMOC
SOURCES errorlog.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,29 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
${SNDFILE_LIBRARY_DIRS}
)
##### gui-quickbar (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### gui-quickbar (plugin)
tde_add_kpart( libquickbar AUTOMOC
SOURCES buttonflowlayout.cpp quickbar.cpp quickbar-configuration.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,31 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### gui-standard-display (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### gui-standard-display (plugin)
tde_add_kpart( libstandard-display AUTOMOC
SOURCES
displaycfg.cpp displaycfg_interfaces.cpp radioview-configuration.cpp
radioview.cpp radioview_element.cpp radioview_frequencyradio.cpp
radioview_frequencyseeker.cpp radioview_volume.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,35 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### lirc (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### lirc (plugin)
tde_add_kpart( liblirc AUTOMOC
SOURCES lircsupport.cpp lirc-configuration-ui.ui lirc-configuration.cpp listviewitem_lirc.cpp
LINK tderadio-shared ${LIRC_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)
##### other data
INSTALL(
FILES default-dot-lircrc
DESTINATION ${DATA_INSTALL_DIR}/tderadio
)

@ -17,9 +17,7 @@
#include "lircsupport.h"
#ifdef HAVE_LIRC
#include <lirc/lirc_client.h>
#endif
#include <tqsocketnotifier.h>
#include <tqtimer.h>
@ -43,9 +41,7 @@
///////////////////////////////////////////////////////////////////////
//// plugin library functions
//#ifdef HAVE_LIRC
PLUGIN_LIBRARY_FUNCTIONS(LircSupport, "tderadio-lirc", i18n("Linux Infrared Control (LIRC) Support"));
//#endif
/////////////////////////////////////////////////////////////////////////////
@ -54,7 +50,6 @@ LircSupport::LircSupport(const TQString &name)
m_TakeRawLIRC(false)
{
#ifdef HAVE_LIRC
logDebug(i18n("initializing tderadio lirc plugin"));
fprintf (stderr, "%s\n", (const char*)i18n("initializing tderadio lirc plugin").utf8());
char *prg = (char*)"tderadio";
@ -111,7 +106,6 @@ LircSupport::LircSupport(const TQString &name)
logDebug(i18n("Initializing tderadio lirc plugin successful"));
fprintf (stderr, "%s\n", (const char*)i18n("Initializing tderadio lirc plugin successful").utf8());
}
#endif
m_kbdTimer = new TQTimer (this);
TQObject::connect (m_kbdTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotKbdTimedOut()));
@ -122,20 +116,17 @@ LircSupport::LircSupport(const TQString &name)
LircSupport::~LircSupport()
{
#ifdef HAVE_LIRC
if (m_fd_lirc != -1)
lirc_deinit();
if (m_lircConfig)
lirc_freeconfig(m_lircConfig);
m_fd_lirc = -1;
m_lircConfig = 0;
#endif
}
void LircSupport::slotLIRC(int /*socket*/ )
{
#ifdef HAVE_LIRC
if (!m_lircConfig || !m_lirc_notify || m_fd_lirc == -1)
return;
@ -173,7 +164,6 @@ void LircSupport::slotLIRC(int /*socket*/ )
if (code)
free (code);
#endif
}

@ -141,11 +141,9 @@ signals:
protected:
#ifdef HAVE_LIRC
TQSocketNotifier *m_lirc_notify;
int m_fd_lirc;
struct lirc_config *m_lircConfig;
#endif
TQTimer *m_kbdTimer;
int m_addIndex;

@ -0,0 +1 @@
tde_add_project_translations()

@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2020-05-11 04:30+0200\n"
"POT-Creation-Date: 2022-07-09 17:53+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -129,46 +129,46 @@ msgstr ""
msgid "Double Click on the entries to change the assignments"
msgstr ""
#: lircsupport.cpp:47
#: lircsupport.cpp:44
msgid "Linux Infrared Control (LIRC) Support"
msgstr ""
#: lircsupport.cpp:53 lircsupport.cpp:332
#: lircsupport.cpp:49 lircsupport.cpp:322
msgid "LIRC Plugin"
msgstr ""
#: lircsupport.cpp:58 lircsupport.cpp:59
#: lircsupport.cpp:53 lircsupport.cpp:54
msgid "initializing tderadio lirc plugin"
msgstr ""
#: lircsupport.cpp:67
#: lircsupport.cpp:62
msgid ""
"%1 does not exist. File was created with TDERadio's default .lircrc proposal"
msgstr ""
#: lircsupport.cpp:96
#: lircsupport.cpp:91
msgid "There is no entry for tderadio in any of your .lircrc files."
msgstr ""
#: lircsupport.cpp:97
#: lircsupport.cpp:92
msgid "Please setup your .lircrc files correctly."
msgstr ""
#: lircsupport.cpp:108 lircsupport.cpp:109
#: lircsupport.cpp:103 lircsupport.cpp:104
msgid "Initializing tderadio lirc plugin failed"
msgstr ""
#: lircsupport.cpp:111 lircsupport.cpp:112
#: lircsupport.cpp:106 lircsupport.cpp:107
msgid "Initializing tderadio lirc plugin successful"
msgstr ""
#: lircsupport.cpp:169
#: lircsupport.cpp:160
msgid ""
"Reading from LIRC socket failed. Disabling LIRC Functions till next start of "
"tderadio"
msgstr ""
#: lircsupport.cpp:331
#: lircsupport.cpp:321
msgid "LIRC Support"
msgstr ""

@ -0,0 +1,28 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### oss-sound (icons and translations)
add_subdirectory( icons )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### oss-sound (plugin)
tde_add_kpart( liboss-sound AUTOMOC
SOURCES oss-sound.cpp oss-sound-configuration-ui.ui oss-sound-configuration.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,28 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### radio (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### radio (plugin)
tde_add_kpart( libradio AUTOMOC
SOURCES radio-configuration.cpp radio-configuration-ui.ui radio.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,33 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### recording (icons and translations)
add_subdirectory( icons )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### recording (plugin)
tde_add_kpart( librecording AUTOMOC
SOURCES
recording-configuration.cpp recording-configuration-ui.ui recording.cpp
recording-config.cpp reccfg_interfaces.cpp encoder.cpp recording-datamonitor.cpp
recording-monitor.cpp encoder_mp3.cpp encoder_ogg.cpp encoder_pcm.cpp
LINK tderadio-shared ${LAME_LIBRARIES} ${OGG_LIBRARIES} ${VORBIS_LIBRARIES}
${VORBISFILE_LIBRARIES} ${VORBISENC_LIBRARIES} ${SNDFILE_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,27 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### soundserver (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### soundserver (plugin)
tde_add_kpart( libsoundserver AUTOMOC
SOURCES soundserver.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,31 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### streaming (icons and translations)
add_subdirectory( icons )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### streaming (plugin)
tde_add_kpart( libstreaming AUTOMOC
SOURCES
streaming.cpp streaming-configuration-ui.ui
streaming-configuration.cpp streaming-job.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,28 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### timecontrol (icons and translations)
add_subdirectory( icons )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### timecontrol (plugin)
tde_add_kpart( libtimecontrol AUTOMOC
SOURCES timecontrol-configuration.cpp timecontrol-configuration-ui.ui timecontrol.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,28 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### timeshifter (icons and translations)
add_subdirectory( icons )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )