From 18a18144d61a4cac30f0e134aa352249888f4474 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 5 Mar 2008 17:17:52 +0000 Subject: Honor CFLAGS and LDFLAGS, and include termcap.buildlink3.mk to get the correct library to use for the t*() termcap functions. Bump the PKGREVISION to 1. --- sysutils/mtscan/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sysutils') diff --git a/sysutils/mtscan/Makefile b/sysutils/mtscan/Makefile index 30ff3c44c3f..a590f922f29 100644 --- a/sysutils/mtscan/Makefile +++ b/sysutils/mtscan/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.9 2008/03/05 17:14:10 jlam Exp $ +# $NetBSD: Makefile,v 1.10 2008/03/05 17:17:52 jlam Exp $ DISTNAME= mtscan-20050129 +PKGREVISION= 1 CATEGORIES= sysutils MASTER_SITES= # empty DISTFILES= # empty @@ -15,15 +16,19 @@ PKG_DESTDIR_SUPPORT= user-destdir NO_CHECKSUM= yes +CPPFLAGS+= -DMTIO + INSTALLATION_DIRS= bin do-extract: ${CP} -R ${FILESDIR} ${WRKSRC} do-build: - cd ${WRKSRC} && ${CC} -O2 -DMTIO -o mtscan mtscan.c -ltermcap + cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o mtscan mtscan.c \ + ${LDFLAGS} ${BUILDLINK_LDADD.termcap} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/mtscan ${DESTDIR}${PREFIX}/bin +.include "../../mk/termcap.buildlink3.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3