aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/strigi/Makefile
blob: 42a91c2b4c4076ad8d380ee1cbf7581559951485 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Created by: Tilman Keskinoz <arved@FreeBSD.org>
# $FreeBSD$

PORTNAME=   strigi
PORTVERSION=    0.7.8
CATEGORIES= deskutils
MASTER_SITES=   http://www.vandenoever.info/software/strigi/

MAINTAINER= kde@FreeBSD.org
COMMENT=    Desktop searching program

LIB_DEPENDS=    avcodec${FFMPEG_SUFFIX}:${PORTSDIR}/multimedia/ffmpeg${FFMPEG_SUFFIX} \
        clucene-core:${PORTSDIR}/textproc/clucene \
        dbus-1:${PORTSDIR}/devel/dbus \
        exiv2.12:${PORTSDIR}/graphics/exiv2 \
        boost_thread:${PORTSDIR}/devel/boost-libs

USE_QT4=    corelib gui dbus moc_build uic_build qmake_build rcc_build
USE_BZIP2=  yes
USE_GNOME=  libxml2
USE_PKGCONFIG=  build
USE_FAM=    yes
USE_LDCONFIG=   yes
USES=       cmake:outsource
MAKE_JOBS_UNSAFE=   yes

# supported versions: ffmpeg, ffmpeg1, ffmpeg-devel
# corresponding FFMPEG_SUFFIX: '', '1', '-devel'
FFMPEG_SUFFIX?= #
CMAKE_ARGS+=    -DFFMPEG_SUFFIX:STRING="${FFMPEG_SUFFIX}"

.if !empty(FFMPEG_SUFFIX)
# Reorder include directories to allow build with multiple ffmpeg installed.
# This patch must NOT be used, if ffmpeg headers are installed
# directly to ${LOCALBASE}/include
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-libstreamanalyzer__plugins__endplugins__CMakeLists.txt
.endif

post-patch:
    ${MKDIR} ${WRKSRC}
    ${REINPLACE_CMD} -e \
        's,$${LIB_DESTINATION}/pkgconfig,libdata/pkgconfig,' \
        ${WRKSRC}/libstreamanalyzer/CMakeLists.txt \
        ${WRKSRC}/libstreams/CMakeLists.txt

.include <bsd.port.mk>