blob: d4054a08b2cf5b9dc4927a0f78369fecbd3ef484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Created by: Henrik Brix Andersen <brix@FreeBSD.org>
# $FreeBSD$
PORTNAME= xapian-omega
PORTVERSION= 1.4.11
CATEGORIES= www
MASTER_SITES= https://oligarchy.co.uk/xapian/${PORTVERSION}/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= CGI search application built on Xapian
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= xapian-core>=${PORTVERSION}:databases/xapian-core
LIB_DEPENDS= libpcre.so:devel/pcre \
libxapian.so:databases/xapian-core
CONFLICTS_INSTALL= xapian-omega12
OPTIONS_DEFINE= DOCS EXAMPLES ICONV
OPTIONS_DEFAULT=ICONV
ICONV_DESC= Enable iconv character set conversion support
PORTSCOUT= limitw:1,even
USES= compiler:c++11-lang libtool localbase perl5 shebangfix tar:xz
CONFIGURE_ARGS= --datarootdir=${DATADIR} --docdir=${DOCSDIR}
CONFIGURE_ENV= PCRE_CONFIG=${LOCALBASE}/bin/pcre-config \
XAPIAN_CONFIG=${LOCALBASE}/bin/xapian-config
GNU_CONFIGURE= yes
USE_CXXSTD= c++11
USE_LDCONFIG= yes
SHEBANG_FILES= dbi2omega htdig2omega mbox2omega
ICONV_CONFIGURE_ON= ac_cv_search_iconv=${ICONV_LIB}
ICONV_CONFIGURE_WITH= iconv
ICONV_USES= iconv
post-patch:
@${REINPLACE_CMD} \
-e '/^dist_sysconf_DATA = /d' \
-e '/^pkglibbindir = / s| = .*$$| = ${WWWDIR}/cgi-bin|' \
${WRKSRC}/Makefile.in
post-install-DOCS-on:
cd ${WRKSRC}/ && ${INSTALL_DATA} AUTHORS ChangeLog NEWS README TODO ${STAGEDIR}${DOCSDIR}/
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/omega.conf ${STAGEDIR}${EXAMPLESDIR}/
cd ${WRKSRC}/ && ${COPYTREE_SHARE} templates ${STAGEDIR}${EXAMPLESDIR}/
.include <bsd.port.mk>
|