From b816d59fb0dfcee5f702078a01c1dbdee37ce099 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 28 Jun 2000 12:53:16 +0000 Subject: - Support CFLAGS/PREFIX/LOCALBASE properly - Add WWW: line into pkg/DESCR PR: 19345 Submitted by: KATO Tsuguru --- net/trafshow4/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'net/trafshow4/Makefile') diff --git a/net/trafshow4/Makefile b/net/trafshow4/Makefile index 6a7c59b2d218..e6fc8b78ad04 100644 --- a/net/trafshow4/Makefile +++ b/net/trafshow4/Makefile @@ -19,14 +19,18 @@ LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses .endif GNU_CONFIGURE= yes -CONFIGURE_ENV= LDFLAGS=-L/usr/local/lib +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" ALL_TARGET= trafshow MAN1= trafshow.1 +post-patch: + @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.c + do-install: - @ ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin - @ ${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1 - @ ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow + ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow .include -- cgit