aboutsummaryrefslogtreecommitdiff
path: root/audio/libkcompactdisc
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2015-11-28 16:51:41 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2015-11-28 16:51:41 +0000
commitec847eab07e57d6979b91bcc1f97ee41f3164228 (patch)
treeb63018a0ce492adfbe93fe919019c8a474d6e7c4 /audio/libkcompactdisc
parent1e5dea6357032dd06c5be94f6ca8eeb1924c684c (diff)
downloadports-ec847eab07e57d6979b91bcc1f97ee41f3164228.tar.gz
ports-ec847eab07e57d6979b91bcc1f97ee41f3164228.zip
Notes
Diffstat (limited to 'audio/libkcompactdisc')
-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})