pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www Use curses.buildlink3.mk if LYNX_SCREEN_LIB == "cu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c39dc6f22cb7
branches:  trunk
changeset: 468363:c39dc6f22cb7
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Feb 13 08:07:52 2004 +0000

description:
Use curses.buildlink3.mk if LYNX_SCREEN_LIB == "curses" instead of
unconditionally including ncurses/buildlink3.mk.

diffstat:

 www/lynx-current/Makefile |  21 +++++++++++----------
 www/lynx/Makefile         |  23 ++++++++++++-----------
 2 files changed, 23 insertions(+), 21 deletions(-)

diffs (101 lines):

diff -r 4f02ddefdedf -r c39dc6f22cb7 www/lynx-current/Makefile
--- a/www/lynx-current/Makefile Fri Feb 13 06:58:31 2004 +0000
+++ b/www/lynx-current/Makefile Fri Feb 13 08:07:52 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.51 2004/01/24 15:23:47 grant Exp $
+# $NetBSD: Makefile,v 1.52 2004/02/13 08:07:52 jlam Exp $
 #
 
 DISTNAME=              lynx2.8.5dev.7
@@ -29,6 +29,8 @@
 
 BUILD_DEFS+=           LYNX_SCREEN_LIB USE_SOCKS USE_INET6
 
+.include "../../mk/bsd.prefs.mk"
+
 # For nls/gettext
 CONFIGURE_ARGS+=       --enable-nls
 CONFIGURE_ARGS+=       --with-nls-datadir=${PREFIX}/share
@@ -59,19 +61,15 @@
 CONFIGURE_ARGS+=       --enable-prettysrc
 CONFIGURE_ARGS+=       --enable-read-eta
 
-post-install:
-       ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/lynx
-
-.include "../../mk/bsd.prefs.mk"
-
-.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)
-.  if ${MACHINE_PLATFORM:MNetBSD-1.5*-i386} != ""
+.elif ${LYNX_SCREEN_LIB} == curses
+.  include "../../mk/curses.buildlink3.mk"
+.  if !empty(MACHINE_PLATFORM:MNetBSD-1.5*-i386)
 CONFIGURE_ARGS+=       --enable-color-style
 .  endif
 .else
@@ -111,6 +109,9 @@
 CONFIGURE_ARGS+=       --enable-ipv6
 .endif
 
+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"
diff -r 4f02ddefdedf -r c39dc6f22cb7 www/lynx/Makefile
--- a/www/lynx/Makefile Fri Feb 13 06:58:31 2004 +0000
+++ b/www/lynx/Makefile Fri Feb 13 08:07:52 2004 +0000
@@ -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-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+=       --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"



Home | Main Index | Thread Index | Old Index