summaryrefslogtreecommitdiff
path: root/sysutils/mtscan
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-05 17:17:52 +0000
committerjlam <jlam>2008-03-05 17:17:52 +0000
commit676c4402c5cc3ad3c88552218c8c07e0c0912494 (patch)
tree69cc7f6a3e97ac65cec38bb4d0cc9864afadafb4 /sysutils/mtscan
parent0f0d65d82c89cdd42b4de23e59fb4531dc45c951 (diff)
downloadpkgsrc-676c4402c5cc3ad3c88552218c8c07e0c0912494.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"