2013-02-20 21:37:09 +01:00
|
|
|
# Created by: Henrik Brix Andersen <brix@FreeBSD.org>
|
2008-07-05 11:24:34 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xapian-omega
|
2014-06-23 19:43:56 +02:00
|
|
|
PORTVERSION= 1.2.18
|
2008-07-05 11:24:34 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://oligarchy.co.uk/xapian/${PORTVERSION}/ \
|
2012-02-12 04:36:18 +01:00
|
|
|
LOCAL/sunpoet
|
2008-07-05 11:24:34 +02:00
|
|
|
|
2012-02-12 04:36:18 +01:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2008-07-05 11:24:34 +02:00
|
|
|
COMMENT= CGI search application built on Xapian
|
|
|
|
|
2010-07-12 17:33:48 +02:00
|
|
|
LICENSE= GPLv2
|
2012-02-07 02:28:01 +01:00
|
|
|
|
2013-10-23 21:09:17 +02:00
|
|
|
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \
|
|
|
|
libxapian.so:${PORTSDIR}/databases/xapian-core
|
2012-02-07 02:28:01 +01:00
|
|
|
|
2012-06-27 10:32:38 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES ICONV
|
|
|
|
OPTIONS_DEFAULT=ICONV
|
|
|
|
ICONV_DESC= Enable iconv character set conversion support
|
2008-07-05 11:24:34 +02:00
|
|
|
|
2012-05-14 20:46:00 +02:00
|
|
|
PORTSCOUT= limitw:1,even
|
|
|
|
|
2013-12-05 21:26:29 +01:00
|
|
|
CONFIGURE_ARGS= --datarootdir=${DATADIR} --docdir=${DOCSDIR}
|
2012-02-12 04:36:18 +01:00
|
|
|
CONFIGURE_ENV= PCRE_CONFIG=${LOCALBASE}/bin/pcre-config \
|
|
|
|
XAPIAN_CONFIG=${LOCALBASE}/bin/xapian-config
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2012-02-07 02:28:01 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2012-02-07 02:28:01 +01:00
|
|
|
USE_LDCONFIG= yes
|
2014-06-23 19:43:56 +02:00
|
|
|
USES= libtool perl5 shebangfix tar:xz
|
2008-07-05 11:24:34 +02:00
|
|
|
|
|
|
|
MORE_PORTDOCS= AUTHORS ChangeLog NEWS README TODO
|
2014-02-04 17:14:42 +01:00
|
|
|
PORTDOCS= ${MORE_PORTDOCS} cgiparams.html index.html omegascript.html \
|
|
|
|
overview.html quickstart.html scriptindex.html termprefixes.html
|
2008-07-05 11:24:34 +02:00
|
|
|
PORTEXAMPLES= omega.conf
|
|
|
|
|
2013-10-23 21:09:17 +02:00
|
|
|
SHEBANG_FILES= dbi2omega htdig2omega mbox2omega
|
2008-07-05 11:24:34 +02:00
|
|
|
|
2013-10-23 21:09:17 +02:00
|
|
|
ICONV_CONFIGURE_WITH= iconv
|
|
|
|
ICONV_LDFLAGS= ${ICONV_LIB}
|
|
|
|
ICONV_USES= iconv
|
|
|
|
|
2008-07-05 11:24:34 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} \
|
2012-02-12 04:36:18 +01:00
|
|
|
-e '/^dist_sysconf_DATA = /d' \
|
|
|
|
-e '/^pkglibbindir = / s| = .*$$| = ${WWWDIR}/cgi-bin|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2008-07-05 11:24:34 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-02-04 17:14:42 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/ ${STAGEDIR}${EXAMPLESDIR}/
|
2013-10-23 21:09:17 +02:00
|
|
|
cd ${WRKSRC}/ && ${INSTALL_DATA} ${MORE_PORTDOCS} ${STAGEDIR}${DOCSDIR}/
|
|
|
|
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}/
|
2008-07-05 11:24:34 +02:00
|
|
|
|
2012-02-07 02:28:01 +01:00
|
|
|
.include <bsd.port.mk>
|