pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/mtscan Honor CFLAGS and LDFLAGS, and include ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3bd0b0acbbb1
branches:  trunk
changeset: 539434:3bd0b0acbbb1
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Mar 05 17:17:52 2008 +0000

description:
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:

 sysutils/mtscan/Makefile |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r e6d3b6ac0cbd -r 3bd0b0acbbb1 sysutils/mtscan/Makefile
--- a/sysutils/mtscan/Makefile  Wed Mar 05 17:14:10 2008 +0000
+++ b/sysutils/mtscan/Makefile  Wed Mar 05 17:17:52 2008 +0000
@@ -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 @@
 
 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"



Home | Main Index | Thread Index | Old Index