aboutsummaryrefslogtreecommitdiffstats
path: root/www/udmsearch/Makefile
blob: e3af123df1234fb148efae13b70168b92a5b4671 (plain) (blame)
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
58
59
60
# New ports collection makefile for:    udmsearch
# Date created:     11/29/1999
# Whom:         Kelly Yancey <kbyanc@posi.net>
#
# $FreeBSD$
#

PORTNAME=   udmsearch
PORTVERSION=    3.1.5
CATEGORIES= www databases
MASTER_SITES=   http://search.mnogo.ru/Download/ \
        http://udmsearch.real-time.com/Download/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Full featured SQL-based hypertext search engine

OPTIONS=    MSQL "MSQL support" off \
        MYSQL "MYSQL support" on \
        PGSQL "PGSQL support" off

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-charset-guesser \
        --enable-freebsd-pthreads \
        --sysconfdir=${PREFIX}/etc/udmsearch \
        --localstatedir=/var/udmsearch

MAN1=       indexer.1
MAN5=       indexer.conf.5

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 700042
BROKEN=     Does not compile with GCC 4.2
.endif

.if defined(WITH_MSQL)
BUILD_DEPENDS=      ${PREFIX}/lib/libmsql.a:${PORTSDIR}/databases/msql
CONFIGURE_ARGS+=    --with-msql=${LOCALBASE}
.endif

.if !defined(WITHOUT_MYSQL)
USE_MYSQL=      YES
CONFIGURE_ARGS+=    --with-mysql=${LOCALBASE}
.endif

.if defined(WITH_PGSQL)
USE_PGSQL=      YES
CONFIGURE_ARGS+=    --with-pgsql=${LOCALBASE}/pgsql
.endif

pre-install:
    @${MKDIR} ${DATADIR}

post-install:
    @${CP} -R ${WRKSRC}/create ${DATADIR}
    @${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
    @${ECHO_MSG}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>