1999-10-21 21:36:34 +02:00
|
|
|
# New ports collection makefile for: udmsearch
|
1999-12-23 17:05:50 +01:00
|
|
|
# Date created: 11/29/1999
|
1999-10-21 21:36:34 +02:00
|
|
|
# Whom: Kelly Yancey <kbyanc@posi.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= udmsearch
|
2001-02-05 16:33:58 +01:00
|
|
|
PORTVERSION= 3.0.23
|
2004-02-04 06:10:27 +01:00
|
|
|
PORTREVISION= 3
|
2000-02-23 15:00:16 +01:00
|
|
|
CATEGORIES= www databases
|
2003-04-29 17:31:02 +02:00
|
|
|
MASTER_SITES= http://search.mnogo.ru/Download/ \
|
|
|
|
http://udmsearch.real-time.com/Download/ \
|
|
|
|
http://www.ghks.de/computer/software/udmsearch/Download/
|
1999-10-21 21:36:34 +02:00
|
|
|
|
2003-04-29 17:31:22 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Full featured SQL-based hypertext search engine
|
1999-10-21 21:36:34 +02:00
|
|
|
|
2000-02-23 15:00:16 +01:00
|
|
|
MAN1= indexer.1
|
|
|
|
MAN5= indexer.conf.5
|
1999-10-21 21:36:34 +02:00
|
|
|
|
2000-02-23 15:00:16 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2000-07-13 13:56:31 +02:00
|
|
|
CONFIGURE_ARGS= --enable-charset-guesser \
|
2000-08-23 16:04:15 +02:00
|
|
|
--enable-freebsd-pthreads \
|
2000-07-13 13:56:31 +02:00
|
|
|
--sysconfdir=${PREFIX}/etc/udmsearch \
|
2000-07-27 18:03:24 +02:00
|
|
|
--localstatedir=/var/udmsearch
|
1999-10-21 21:36:34 +02:00
|
|
|
|
2000-08-26 22:14:13 +02:00
|
|
|
.if defined(WITH_PGSQL)
|
2003-01-18 23:50:06 +01:00
|
|
|
POSTGRESQL_PORT?= databases/postgresql7
|
|
|
|
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
2000-10-13 22:23:05 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}/pgsql
|
1999-11-14 03:18:01 +01:00
|
|
|
|
2000-04-17 02:19:02 +02:00
|
|
|
.elif defined(WITH_MSQL)
|
1999-11-14 03:18:01 +01:00
|
|
|
BUILD_DEPENDS= ${PREFIX}/lib/libmsql.a:${PORTSDIR}/databases/msql
|
2000-10-13 22:23:05 +02:00
|
|
|
CONFIGURE_ARGS+= --with-msql=${LOCALBASE}
|
1999-11-14 03:18:01 +01:00
|
|
|
|
|
|
|
.else
|
|
|
|
# default to mysql
|
2003-08-28 14:57:52 +02:00
|
|
|
USE_MYSQL= YES
|
2000-10-13 22:23:05 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
|
1999-11-14 03:18:01 +01:00
|
|
|
|
2003-09-27 03:01:08 +02:00
|
|
|
pre-everything::
|
2000-04-17 02:19:02 +02:00
|
|
|
.if !defined(WITH_MYSQL)
|
2003-09-27 03:01:08 +02:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "Defaulting to udmsearch with mysql support."
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "You may alternately build udmsearch with either msql or"
|
|
|
|
@${ECHO_MSG} "postgresql support by invoking make with WITH_MSQL=yes or"
|
|
|
|
@${ECHO_MSG} "WITH_PGSQL=yes respectively."
|
|
|
|
@${ECHO_MSG}
|
1999-11-14 03:18:01 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|
1999-10-21 21:36:34 +02:00
|
|
|
|
|
|
|
pre-install:
|
2000-07-27 18:03:24 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/udmsearch
|
1999-10-21 21:36:34 +02:00
|
|
|
|
|
|
|
post-install:
|
2000-07-27 18:03:24 +02:00
|
|
|
@cp -R ${WRKSRC}/create ${PREFIX}/share/udmsearch
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/udmsearch
|
2003-09-24 11:37:11 +02:00
|
|
|
@${STRIP_CMD} ${PREFIX}/sbin/indexer
|
|
|
|
@${STRIP_CMD} ${PREFIX}/share/udmsearch/search.cgi
|
2003-09-27 03:01:08 +02:00
|
|
|
@${ECHO_MSG}
|
1999-10-21 21:36:34 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|