aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/recoll/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/recoll/Makefile')
-rw-r--r--deskutils/recoll/Makefile67
1 files changed, 57 insertions, 10 deletions
diff --git a/deskutils/recoll/Makefile b/deskutils/recoll/Makefile
index 2b5a05842025..4cbc4eb71e4a 100644
--- a/deskutils/recoll/Makefile
+++ b/deskutils/recoll/Makefile
@@ -11,23 +11,70 @@ CATEGORIES= deskutils
MASTER_SITES= http://www.lesbonscomptes.com/recoll/
MAINTAINER= ports@FreeBSD.org
-COMMENT= A personal full text search package, based on QT and Xapian
+COMMENT= A personal full text search package, based on Xapian
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= xapian.26:${PORTSDIR}/databases/xapian-core
-USE_QT_VER= 4
-QT_COMPONENTS= gui qmake_build uic_build moc_build rcc_build \
- qt3support uic3_build porting
-GNU_CONFIGURE= yes
-USE_GMAKE= yes
+OPTIONS= QT "Enable Qt-based GUI support" on \
+ ASPELL "Enable ASpell support" on \
+ X11MON "Enable X11 session monitoring support" on
+
USE_ICONV= yes
-INSTALLS_ICONS= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+MAKE_JOBS_SAFE= yes
-MAN1= recoll.1 recollindex.1
+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= gui 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_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/^CXXFLAGS =/CXXFLAGS ?=/' \
- ${WRKSRC}/mk/localdefs.in
+ @${REINPLACE_CMD} -e \
+ '/recoll.pro/s|^|#|' ${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}
+
+post-configure:
+.if !defined(WITHOUT_QT)
+ @(cd ${WRKSRC}/qtgui && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})
+.endif
.include <bsd.port.mk>