OpenBSD + liquidsoap

Get the sources: https://github.com/savonet/liquidsoap/releases and untar them.

Add some packages:

# pkg_add ocaml
# pkg_add ocaml-graphics
# pkg_add fdk-aac
# pkg_add faad
# pkg_add libao
# pkg_add libmad
# pkg_add taglib
# pkg_add ocaml-pcre
# pkg_add ocaml-camlp4
# pkg_add libogg
# pkg_add libvorbis
# pkg_add flac
# pkg_add lame
# pkg_add gmake
# pkg_add ffmpeg
# pkg_add findlib 

Tune liquidsoap main packages configure file:
Search for

XXX.ml

and rename it exactly to

ml.XXXXXX

(six Xes !)
Replace

trap "rm -f $DYN_TEST_FILE_ML; exit" SIGHUP SIGINT SIGTERM

with

trap "rm -f $DYN_TEST_FILE_ML; exit" 1 2 15

Create some symliks:

# ln -s /usr/local/lib/libmp3lame.la  /usr/lib/                                                                                                                                                                                                                                                                              
# ln -s /usr/local/lib/libmp3lame.so.2.1  /usr/lib/                                                                                                                                                                                                                                                                          
# ln -s /usr/local/lib/libmp3lame.so.2.1  /usr/lib/ 
# ln -s /usr/local/include/lame /usr/include/  
# ln -s /usr/local/lib/libfaad.a /usr/lib/                                                                                                                                                                                                                                                                                   
# ln -s /usr/local/lib/libfaad.la /usr/lib/
# ln -s /usr/local/lib/libfaad.so.3.0  /usr/lib/                                                                                                                                                                                                                                                                             
# ln -s /usr/local/lib/libfdk-aac.a /usr/lib/                                                                                                                                                                                                                                                                                   
# ln -s /usr/local/lib/libfdk-aac.la /usr/lib/
# ln -s /usr/local/lib/libfdk-aac.so.1.0  /usr/lib/                                                                                                                                                                                                                                                                             
# ln -s /usr/local/include/neaacdec.h /usr/include/

Prepare the ground for compiling:

# useradd -m compiler
# chown -R compiler ../liquidsoap-1.3.1-full
# su - compiler
$ cd ../liquidsoap-1.3.1-full

Download ocaml-camomile package from older OpenBSD versions.

# pkg_add -Dunsigned ../ocaml-camomile-0.8.5p1.tgz

Configure as user compiler:

$ ./configure

or without camomile:

$ ./configure --disable-camomile

Build as root:

# gmake
# gmake install
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s