1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/deskutils/recoll/Makefile
Rusmir Dusko 0bae557ac8 - Update to 1.19.7
- Change maintainer email to @FreeBSD.org
- Fix configure with --enable-pic
- Remove PORTSCOUT
- Support STAGEDIR and add OPTIONS_SUB
- Add patches, fix build on FreeBSD 10

Approved by:	pawel / wg (mentors, implicit)
2013-10-30 19:28:26 +00:00

81 lines
1.9 KiB
Makefile

# Created by: J.F. Dockes <jean-francois.dockes@wanadoo.fr>
# $FreeBSD$
PORTNAME= recoll
PORTVERSION= 1.19.7
CATEGORIES= deskutils
MASTER_SITES= http://www.lesbonscomptes.com/${PORTNAME}/
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Personal full text search package, based on Xapian
LICENSE= GPLv2
BUILD_DEPENDS= xapian-core>=0:${PORTSDIR}/databases/xapian-core
USES= gmake iconv
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-pic
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= ASPELL PYTHON QT4 X11MON
X11MON_DESC= X11 session monitoring support
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
X11MON_CONFIGURE_ENABLE= x11mon
.include <bsd.port.options.mk>
PLIST_SUB+= MAJORVER=${PORTVERSION}
.if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON= yes
INSTALLS_EGGINFO= yes
PYDISTUTILS_EGGINFO= Recoll-1.0-py${PYTHON_VER}.egg-info
.endif
.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}"
INSTALLS_ICONS= yes
.endif
.if ${PORT_OPTIONS:MX11MON}
USE_XORG+= ice sm x11
USE_FAM= yes
CONFIGURE_ARGS+=--with-fam
.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>