aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-03-04 16:37:44 +0800
committermarino <marino@FreeBSD.org>2014-03-04 16:37:44 +0800
commita97c79212b3092e32b1d271555fa8c3ef0e761ca (patch)
treed8a802a526d52faa57d69bee0f3c08253ebbead8 /sysutils
parent66f71e07f4560b96affc0b958aaf90534a63321e (diff)
downloadfreebsd-ports-gnome-a97c79212b3092e32b1d271555fa8c3ef0e761ca.tar.gz
freebsd-ports-gnome-a97c79212b3092e32b1d271555fa8c3ef0e761ca.tar.zst
freebsd-ports-gnome-a97c79212b3092e32b1d271555fa8c3ef0e761ca.zip
sysutils/k3b-kde4: Restore MUSEPACK option with DPorts fix
- Revert r346996 entirely - Bypass MUSEPACK detection (hardcode it as detected) to fix that option - Bump - This was default options change Approved by: makc
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/k3b-kde4/Makefile14
-rw-r--r--sysutils/k3b-kde4/files/patch-cmake_modules_FindMuse.cmake18
2 files changed, 22 insertions, 10 deletions
diff --git a/sysutils/k3b-kde4/Makefile b/sysutils/k3b-kde4/Makefile
index db42fbc5b918..56ce7fb2a7b4 100644
--- a/sysutils/k3b-kde4/Makefile
+++ b/sysutils/k3b-kde4/Makefile
@@ -3,7 +3,7 @@
PORTNAME= k3b
PORTVERSION= 2.0.2
-PORTREVISION= 15
+PORTREVISION= 16
CATEGORIES= sysutils multimedia kde
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
@@ -16,7 +16,7 @@ RUN_DEPENDS= cdrecord:${PORTSDIR}/sysutils/cdrtools
BUILD_DEPENDS= cdrecord:${PORTSDIR}/sysutils/cdrtools
USE_BZIP2= yes
-USES= cmake shared-mime-info
+USES= cmake shared-mime-info pkgconfig
CMAKE_ARGS= -DK3B_BUILD_K3BSETUP:BOOL=OFF \
-DK3B_ENABLE_MUSICBRAINZ:BOOL=OFF
USE_KDE4= automoc4 kdeprefix kdelibs libkcddb
@@ -27,7 +27,7 @@ USE_LDCONFIG= yes
OPTIONS_DEFINE= CDRDAO DVDPLUSRW EMOVIX VCDIMAGER FFMPEG FLAC MAD \
MUSEPACK SNDFILE VORBIS_DEC LAME SOX VORBIS_ENC \
LIBDVDREAD NORMALIZE TAGLIB TRANSCODE
-OPTIONS_DEFAULT=CDRDAO DVDPLUSRW FFMPEG FLAC MAD SNDFILE \
+OPTIONS_DEFAULT=CDRDAO DVDPLUSRW FFMPEG FLAC MAD MUSEPACK SNDFILE \
VORBIS_DEC VORBIS_ENC LIBDVDREAD TAGLIB
NO_OPTIONS_SORT=yes
OPTIONS_SUB= yes # FFMPEG FLAC MAD MUSEPACK SNDFILE VORBIS_ENC VORBIS_DEC LIBDVDREAD TAGLIB
@@ -58,7 +58,7 @@ MAD_CMAKE_OFF= -DK3B_BUILD_MAD_DECODER_PLUGIN:BOOL=OFF
MUSEPACK_DESC= Decoder: Musepack (audio/musepack)
MUSEPACK_LIB_DEPENDS= libmpcdec.so:${PORTSDIR}/audio/musepack
-MUSEPACK_CMAKE_ON= -DCMAKE_REQUIRED_INCLUDES:STRING="${LOCALBASE}/include"
+MUSEPACK_CMAKE_ON= -DMUSE_INCLUDE_DIR:STRING="${LOCALBASE}/include"
MUSEPACK_CMAKE_OFF= -DK3B_BUILD_MUSE_DECODER_PLUGIN:BOOL=OFF
SNDFILE_DESC= Decoder: various (audio/libsndfile)
@@ -95,10 +95,4 @@ TAGLIB_CMAKE_OFF= -DK3B_ENABLE_TAGLIB:BOOL=OFF
TRANSCODE_DESC= Misc: Transcode (DVD ripping)
TRANSCODE_RUN_DEPENDS= transcode:${PORTSDIR}/multimedia/transcode
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMUSEPACK}
-BROKEN= fails to detect Musepack libraries
-.endif
-
.include <bsd.port.mk>
diff --git a/sysutils/k3b-kde4/files/patch-cmake_modules_FindMuse.cmake b/sysutils/k3b-kde4/files/patch-cmake_modules_FindMuse.cmake
new file mode 100644
index 000000000000..7a5adc2a95de
--- /dev/null
+++ b/sysutils/k3b-kde4/files/patch-cmake_modules_FindMuse.cmake
@@ -0,0 +1,18 @@
+--- cmake/modules/FindMuse.cmake.orig 2011-01-15 20:47:29.000000000 +0000
++++ cmake/modules/FindMuse.cmake
+@@ -15,13 +15,10 @@ if( MUSE_INCLUDE_DIR AND MUSE_LIBRARIES
+ endif( MUSE_INCLUDE_DIR AND MUSE_LIBRARIES )
+
+ include(CheckIncludeFiles)
+-check_include_files(mpc/mpcdec.h HAVE_MPC_MPCDEC_H)
+-check_include_files(mpcdec/mpcdec.h HAVE_MPCDEC_MPCDEC_H)
+-check_include_files(musepack/musepack.h HAVE_MUSEPACK_MUSEPACK_H)
++set ( HAVE_MPC_MPCDEC_H 1 )
+
+ if( HAVE_MPC_MPCDEC_H )
+- find_path( MUSE_INCLUDE_DIR mpc/mpcdec.h )
+- find_library( MUSE_LIBRARIES NAMES mpcdec )
++ set( MUSE_LIBRARIES mpcdec )
+ set( MPC_HEADER_FILE "<mpc/mpcdec.h>" )
+ elseif( HAVE_MPCDEC_MPCDEC_H )
+ find_path( MUSE_INCLUDE_DIR mpcdec/mpcdec.h )