the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: lynx
Version: 2.8.7
Revision: 1
Replaces: lynx-ssl (<< 2.8.5-6)
BuildDepends: libncurses5, libgettext8-dev, gettext-bin, libiconv-dev, system-openssl-dev, fink (>= 0.24.12-1)
Depends: ncurses, libncurses5-shlibs, libgettext8-shlibs, libiconv, gzip, bzip2, tar, gettext-tools
BuildConflicts: coreutils-default
CustomMirror: <<
Primary: http://lynx.isc.org/%n%v/
Primary: http://ftp.at.gnucash.org/infosys/browsers/lynx/%n%v/
Primary: http://gd.tuwien.ac.at/infosys/browsers/lynx/%n%v/
<<
Source: mirror:custom:lynx%v.tar.bz2
Source-MD5: 493af4c77ef6761e3f0157cd1be033a0
SourceDirectory: lynx2-8-7
Description: Console based web browser
DescDetail: <<
Lynx is a web browser that runs inside a terminal emulator,
e.g. Terminal.app or an xterm. It can't display graphics and also has
trouble with tables, but it can come in handy in some situations.
This package builds Lynx with SSL/https support using Apple's
openssl implementation.
<<
##Compile phase
ConfigureParams: --enable-nls --with-screen=ncurses --disable-full-paths --enable-file-upload --enable-internal-links --libdir=%p/lib --mandir=%p/share/man --sysconfdir=%p/etc --enable-persistent-cookies --with-ssl=%p/lib/system-openssl
SetLDFLAGS: -L%p/lib/system-openssl/lib
SetLIBS: -lncurses
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
CompileScript: <<
ZIP=/usr/bin/zip ./configure %c
make
<<
#Install Phase
InstallScript: <<
make install-full DESTDIR=%d docdir=%p/share/doc/%n helpdir=%p/share/lynx_help
<<
DocFiles: CHANGES COPYHEADER COPYING README
ConfFiles: %p/etc/lynx.cfg
#
DescPort: <<
Unicode characters do not work correctly with Terminal.app but they
display OK in xterm
<<
DescPackaging: <<
The Makefile for the message catalogs doesn't respect DESTDIR, we work
around that by setting the installation paths on the command line.
Putting lynx.cfg in etc/ and the documentation elsewhere is a problem
because the configure script uses libdir for both. Fortunately, only
the path to lynx.cfg is hardcoded into the executable. So we set
libdir to etc/ and override the doc and help directories in the
install step. The Makefile edits lynx.cfg on the fly in the install
step, so all paths are correct.
Previous maintainer Alexander Strange (through 2.8.4-24).
Hard-codes executable paths as detected by ./configure. May as well use fink's
commands that are from Essential packages...
gzip: gzip, gunzip, unzip
bzip2: bzip2
tar: tar
but then force others to be from OS X (avoid detection of coreutils and/or
hard-code /usr/bin pathnames). gettext-tools is close enough to essential (or
at least "always installed") no harm in Depends on it.
<<
License: GPL
Homepage: http://lynx.browser.org/
Maintainer: elcepi
diff -urN lynx2-8-5/WWW/Library/Implementation/HTTCP.c lynx2-8-5.patched/WWW/Library/Implementation/HTTCP.c
--- lynx2-8-5/WWW/Library/Implementation/HTTCP.c 2004-01-24 17:51:04.000000000 -0800
+++ lynx2-8-5.patched/WWW/Library/Implementation/HTTCP.c 2006-06-07 22:30:28.000000000 -0700
@@ -1326,7 +1326,11 @@
if (phost->h_length != sizeof soc_in->sin_addr) {
HTAlwaysAlert(host, gettext("Address length looks invalid"));
}
+#ifdef _POSIX_C_SOURCE
+ memcpy((void *)&soc_in->sin_addr, phost->h_addr_list[0], phost->h_length);
+#else
memcpy((void *)&soc_in->sin_addr, phost->h_addr, phost->h_length);
+#endif /* _POSIX_C_SOURCE */
#endif /* VMS && CMU_TCP */
}
#endif /* _WINDOWS_NSL */
diff -urN lynx2-8-5/WWW/Library/Implementation/makefile.in lynx2-8-5.patched/WWW/Library/Implementation/makefile.in
--- lynx2-8-5/WWW/Library/Implementation/makefile.in 2004-01-24 20:51:04.000000000 -0500
+++ lynx2-8-5.patched/WWW/Library/Implementation/makefile.in 2008-06-08 18:56:59.000000000 -0400
@@ -25,12 +25,12 @@
INTLDIR_CPPFLAGS= @INTLDIR_CPPFLAGS@ -I$(top_srcdir)/intl
CPP = @CPP@
-CPPOPTS = $(DEFS) $(CPPFLAGS) $(LYFLAGS) \
+CPPOPTS = $(DEFS) $(LYFLAGS) \
-I../../.. \
-I../../../src \
-I$(top_srcdir) \
-I$(top_srcdir)/src \
- $(INTLDIR_CPPFLAGS) -I$(WWWINC)
+ -I$(WWWINC) $(INTLDIR_CPPFLAGS) $(CPPFLAGS)
LY_CFLAGS = @CFLAGS@
CFLAGS = $(CPPOPTS) $(LY_CFLAGS)
diff -urN lynx2-8-5/configure lynx2-8-5.patched/configure
--- lynx2-8-5/configure 2004-02-04 07:07:09.000000000 -0500
+++ lynx2-8-5.patched/configure 2008-06-08 18:52:38.000000000 -0400
@@ -5860,11 +5860,11 @@
*)
if test -d $cf_cv_use_libssl ; then
if test -d $cf_cv_use_libssl/include ; then
- CPPFLAGS="$CPPFLAGS -I$cf_cv_use_libssl/include"
+ CPPFLAGS="-I$cf_cv_use_libssl/include $CPPFLAGS"
cf_ssl_library="-L$cf_cv_use_libssl/lib $cf_ssl_library"
else
cf_ssl_library="-L$cf_cv_use_libssl $cf_ssl_library"
- test -d $cf_cv_use_libssl/../include && CPPFLAGS="$CPPFLAGS -I$cf_cv_use_libssl/../include"
+ test -d $cf_cv_use_libssl/../include && CPPFLAGS="-I$cf_cv_use_libssl/../include $CPPFLAGS"
fi
else
echo "configure: warning: expected a directory: $cf_cv_use_libssl" 1>&2
@@ -9595,7 +9595,7 @@
;;
esac
-eval cf_libdir=$libdir
+eval cf_libdir=$sysconfdir
cf_libdir=`echo $cf_libdir | sed -e s%'^NONE/'%$prefix/% -e s%'^NONE/'%$ac_default_prefix/%`
echo $ac_n "checking for location of config-file""... $ac_c" 1>&6
diff -urN lynx2-8-5/makefile.in lynx2-8-5.patched/makefile.in
--- lynx2-8-5/makefile.in 2004-02-04 04:07:09.000000000 -0800
+++ lynx2-8-5.patched/makefile.in 2006-06-07 22:30:28.000000000 -0700
@@ -305,7 +305,7 @@
fi'
$(SHELL) -c 'for name in COPYING COPYHEADER; do \
cd $(HELPDIR) && rm -f $$name ;\
- cd $(HELPDIR) && ( $(LN_S) $(DOCDIR)/$$name . || cp $(DOCDIR)/$$name . );\
+ cd $(HELPDIR) && cp $(DOCDIR)/$$name . ;\
done'
-$(SHELL) -c 'case `id|sed -e "s/(.*//"` in uid=0) chown -R root $(DOCDIR);; esac'
diff -urN lynx2-8-5/src/LYMain.c lynx2-8-5.patched/src/LYMain.c
--- lynx2-8-5/src/LYMain.c 2004-01-28 14:30:38.000000000 -0500
+++ lynx2-8-5.patched/src/LYMain.c 2008-06-08 18:32:29.000000000 -0400
@@ -48,7 +48,6 @@
#endif
#ifdef LOCALE
-#undef gettext /* Solaris locale.h prototypes gettext() */
#include
#ifndef HAVE_GETTEXT
#define gettext(s) s
diff -urN lynx2-8-5/src/chrtrans/makefile.in lynx2-8-5.patched/src/chrtrans/makefile.in
--- lynx2-8-5/src/chrtrans/makefile.in 2004-01-07 21:03:09.000000000 -0500
+++ lynx2-8-5.patched/src/chrtrans/makefile.in 2008-06-08 22:19:13.000000000 -0400
@@ -31,13 +31,13 @@
x = @EXEEXT@
o = .@OBJEXT@
-CPP_OPTS = @DEFS@ @CPPFLAGS@ \
+CPP_OPTS = @DEFS@ \
-I$(top_builddir) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/chrtrans \
-I$(top_srcdir)/$(WWWINC) \
-I$(top_srcdir)/ \
- $(INTLDIR_CPPFLAGS) $(SITE_DEFS)
+ $(INTLDIR_CPPFLAGS) $(SITE_DEFS) @CPPFLAGS@
CC_OPTS = $(CPP_OPTS) $(CFLAGS)
#
diff -urN lynx2-8-5/src/makefile.in lynx2-8-5.patched/src/makefile.in
--- lynx2-8-5/src/makefile.in 2004-01-07 21:03:09.000000000 -0500
+++ lynx2-8-5.patched/src/makefile.in 2008-06-08 18:17:34.000000000 -0400
@@ -41,7 +41,7 @@
INTLLIB = @INTLLIBS@
INTLDIR_CPPFLAGS= @INTLDIR_CPPFLAGS@-I$(top_srcdir)/intl
-CPP_OPTS = $(CPPFLAGS) $(DEFS) $(CHARSET_DEFS) \
+CPP_OPTS = $(DEFS) $(CHARSET_DEFS) \
-DLOCALEDIR=\"$(localedir)\" \
-I. \
-I$(top_builddir) \
@@ -50,7 +50,7 @@
-I$(top_srcdir) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/$(WWWINC) \
- $(INTLDIR_CPPFLAGS) $(SITE_DEFS)
+ $(INTLDIR_CPPFLAGS) $(SITE_DEFS) $(CPPFLAGS)
CC_OPTS = $(CPP_OPTS) $(CFLAGS)
LINT = @LINT@