summaryrefslogtreecommitdiff
path: root/sysutils/mtscan
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-05 17:17:52 +0000
committerjlam <jlam@pkgsrc.org>2008-03-05 17:17:52 +0000
commiteb72adfa9fcf449a596e39640829bc2c462d246b (patch)
tree69cc7f6a3e97ac65cec38bb4d0cc9864afadafb4 /sysutils/mtscan
parent61906b83f556eced4e1246fe05375f45545576e4 (diff)
downloadpkgsrc-eb72adfa9fcf449a596e39640829bc2c462d246b.tar.gz
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.
Diffstat (limited to 'sysutils/mtscan')
-rw-r--r--sysutils/mtscan/Makefile9
1 files changed, 7 insertions, 2 deletions
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"