mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
f823078f01
PR: ports/184811 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
37 lines
893 B
Makefile
37 lines
893 B
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= swish++
|
|
PORTVERSION= 6.1.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= www textproc
|
|
MASTER_SITES= SF/swishplusplus/swishplusplus/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Simple Web Indexing System for Humans: C++ version
|
|
|
|
RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
|
|
|
|
USES= gmake perl5
|
|
MAKEFILE= GNUmakefile
|
|
MAKE_ENV= PERL="${PERL}" PERL_VER="${PERL_VER}"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/^#error/d' ${WRKSRC}/config.h
|
|
.for i in scripts/searchd scripts/searchmonitor
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/${i}.in
|
|
.endfor
|
|
|
|
do-configure:
|
|
@(cd ${WRKSRC}/config && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
|
|
${MAKE_FLAGS} ${MAKEFILE})
|
|
|
|
pre-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}
|
|
|
|
post-install:
|
|
(cd ${FILESDIR} && ${INSTALL_SCRIPT} swish++.sh \
|
|
${STAGEDIR}${PREFIX}/etc/rc.d/swish++.sh.sample)
|
|
|
|
.include <bsd.port.mk>
|