aboutsummaryrefslogtreecommitdiffstats
path: root/misc/txt2regex/Makefile
blob: 5c77a6c06e6afbc85d283317421e2ff8fa92e056 (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
# ex:ts=8
# New ports collection makefile for:    txt2regex
# Date created:         Jun 14, 2001
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   txt2regex
PORTVERSION=    0.5
CATEGORIES= misc
MASTER_SITES=   http://txt2regex.sourceforge.net/
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org

RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash2 \
        gseq:${PORTSDIR}/misc/sh-utils

NO_BUILD=   yes

post-patch:
    @${PERL} -pi -e "s,/bin/bash,${LOCALBASE}/bin/bash,g ; \
        s,\`seq,\`gseq,g" ${WRKSRC}/${DISTNAME}.sh
    @${PERL} -pi -e "s,/usr,${LOCALBASE},g" ${WRKSRC}/Makefile

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME}.sh ${PREFIX}/bin/txt2regex

.include <bsd.port.mk>