aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/libkcompactdisc/Makefile8
-rw-r--r--audio/libkcompactdisc/files/extrapatch-no_alsa16
2 files changed, 7 insertions, 17 deletions
diff --git a/audio/libkcompactdisc/Makefile b/audio/libkcompactdisc/Makefile
index e31147b972e3..36262458c767 100644
--- a/audio/libkcompactdisc/Makefile
+++ b/audio/libkcompactdisc/Makefile
@@ -19,6 +19,12 @@ USE_LDCONFIG= yes
OPTIONS_DEFINE= ALSA
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
-ALSA_EXTRA_PATCHES_OFF= ${FILESDIR}/extrapatch-no_alsa
+
+post-patch-ALSA-off:
+ ${REINPLACE_CMD} -e '/find_package(Alsa)/d' \
+ -e '/alsa_configure_file/d' ${WRKSRC}/CMakeLists.txt
+
+post-configure-ALSA-off:
+ ${TOUCH} ${CONFIGURE_WRKSRC}/config-alsa.h
.include <bsd.port.mk>
diff --git a/audio/libkcompactdisc/files/extrapatch-no_alsa b/audio/libkcompactdisc/files/extrapatch-no_alsa
deleted file mode 100644
index 2f83175e4738..000000000000
--- a/audio/libkcompactdisc/files/extrapatch-no_alsa
+++ /dev/null
@@ -1,16 +0,0 @@
---- CMakeLists.txt.orig 2013-07-09 23:19:54.000000000 +0000
-+++ CMakeLists.txt 2013-08-12 23:11:31.141329406 +0000
-@@ -8,10 +8,10 @@
-
- ## Compiler flags
- if(CMAKE_COMPILER_IS_GNUCXX)
-- set(CMAKE_C_FLAGS "-std=c99") ## ALSA no longer compiles with -std=c90, see https://bugzilla.novell.com/show_bug.cgi?id=817077
-+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") ## ALSA no longer compiles with -std=c90, see https://bugzilla.novell.com/show_bug.cgi?id=817077
- endif()
--find_package(Alsa)
--alsa_configure_file(${CMAKE_CURRENT_BINARY_DIR}/config-alsa.h)
-+find_file(CONFIG_ALSA_H_CMAKE config-alsa.h.cmake ${CMAKE_MODULE_PATH})
-+configure_file(${CONFIG_ALSA_H_CMAKE} ${CMAKE_BINARY_DIR}/config-alsa.h)
-
- include_directories(${KDE4_INCLUDES})
- include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})