2013-06-07 15:39:29 +00:00
|
|
|
# Created by: J.F. Dockes <jean-francois.dockes@wanadoo.fr>
|
2005-12-07 17:31:52 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= recoll
|
2013-11-06 10:47:22 +00:00
|
|
|
PORTVERSION= 1.19.8
|
2005-12-07 17:31:52 +00:00
|
|
|
CATEGORIES= deskutils
|
2013-06-07 15:39:29 +00:00
|
|
|
MASTER_SITES= http://www.lesbonscomptes.com/${PORTNAME}/
|
2005-12-07 17:31:52 +00:00
|
|
|
|
2013-10-30 19:28:26 +00:00
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
2012-12-04 20:22:10 +00:00
|
|
|
COMMENT= Personal full text search package, based on Xapian
|
2012-03-25 03:55:47 +00:00
|
|
|
|
|
|
|
LICENSE= GPLv2
|
2005-12-07 17:31:52 +00:00
|
|
|
|
2013-06-07 15:39:29 +00:00
|
|
|
BUILD_DEPENDS= xapian-core>=0:${PORTSDIR}/databases/xapian-core
|
2005-12-07 17:31:52 +00:00
|
|
|
|
2013-10-30 19:28:26 +00:00
|
|
|
USES= gmake iconv
|
2012-03-25 03:55:47 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2013-10-30 19:28:26 +00:00
|
|
|
CONFIGURE_ARGS= --enable-pic
|
2005-12-07 17:31:52 +00:00
|
|
|
|
2012-03-25 03:55:47 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
|
2013-10-30 19:28:26 +00:00
|
|
|
OPTIONS_DEFINE= ASPELL PYTHON QT4 X11MON
|
2012-12-05 02:18:11 +00:00
|
|
|
X11MON_DESC= X11 session monitoring support
|
2013-10-30 19:28:26 +00:00
|
|
|
OPTIONS_DEFAULT=ASPELL PYTHON QT4 X11MON
|
|
|
|
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
ASPELL_LIB_DEPENDS= libaspell.so:${PORTSDIR}/textproc/aspell
|
|
|
|
ASPELL_CONFIGURE_WITH= aspell
|
|
|
|
|
|
|
|
PYTHON_CONFIGURE_ENABLE= python-module
|
|
|
|
|
|
|
|
QT4_CONFIGURE_ENABLE= qtgui
|
2013-06-07 15:39:29 +00:00
|
|
|
|
2013-10-30 19:28:26 +00:00
|
|
|
X11MON_CONFIGURE_ENABLE= x11mon
|
2012-12-04 20:22:10 +00:00
|
|
|
|
2012-03-25 03:55:47 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-11-06 10:47:22 +00:00
|
|
|
PLIST_SUB+= VERSION=${PORTVERSION}
|
2013-10-30 19:28:26 +00:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
|
|
|
USE_PYTHON= yes
|
|
|
|
INSTALLS_EGGINFO= yes
|
|
|
|
PYDISTUTILS_EGGINFO= Recoll-1.0-py${PYTHON_VER}.egg-info
|
|
|
|
.endif
|
|
|
|
|
2012-06-05 20:48:28 +00:00
|
|
|
.if ${PORT_OPTIONS:MQT4}
|
2013-11-25 18:01:08 +00:00
|
|
|
USE_QT4= moc_build qmake_build rcc_build uic_build iconengines_run \
|
|
|
|
imageformats_run corelib gui xml webkit
|
2012-03-25 03:55:47 +00:00
|
|
|
QT_NONSTANDARD= yes
|
|
|
|
CONFIGURE_ENV+= QTDIR="${QT_PREFIX}" QMAKE="${QMAKE}"
|
|
|
|
INSTALLS_ICONS= yes
|
2012-04-21 18:48:44 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-05 20:48:28 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11MON}
|
2012-03-25 03:55:47 +00:00
|
|
|
USE_XORG+= ice sm x11
|
|
|
|
USE_FAM= yes
|
|
|
|
CONFIGURE_ARGS+=--with-fam
|
|
|
|
.endif
|
|
|
|
|
2006-02-03 15:28:20 +00:00
|
|
|
post-patch:
|
2012-12-04 20:22:10 +00:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|/usr/local/lib|${LOCALBASE}/lib|' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|= -g -O2|=|' ${WRKSRC}/mk/localdefs.in
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|-pthread|${PTHREAD_LIBS}|' ${WRKSRC}/mk/${OPSYS}
|
2013-11-06 10:47:22 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|@NOCMDLINE@||g' \
|
2012-12-04 20:22:10 +00:00
|
|
|
${WRKSRC}/recollinstall.in
|
2013-12-08 13:13:51 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|python setup.py|${PYTHON_CMD} setup.py|' \
|
|
|
|
${WRKSRC}/python/recoll/Makefile \
|
|
|
|
${WRKSRC}/recollinstall.in
|
2012-03-25 03:55:47 +00:00
|
|
|
|
|
|
|
post-configure:
|
2012-06-05 20:48:28 +00:00
|
|
|
.if ${PORT_OPTIONS:MQT4}
|
2013-11-25 18:01:08 +00:00
|
|
|
@cd ${WRKSRC}/qtgui && ${SETENV} ${QMAKE_ENV} \
|
|
|
|
${QMAKE} ${QMAKE_ARGS}
|
2012-03-25 03:55:47 +00:00
|
|
|
.endif
|
2006-01-13 22:48:06 +00:00
|
|
|
|
2007-09-15 16:19:14 +00:00
|
|
|
.include <bsd.port.mk>
|