summaryrefslogtreecommitdiff
path: root/misc/kcd/Makefile
diff options
context:
space:
mode:
authorChris D. Faulhaber <jedgar@FreeBSD.org>2000-05-07 21:41:50 +0000
committerChris D. Faulhaber <jedgar@FreeBSD.org>2000-05-07 21:41:50 +0000
commit1640ea33b405f51938c7ed7b80a7dadf87730f5f (patch)
tree05d331c4a6028cce85d79516f0fc1f0489f91e62 /misc/kcd/Makefile
parent- Remove obsolete sites from MASTER_SITES (diff)
Update port to 4.11.2
PR: 18440 Submitted by: tkato@prontomail.ne.jp
Diffstat (limited to 'misc/kcd/Makefile')
-rw-r--r--misc/kcd/Makefile52
1 files changed, 27 insertions, 25 deletions
diff --git a/misc/kcd/Makefile b/misc/kcd/Makefile
index 581834c00153..71f28783939d 100644
--- a/misc/kcd/Makefile
+++ b/misc/kcd/Makefile
@@ -5,36 +5,38 @@
# $FreeBSD$
#
-PORTNAME= kcd
-PORTVERSION= 4.11.1
-CATEGORIES= misc
-MASTER_SITES= ${MASTER_SITE_SUNSITE} \
- http://www-scf.usc.edu/~lerdsuwa/util/
-MASTER_SITE_SUBDIR= utils/shell
+PORTNAME= kcd
+PORTVERSION= 4.11.2
+CATEGORIES= misc
+MASTER_SITES= http://download.sourceforge.net/kcd/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses
+.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 400010
+LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses
+.endif
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include" \
- LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
-MAN1= kcd.1
+USE_NEWGCC= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+MAN1= kcd.1
-do-install:
- @ ${INSTALL_PROGRAM} ${WRKSRC}/kcdmain ${PREFIX}/bin
- @ ${INSTALL_SCRIPT} ${WRKSRC}/kcdscr ${PREFIX}/bin
- @ ${INSTALL_MAN} ${WRKSRC}/kcd.1 ${PREFIX}/man/man1
- @ ${MKDIR} ${PREFIX}/share/examples/kcd
- @ ${INSTALL_DATA} ${WRKSRC}/kcd.csh.init ${PREFIX}/share/examples/kcd
- @ ${INSTALL_DATA} ${WRKSRC}/kcd.sh.init ${PREFIX}/share/examples/kcd
+post-patch:
+ @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.cc
-post-install:
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/kcdmain ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/kcdscr ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/kcd.1 ${PREFIX}/man/man1
+ @${MKDIR} ${PREFIX}/share/examples/kcd
+ ${INSTALL_DATA} ${WRKSRC}/kcd.csh.init ${PREFIX}/share/examples/kcd
+ ${INSTALL_DATA} ${WRKSRC}/kcd.sh.init ${PREFIX}/share/examples/kcd
.if !defined(NOPORTDOCS)
- @ ${MKDIR} ${PREFIX}/share/doc/kcd
-.for file in CHANGES COPYING INSTALL README
- @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/kcd
-.endfor
+ @${MKDIR} ${PREFIX}/share/doc/kcd
+ ${INSTALL_DATA} ${WRKSRC}/CHANGES ${PREFIX}/share/doc/kcd
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/kcd
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>