summaryrefslogtreecommitdiff
path: root/sysutils/strigi/Makefile
blob: df3bed73193560ab05b70a699a9f3de03d8bbb5c (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# $NetBSD: Makefile,v 1.79 2020/08/31 18:11:36 wiz Exp $

DISTNAME=	strigi-0.7.8
PKGREVISION=	37
CATEGORIES=	sysutils
MASTER_SITES=	http://www.vandenoever.info/software/strigi/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	markd@NetBSD.org
HOMEPAGE=	http://strigi.sourceforge.net/
COMMENT=	Small fast desktop searching program
LICENSE=	gnu-lgpl-v2

USE_LANGUAGES=	c c++11
USE_TOOLS+=	gmake pkg-config perl
USE_CMAKE=	yes

PKGCONFIG_OVERRIDE+=	src/streamanalyzer/libstreamanalyzer.pc.cmake
PKGCONFIG_OVERRIDE+=	src/streams/libstreams.pc.cmake

.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/pset.h)
RT_LIB_SCHED=	-lrt
.else
RT_LIB_SCHED=	# empty
.endif

LDFLAGS.Darwin+=	-lclucene-shared
LDFLAGS.DragonFly+=	-lclucene-shared
LDFLAGS.FreeBSD+=	-lclucene-shared
LDFLAGS.NetBSD+=	-lclucene-shared
LDFLAGS.Linux+=		-lclucene-shared

CFLAGS.SunOS+=	-DCMAKE_HAVE_PTHREAD_CREATE
LDFLAGS.SunOS+=	-mimpure-text -lrt -lsocket -lclucene-shared

CMAKE_ARGS+=	-DENABLE_EXIV2=OFF
CMAKE_ARGS+=	-DENABLE_FFMPEG=OFF
.if !empty(RT_LIB_SCHED)
# these use sched_setscheduler
CMAKE_ARGS+=	-Dstrigidaemon_LIBS=${RT_LIB_SCHED}
CMAKE_ARGS+=	-Dtest_LIBS=${RT_LIB_SCHED}
.endif

pre-configure:
	${LN} -sf ${QTDIR}/bin/qmake ${BUILDLINK_DIR}/bin/

BUILDLINK_API_DEPENDS.libclucene+=	libclucene>=2.3.3.4
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/cppunit/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../textproc/libclucene/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../x11/qt4-libs/buildlink3.mk"
.include "../../x11/qt4-tools/buildlink3.mk"
.include "../../x11/qt4-qdbus/buildlink3.mk"
.include "../../mk/fam.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"