This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

elinks for cygwin from source


Folks - I just wanted to share this with the others on the list.

I am a huge user of elinks web browser.  I like to use it to convert
html documents to (mostly) formatted plain ascii documents

elinks is now dropped from the cygwin repos so I put together this
little bash script in the spirit of gentoo to build from source.

It pulls the source code tarball with wget then builds and installes

It also patches the "-rdynamic" flag to gcc in the generated
Makefile.config to "--rdynamic"
(I don't know if this is a type-o or an old feature no-longer supported by gcc).

Hope this helps someone . . .

#!/bin/bash


###
### http://elinks.or.cz/download.html
###
### http://elinks.or.cz/download/elinks-current-unstable.tar.bz2
###
### http://cygwin.com/ml/cygwin-apps/2003-12/msg00323.html
###   --without-x --enable-leds  --enable-fastmem  --enable-256-colors
###

### $ /usr/bin/links -width 132 -dump http://elinks.or.cz/download.html
###
#
# % git clone http://elinks.cz/elinks.git
# % cd elinks
# % git branch elinks-0.11 origin/elinks-0.11
# % git branch -v
# % git checkout master
# % git checkout elinks-0.11


if [[ -d $HOME/Archive/. ]] ; then
 SRCDIR="$HOME/Archive"
fi

if [[ -d /*src*/. ]] ; then
 SRCDIR="$(/bin/ls -1d /*src*/. | tail -1 )"
fi

if [[ ! -d "$SRCDIR" ]] ; then
 mkdir -p $HOME/Archive
 SRCDIR="$HOME/Archive"
fi

if [[ ! -d "$SRCDIR" ]] ; then
 echo "$0 : 5679917741134199 : ERROR SRCDIR $SRCDIR not found"
 exit
fi

cd "$SRCDIR"
mkdir elinks
if [[ ! -d "elinks" ]] ; then
 echo "$0 : 8589378762966375 : ERROR Dir $SRCDIR/elinks not found"
 exit
fi

cd elinks
/bin/rm -rf elinks-current-unstable.tar.bz2
wget 'http://elinks.or.cz/download/elinks-current-unstable.tar.bz2'


### LC_ALL=en TERM=vt100 /usr/local/bin/elinks 'http://www.google.com/'

mkdir -p elinks-current-unstable.tar.bz2_d
cd       elinks-current-unstable.tar.bz2_d

tar -jxvf ../elinks-current-unstable.tar.bz2

export CC=/usr/bin/gcc-4
export MAKE=/usr/bin/make

cd elinks*/.
./configure --prefix=/usr/local --without-x --enable-leds
--enable-fastmem  --enable-256-colors

cat   ./Makefile.config | sed 's/[-]*rdynamic/--rdynamic/' >
./Makefile.config.new
cp -p ./Makefile.config     ./Makefile.config.old
cp -p ./Makefile.config.new ./Makefile.config

make all
make install

type -pa elinks

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]