Fix bash detection in the makefile

Reported by:	QAT
This commit is contained in:
Baptiste Daroussin 2014-04-04 11:44:41 +00:00
parent 188fcbfce1
commit 6ce8b0ec31
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350100

View file

@ -3,7 +3,7 @@
PORTNAME= sn
PORTVERSION= 0.3.8
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= news
MASTER_SITES= http://www.infa.abo.fi/~patrik/sn/files/ \
http://home.arcor.de/teambushido/fbsd_ports/ \
@ -14,6 +14,8 @@ COMMENT= Small news system for small sites serving
LICENSE= GPLv2
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
USES= gmake tar:bzip2
MAKE_ARGS+= PREFIX="${PREFIX}" LD="${CC}" CC="${CC}"
@ -30,7 +32,8 @@ post-patch:
${REINPLACE_CMD} -e 's|sn\.a$$|& lib/libstuff.a| ; \
s|snlockf\.o$$|& lib/libstuff.a| ; \
s|-g -Wall -pedantic -O|${CFLAGS} -Wall -pedantic| ; \
s|strip |${STRIP_CMD} |' \
s|strip |${STRIP_CMD} | ; \
s|/bin/bash|${LOCALBASE}/bin/bash|' \
${WRKSRC}/Makefile
pre-install: