freebsd-ports/deskutils/recoll/Makefile
Rusmir Dusko a31f2e9b1c - Update to 1.19.8
- Change REINPLACE_CMD, recollq isn't QT
- Remove obsolete patches

Approved by:	pawel / wg (mentors, implicit)
2013-11-06 10:47:22 +00:00

78 lines
1.8 KiB
Makefile

# Created by: J.F. Dockes <jean-francois.dockes@wanadoo.fr>
# $FreeBSD$
PORTNAME= recoll
PORTVERSION= 1.19.8
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+= VERSION=${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|/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@||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>