blob: 4e7b81c4323bebdd0d885771b18b5b00dede0fa3 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# New ports collection makefile for: recoll
# Date created: 5 December 2005
# Whom: J.F. Dockes <jean-francois.dockes@wanadoo.fr>
#
# $FreeBSD$
#
PORTNAME= recoll
PORTVERSION= 1.17.2
PORTREVISION= 1
CATEGORIES= deskutils
MASTER_SITES= http://www.lesbonscomptes.com/recoll/
MAINTAINER= ports@FreeBSD.org
COMMENT= A personal full text search package, based on Xapian
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= xapian.26:${PORTSDIR}/databases/xapian-core
OPTIONS= QT "Enable Qt-based GUI support" on \
ASPELL "Enable ASpell support" on \
PYTHON "Enable Python module support" on \
X11MON "Enable X11 session monitoring support" on
USE_ICONV= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN1= recollindex.1
MAN5= recoll.conf.5
.include <bsd.port.options.mk>
.if defined(WITHOUT_QT)
CONFIGURE_ARGS+=--disable-qtgui
PLIST_SUB+= QT="@comment "
.else
USE_QT_VER= 4
QT_COMPONENTS= webkit moc_build qmake_build rcc_build uic_build
QT_NONSTANDARD= yes
CONFIGURE_ENV+= QTDIR="${QT_PREFIX}" QMAKE="${QMAKE}"
INSTALLS_ICONS= yes
PLIST_SUB+= QT=""
MAN1+= recoll.1
.endif
.if defined(WITHOUT_ASPELL)
CONFIGURE_ARGS+=--without-aspell
.else
LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell
.endif
.if defined(WITHOUT_PYTHON)
CONFIGURE_ARGS+=--disable-python-module
PLIST_SUB+= PYTHON="@comment "
.else
USE_PYTHON= yes
INSTALLS_EGGINFO= yes
PYDISTUTILS_EGGINFO= Recoll-1.0-py${PYTHON_VER}.egg-info
PLIST_SUB+= PYTHON=""
.endif
.if defined(WITHOUT_X11MON)
CONFIGURE_ARGS+=--disable-x11mon
.else
USE_XORG+= ice sm x11
USE_FAM= yes
CONFIGURE_ARGS+=--with-fam
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|@QMAKE@|${TRUE}|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|/usr/local/lib|${LOCALBASE}/lib|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
'/--prefix=/s|^|@NOPYTHON@|' ${WRKSRC}/recollinstall.in
@${REINPLACE_CMD} -e \
's|= -g -O2|=|' ${WRKSRC}/mk/localdefs.in
@${REINPLACE_CMD} -e \
's|-pthread|${PTHREAD_LIBS}|' ${WRKSRC}/mk/${OPSYS}
post-configure:
.if !defined(WITHOUT_QT)
@(cd ${WRKSRC}/qtgui && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})
.endif
.include <bsd.port.mk>
|