1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/www/swish++/Makefile
Sergey Matveychuk b345c8414c - Update to 6.0.4 and unbreak build with gcc 3.4
- Added USE_GCC=3.4 for FreeBSD 4.x users

PR:		ports/74274
Submitted by:	Sergio Mangialardi <sergio(at)softshark.org>
2004-11-23 13:21:30 +00:00

50 lines
1.1 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: swish++
# Date created: Jan 13, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= swish++
PORTVERSION= 6.0.4
CATEGORIES= www textproc
MASTER_SITES= http://homepage.mac.com/pauljlucas/software/
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple Web Indexing System for Humans: C++ version
RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
USE_PERL5= yes
USE_REINPLACE= yes
USE_GMAKE= yes
MAKEFILE= GNUmakefile
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS} \
PERL=${PERL} PERL_VER=${PERL_VER}
MAN1= extract.1 httpindex.1 index.1 search.1 splitmail.1
MAN3= WWW.3
MAN4= swish++.conf.4 swish++.index.4
MAN8= searchd.8 searchmonitor.8
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
USE_GCC= 3.4
.endif
post-patch:
@${REINPLACE_CMD} -e '/^#error/d' ${WRKSRC}/config.h
.for file in scripts/searchd scripts/searchmonitor
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/${file}.in
.endfor
pre-install:
@${MKDIR} ${SITE_PERL}
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/swish++.sh ${PREFIX}/etc/rc.d/swish++.sh.sample
.include <bsd.port.post.mk>