aboutsummaryrefslogtreecommitdiff
path: root/multimedia/kdemultimedia4-ffmpegthumbs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/kdemultimedia4-ffmpegthumbs/Makefile')
-rw-r--r--multimedia/kdemultimedia4-ffmpegthumbs/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/multimedia/kdemultimedia4-ffmpegthumbs/Makefile b/multimedia/kdemultimedia4-ffmpegthumbs/Makefile
index e9e1d813d4e3..7d8aa5e5bee7 100644
--- a/multimedia/kdemultimedia4-ffmpegthumbs/Makefile
+++ b/multimedia/kdemultimedia4-ffmpegthumbs/Makefile
@@ -7,21 +7,26 @@ CATEGORIES= multimedia kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
PKGNAMEPREFIX= kdemultimedia-
-DIST_SUBDIR= KDE
+DIST_SUBDIR= KDE/${PORTVERSION}
MAINTAINER= kde@FreeBSD.org
-COMMENT= ffmpeg-based thumbnail creator for video files
+COMMENT= FFmpeg-based thumbnail generator for video files
LICENSE= GPLv2
-LIB_DEPENDS= swscale.1:${PORTSDIR}/multimedia/ffmpeg
+LIB_DEPENDS= swscale${FFMPEG_SUFFIX}:${PORTSDIR}/multimedia/ffmpeg${FFMPEG_SUFFIX}
CONFLICTS_INSTALL= kdemultimedia-4.[1-8].*
-MAKE_JOBS_SAFE= yes
USES= cmake:outsource
USE_KDE4= automoc4 kdehier kdelibs kdeprefix
USE_QT4= moc_build qmake_build rcc_build uic_build
USE_XZ= yes
+MAKE_JOBS_SAFE= yes
+
+# supported versions: ffmpeg1, ffmpeg-devel
+# corresponding FFMPEG_SUFFIX: '1', '-devel'
+FFMPEG_SUFFIX?= 1
+CMAKE_ARGS+= -DFFMPEG_SUFFIX=${FFMPEG_SUFFIX}
.include <bsd.port.mk>