summaryrefslogtreecommitdiff
path: root/www/lynx
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-13 08:07:52 +0000
committerjlam <jlam@pkgsrc.org>2004-02-13 08:07:52 +0000
commiteffca19fc347f56a0f77aa0377e57e1c031101b3 (patch)
tree7907af43f000acb70e07e1d86f737a9dfc0b30f7 /www/lynx
parent90deb7ba78e27e9f14507b404ed60e501852912c (diff)
downloadpkgsrc-effca19fc347f56a0f77aa0377e57e1c031101b3.tar.gz
Use curses.buildlink3.mk if LYNX_SCREEN_LIB == "curses" instead of
unconditionally including ncurses/buildlink3.mk.
Diffstat (limited to 'www/lynx')
-rw-r--r--www/lynx/Makefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/www/lynx/Makefile b/www/lynx/Makefile
index b652eaf9acb..d4f4c04d781 100644
--- a/www/lynx/Makefile
+++ b/www/lynx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.64 2004/01/20 12:27:59 agc Exp $
+# $NetBSD: Makefile,v 1.65 2004/02/13 08:07:52 jlam Exp $
#
DISTNAME= lynx2.8.4rel.1
@@ -70,19 +70,15 @@ CONFIGURE_ARGS+= --enable-justify-elts
CONFIGURE_ARGS+= --enable-prettysrc
CONFIGURE_ARGS+= --enable-read-eta
-pre-install:
- ${RM} -f ${WRKSRC}/CHANGES.orig
-
-post-install:
- ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/lynx
-
-.if (${LYNX_SCREEN_LIB} == slang)
+.if ${LYNX_SCREEN_LIB} == "slang"
. include "../../devel/libslang/buildlink3.mk"
-.elif (${LYNX_SCREEN_LIB} == ncurses)
+.elif ${LYNX_SCREEN_LIB} == "ncurses"
USE_NCURSES= color
. include "../../devel/ncurses/buildlink3.mk"
CONFIGURE_ARGS+= --enable-color-style
-.elif (${LYNX_SCREEN_LIB} != curses)
+.elif ${LYNX_SCREEN_LIB} == "curses"
+. include "../../mk/curses.buildlink3.mk"
+.else
pre-configure:
@${ECHO} '****************************************************'
@${ECHO} '* Invalid value for LYNX_SCREEN_LIB. Please choose *'
@@ -119,7 +115,12 @@ CONFIGURE_ARGS+= --with-socks5
CONFIGURE_ARGS+= --enable-ipv6
.endif
-.include "../../devel/ncurses/buildlink3.mk"
+pre-install:
+ ${RM} -f ${WRKSRC}/CHANGES.orig
+
+post-install:
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/lynx
+
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"