2001-08-11 20:37:02 +02:00
|
|
|
# New ports collection makefile for: mnogosearch
|
2001-01-29 11:45:06 +01:00
|
|
|
# Date created: 27.01.2001
|
|
|
|
# Whom: ache
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-02-05 16:33:58 +01:00
|
|
|
PORTNAME= mnogosearch
|
2009-05-18 08:04:50 +02:00
|
|
|
PORTVERSION= 3.3.9
|
2009-05-19 00:20:59 +02:00
|
|
|
PORTREVISION= 1
|
2001-01-29 11:45:06 +01:00
|
|
|
CATEGORIES= www databases
|
2004-06-14 05:54:53 +02:00
|
|
|
MASTER_SITES= http://www.mnogosearch.org/Download/
|
2001-01-29 11:45:06 +01:00
|
|
|
|
2009-05-17 09:20:43 +02:00
|
|
|
MAINTAINER= pgollucci@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Full featured SQL-based hypertext search engine
|
2001-01-29 11:45:06 +01:00
|
|
|
|
|
|
|
MAN1= indexer.1
|
|
|
|
MAN5= indexer.conf.5
|
|
|
|
|
2007-09-23 07:04:11 +02:00
|
|
|
USE_LDCONFIG= yes
|
2005-06-03 22:18:13 +02:00
|
|
|
USE_GNOME= lthack
|
2001-01-29 11:45:06 +01:00
|
|
|
USE_GMAKE= yes
|
2009-08-02 21:36:34 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2005-06-09 09:28:37 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-shared \
|
2001-01-29 11:45:06 +01:00
|
|
|
--sysconfdir=${PREFIX}/etc/mnogosearch \
|
2005-06-09 09:28:37 +02:00
|
|
|
--localstatedir=/var/mnogosearch \
|
|
|
|
--datadir=${PREFIX}/share/mnogosearch
|
2004-06-14 06:42:47 +02:00
|
|
|
CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}"
|
2006-09-12 13:32:38 +02:00
|
|
|
MAKE_ENV+= MKDIRPROG="${MKDIR}"
|
2001-01-29 11:45:06 +01:00
|
|
|
|
2005-06-09 09:28:37 +02:00
|
|
|
PLIST_SUB+= SHLIB_VER=${SHLIB_VER}
|
|
|
|
SHLIB_VER= 1
|
|
|
|
|
2009-05-17 09:20:43 +02:00
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
|
|
|
|
OPTIONS= \
|
|
|
|
THREADS "Enable pthreads" on \
|
|
|
|
SSL "Enable SSL" on \
|
|
|
|
ASIAN "Enable asian charsets" off \
|
|
|
|
SYSLOG "Send logs to syslog" on \
|
|
|
|
PGSQL "Use PGSQL" off \
|
|
|
|
MSQL "Use MSQL" off \
|
|
|
|
MYSQL "Use MySQL" off \
|
|
|
|
SQLITE "Use SQLite 2.x" on
|
2005-06-09 09:28:37 +02:00
|
|
|
|
|
|
|
.if !defined(NO_OPENSSL)
|
|
|
|
USE_OPENSSL= yes
|
2004-06-15 10:11:12 +02:00
|
|
|
.endif
|
2004-05-21 11:12:33 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-05-17 09:20:43 +02:00
|
|
|
.ifdef WITHOUT_THREADS
|
2007-09-23 07:04:11 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-pthreads
|
|
|
|
CFLAGS+= -DCONSOLE
|
|
|
|
.else
|
2005-06-09 09:28:37 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-pthreads
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
2004-05-21 11:12:33 +02:00
|
|
|
CONFIGURE_ENV+= LIBS="${PTHREAD_LIBS}"
|
2003-09-30 21:25:42 +02:00
|
|
|
.endif
|
2003-09-24 14:23:26 +02:00
|
|
|
|
2009-05-17 09:20:43 +02:00
|
|
|
.if !defined(WITHOUT_SSL) || !defined(NO_OPENSSL)
|
2005-06-09 09:28:37 +02:00
|
|
|
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
|
2001-06-09 22:17:10 +02:00
|
|
|
.endif
|
|
|
|
|
2009-05-17 09:20:43 +02:00
|
|
|
.ifdef WITH_ASIAN
|
2005-06-09 09:28:37 +02:00
|
|
|
CONFIGURE_ARGS+= --with-extra-charsets=all
|
2001-06-09 22:17:10 +02:00
|
|
|
.endif
|
|
|
|
|
2009-05-17 09:20:43 +02:00
|
|
|
.ifdef WITHOUT_SYSLOG
|
2005-06-09 09:28:37 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-syslog
|
2001-01-29 16:22:24 +01:00
|
|
|
.endif
|
|
|
|
|
2009-05-17 09:20:43 +02:00
|
|
|
.ifdef WITH_PGSQL
|
2005-06-09 09:28:37 +02:00
|
|
|
USE_PGSQL= yes
|
2002-03-06 15:50:16 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}
|
2005-06-09 09:28:37 +02:00
|
|
|
.endif
|
2001-01-29 11:45:06 +01:00
|
|
|
|
2009-05-17 09:20:43 +02:00
|
|
|
.ifdef WITH_MSQL
|
2005-06-09 09:28:37 +02:00
|
|
|
LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql
|
2001-01-29 11:45:06 +01:00
|
|
|
CONFIGURE_ARGS+= --with-msql=${LOCALBASE}
|
2005-06-09 09:28:37 +02:00
|
|
|
.endif
|
2001-01-29 11:45:06 +01:00
|
|
|
|
2009-05-17 09:20:43 +02:00
|
|
|
.ifdef WITH_MYSQL
|
|
|
|
USE_MYSQL= yes
|
2001-01-29 11:45:06 +01:00
|
|
|
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
|
2005-06-09 09:28:37 +02:00
|
|
|
.endif
|
2001-01-29 11:45:06 +01:00
|
|
|
|
2009-05-17 09:20:43 +02:00
|
|
|
.ifndef WITHOUT_SQLITE
|
|
|
|
USE_SQLITE= 2
|
2005-06-09 09:28:37 +02:00
|
|
|
CONFIGURE_ARGS+= --with-sqlite=${LOCALBASE}
|
|
|
|
.endif
|
2001-02-20 18:55:27 +01:00
|
|
|
|
2009-05-17 09:20:43 +02:00
|
|
|
.if defined(WITHOUT_SQLITE) && !defined(WITH_MYSQL) && \
|
|
|
|
!defined(WITH_MSQL) && !defined(WITH_PGSQL)
|
2007-09-23 07:04:11 +02:00
|
|
|
BROKEN= needs at least one database driver
|
2001-01-29 11:45:06 +01:00
|
|
|
.endif
|
|
|
|
|
2009-05-17 09:20:43 +02:00
|
|
|
DOCS= INSTALL ChangeLog
|
|
|
|
PORTEXAMPLES= README *.conf
|
|
|
|
|
2005-06-03 22:18:13 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2001-01-29 11:45:06 +01:00
|
|
|
pre-install:
|
2009-05-17 09:20:43 +02:00
|
|
|
@${MKDIR} ${DATADIR}/
|
2001-01-29 11:45:06 +01:00
|
|
|
|
|
|
|
post-install:
|
2005-06-09 09:28:37 +02:00
|
|
|
${LN} -sf libmnogosearch.so \
|
|
|
|
${PREFIX}/lib/libmnogosearch-${PORTVERSION:R}.so.${SHLIB_VER}
|
2001-01-30 13:10:49 +01:00
|
|
|
${CHMOD} 700 /var/mnogosearch/cache
|
2005-06-09 09:28:37 +02:00
|
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} /var/mnogosearch
|
2009-05-17 09:20:43 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/
|
|
|
|
.for f in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/samples/* ${EXAMPLESDIR}/
|
|
|
|
.endif
|
2001-01-29 11:45:06 +01:00
|
|
|
@${ECHO}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2004-05-21 11:12:33 +02:00
|
|
|
.include <bsd.port.post.mk>
|