summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-03-14 23:53:01 +0000
committerjschauma <jschauma@pkgsrc.org>2003-03-14 23:53:01 +0000
commit2bbe0caaa346712b46fe28b0fba45e00c9ba242b (patch)
treeb0a2229de2306a8ad2d1598d0b8886ddaadc890d /devel
parent4e5bcbadcd366828756f7c90ce8f2a723355a4c1 (diff)
downloadpkgsrc-2bbe0caaa346712b46fe28b0fba45e00c9ba242b.tar.gz
Debian GNU/Linux does not use libtermcap, so on those systems we need
to take out ' -ltermcap ' and instead use ncurses. All other systems remain unaffected.
Diffstat (limited to 'devel')
-rw-r--r--devel/libslang/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/devel/libslang/Makefile b/devel/libslang/Makefile
index dcea0b599ca..af613ebaeaf 100644
--- a/devel/libslang/Makefile
+++ b/devel/libslang/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2003/03/04 22:30:45 mjl Exp $
+# $NetBSD: Makefile,v 1.39 2003/03/14 23:53:01 jschauma Exp $
#
DISTNAME= slang-1.4.8
@@ -29,4 +29,16 @@ post-install:
${MV} ${PREFIX}/share/doc/slang/slangdoc.html \
${PREFIX}/share/doc/html/slang
+.include "../../mk/bsd.prefs.mk"
+
+# Debian doesn't have ltermcap, use ncurses instead
+.if ${OPSYS} == "Linux" && ${LOWER_VENDOR} == "debian"
+post-patch:
+ ${SED} -e 's/ -ltermcap / /' ${WRKSRC}/src/Makefile.in > \
+ ${WRKSRC}/src/Makefile.in.tmp && \
+ ${MV} ${WRKSRC}/src/Makefile.in.tmp ${WRKSRC}/src/Makefile.in
+
+. include "../../devel/ncurses/buildlink2.mk"
+.endif
+
.include "../../mk/bsd.pkg.mk"