873d4bda50
Submitted by: nemysis <nemysis@gmx.ch> (maintainer, private mail)
93 lines
2.2 KiB
Makefile
93 lines
2.2 KiB
Makefile
# 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.18.1
|
|
CATEGORIES= deskutils
|
|
MASTER_SITES= http://www.lesbonscomptes.com/recoll/
|
|
|
|
MAINTAINER= nemysis@gmx.ch
|
|
COMMENT= Personal full text search package, based on Xapian
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= xapian:${PORTSDIR}/databases/xapian-core
|
|
|
|
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
|
|
|
|
OPTIONS_DEFINE= QT4 ASPELL PYTHON X11MON
|
|
OPTIONS_DEFAULT=QT4 ASPELL PYTHON X11MON
|
|
X11MON_DESC= X11 session monitoring support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MQT4}
|
|
USE_QT4= moc_build qmake_build rcc_build uic_build iconengines imageformats \
|
|
corelib gui xml webkit
|
|
QT_NONSTANDARD= yes
|
|
CONFIGURE_ENV+= QTDIR="${QT_PREFIX}" QMAKE="${QMAKE}"
|
|
CONFIGURE_ARGS+=--enable-qtgui
|
|
INSTALLS_ICONS= yes
|
|
PLIST_SUB+= QT=""
|
|
MAN1+= recollq.1 recoll.1
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-qtgui
|
|
PLIST_SUB+= QT="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MASPELL}
|
|
LIB_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell
|
|
.else
|
|
CONFIGURE_ARGS+=--without-aspell
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
|
USE_PYTHON= yes
|
|
INSTALLS_EGGINFO= yes
|
|
PYDISTUTILS_EGGINFO= Recoll-1.0-py${PYTHON_VER}.egg-info
|
|
PLIST_SUB+= PYTHON=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-python-module
|
|
PLIST_SUB+= PYTHON="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MX11MON}
|
|
USE_XORG+= ice sm x11
|
|
USE_FAM= yes
|
|
CONFIGURE_ARGS+=--with-fam
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-x11mon
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
-e 's|$${MAKE} -C query recollq|@NOQTMAKE@$${MAKE} -C query recollq|' ${WRKSRC}/Makefile.in
|
|
@${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}
|
|
@${REINPLACE_CMD} -e 's|@NOCMDLINE@|@NOQTMAKE@|g' \
|
|
${WRKSRC}/recollinstall.in
|
|
|
|
post-configure:
|
|
.if ${PORT_OPTIONS:MQT4}
|
|
@cd ${WRKSRC}/qtgui && ${SETENV} ${CONFIGURE_ENV} \
|
|
${QMAKE} ${QMAKEFLAGS} PREFIX=${PREFIX}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|