mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Override CC as well as CFLAGS/LDFLAGS from command line
PR: ports/163227 Submitted by: Jan Beich <jbeich@tormail.net>
This commit is contained in:
parent
4713473b44
commit
1cc21ced0a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287726
1 changed files with 1 additions and 6 deletions
|
@ -13,15 +13,10 @@ MASTER_SITES= http://s-tech.elsat.net.pl/bmtools/
|
|||
MAINTAINER= mich@FreeBSD.org
|
||||
COMMENT= A traffic analysis command-line utility
|
||||
|
||||
MAKE_ARGS= ${MAKE_ENV}
|
||||
LDFLAGS+= -lcompat
|
||||
CFLAGS+= -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|^CFLAGS.*$$|CFLAGS=${CFLAGS}|g ; \
|
||||
s|^LDFLAGS.*$$|LDFLAGS=${LDFLAGS}|g ; \
|
||||
s|gcc|${CC}|g' ${WRKSRC}/Makefile
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/rate ${PREFIX}/bin/rate
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/rate.1 ${PREFIX}/man/man1
|
||||
|
|
Loading…
Add table
Reference in a new issue