Skip to content

Commit 2295edc

Browse files
committedDec 13, 2011
Merge branch 'master' of github.com:plainblack/wrebuild
2 parents 0b48f14 + f3a708c commit 2295edc

File tree

4 files changed

+30
-917
lines changed

4 files changed

+30
-917
lines changed
 

‎BUILD.macosx

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
To build a WRE on MacOS X. Do the following tasks:
2+
3+
1) Install X-Code from the Mac App Store.
4+
5+
2) Install wget:
6+
http://www.merenbach.com/software/wget/
7+
8+
3) Install MySQL. We recommend the MySQL Community Server:
9+
http://www.mysql.com/downloads/mysql/
10+
11+
4) Import the WRE into your environment:
12+
. wre/sbin/setenvironment.sh
13+
14+
5) Run:
15+
./getsource.sh
16+
17+
6) Run:
18+
./build.sh --all
19+

‎BUILD.redhat

+10-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ To build a WRE on RedHat Enterprise Linux. Do the following tasks:
22

33
1) Install the following packages:
44

5-
ncurses-devel gcc make glibc-devel gcc-c++ zlib-devel openssl-devel java sendmail expat-devel glib2-devel
5+
ncurses-devel gcc make glibc-devel gcc-c++ zlib-devel openssl-devel expat-devel glib2-devel wget
66

77
2) Install MySQL. We recommend the Percona Server version:
8-
9-
http://www.percona.com/software/percona-server/downloads/
8+
http://www.percona.com/software/percona-server/downloads/
9+
10+
3) Import the WRE into your environment:
11+
. wre/sbin/setenvironment.sh
1012

11-
3) Run:
12-
getsource.sh
13-
1413
4) Run:
15-
build.sh --all
14+
./getsource.sh
15+
16+
5) Run:
17+
./build.sh --all
18+
1619

‎build.sh

+1-75
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ cat <<_WREHELP
1919
--all builds all packages
2020
--clean cleans all pre-req folders for a new build
2121
--help displays this screen
22-
--ia64 turns on special flags for building on 64-bit systems
23-
2422
2523
Packages: (must be built in the order shown below)
2624
@@ -45,10 +43,6 @@ do
4543

4644
case "$opt" in
4745

48-
--ia64)
49-
export WRE_IA64=1
50-
;;
51-
5246
--clean)
5347
export WRE_CLEAN=1
5448
;;
@@ -138,11 +132,6 @@ if [ -d /data ]; then
138132
# --cache-file speeds up configure a lot
139133
rm /tmp/Configure.cache
140134
export CFG_CACHE="" #"--cache-file=/tmp/Configure.cache"
141-
if [ "$WRE_IA64" == 1 ]; then
142-
export CFLAGS="$CFLAGS -fPIC"
143-
export CXXFLAGS="$CXXFLAGS -fPIC"
144-
export PERLCFGOPTS="-Accflags=\"-fPIC\" $PERLCFGOPTS"
145-
fi
146135

147136
# deal with operating system inconsistencies
148137
export WRE_OSNAME=`uname -s`
@@ -268,47 +257,6 @@ buildUtils(){
268257
printHeader "Utilities"
269258
cd source
270259

271-
# libtool
272-
# buildProgram "libtool-2.2.6"
273-
274-
# ncurses
275-
# buildProgram "ncurses-5.7" "$CFG_CACHE --with-shared "
276-
277-
# zlib
278-
# buildProgram "zlib-1.2.3" "--shared"
279-
280-
# libiconv
281-
# if [ "$WRE_OSNAME" != "Darwin" ] && [ "$WRE_OSTYPE" != "Leopard" ]; then
282-
# buildProgram "libiconv-1.13" "$CFG_CACHE"
283-
# fi
284-
285-
# rsync
286-
# buildProgram "rsync-3.0.6" "$CFG_CACHE"
287-
288-
# libgpg-error
289-
# buildProgram "libgpg-error-1.7" "$CFG_CACHE"
290-
291-
# libgcrypt
292-
# buildProgram "libgcrypt-1.4.6" "$CFG_CACHE $CFG_LIBGCRYPT"
293-
294-
# gnutls
295-
# buildProgram "gnutls-2.8.5" "$CFG_CACHE"
296-
297-
# expat
298-
# buildProgram "expat-2.0.1" "$CFG_CACHE"
299-
300-
# readline
301-
# buildProgram "readline-6.1" "$CFG_CACHE"
302-
303-
# curl
304-
# buildProgram "curl-7.19.7" "$CFG_CACHE --with-ssl=$PREFIX --with-zlib=$PREFIX --with-gnutls=$PREFIX"
305-
306-
# lftp
307-
# SAVED_CFLAGS=$CFLAGS
308-
# CFLAGS="$CFLAGS -liconv"
309-
# buildProgram "lftp-4.3.3" "--with-libiconv-prefix=$PREFIX --with-openssl=$PREFIX"
310-
# CFLAGS=$SAVED_CFLAGS
311-
312260
# catdoc
313261
cd catdoc-0.94.2
314262
if [ "$WRE_CLEAN" == 1 ]; then
@@ -398,46 +346,24 @@ buildImageMagick(){
398346
# lib ungif
399347
buildProgram "giflib-4.1.6" "--enable-shared $CFG_CACHE"
400348

401-
# tiff
402-
# buildProgram "tiff-3.8.2" "$CFG_CACHE"
403-
404349
# lib png
405350
buildProgram "libpng-1.5.6" "--enable-shared $CFG_CACHE"
406351

407-
# lcms
408-
# buildProgram "lcms-1.19" "$CFG_CACHE"
409-
410352
# graphviz
411353
buildProgram "graphviz-2.24.0" "$CFG_CACHE --enable-static --with-libgd=no --with-mylibgd=no --disable-java --disable-swig --disable-perl --disable-python --disable-php --disable-ruby --disable-sharp --disable-python23 --disable-python24 --disable-python25 --disable-r --disable-tcl --disable-guile --disable-io --disable-lua --disable-ocaml"
412354
ln -s $PREFIX/bin/dot_static $PREFIX/bin/dot
413355

414-
415356
# image magick
416357
cd ImageMagick-* # when you update this version number, update the one below as well
417358
printHeader "Image Magick"
418359
if [ "$WRE_CLEAN" == 1 ]; then
419360
$WRE_MAKE distclean
420361
$WRE_MAKE clean
421362
fi
422-
if [ "$WRE_IA64" == 1 ]; then
423-
SAVED_LDFLAGS="$LDFLAGS"
424-
LDFLAGS="$LDFLAGS -L$PREFIX/lib -L$PREFIX/lib/perl5/lib -L$PREFIX/lib/perl5/5.14.2/x86_64-linux/CORE"
425-
fi
426-
# For some reason the CFG_CACHE causes compile to fail
427363
GNUMAKE=$WRE_MAKE ./configure LD=ld --enable-delegate-build LDFLAGS=-L$PREFIX/lib CPPFLAGS=-I$PREFIX/include --enable-shared --prefix=/data/apps --with-jpeg --with-png --with-gif --with-perl --without-x --with-xml
428-
# ./configure --prefix=$PREFIX --with-zlib=$PREFIX --enable-delegate-build --enable-shared --with-gvc --with-jp2 --with-jpeg --with-png --with-perl --with-lcms --with-tiff --without-x GVC_CFLAGS=-I$PREFIX/include/graphviz GVC_LIBS="-L$PREFIX/lib -lgvc -lgraph -lcdt" $IM_OPTION; checkError $? "Image Magick configure"
429-
# if [ "$WRE_OSNAME" == "Darwin" ]; then # technically this is only for Darwin i386, but i don't know how to detect that
430-
# $PREFIX/bin/perl -i -p -e's[\#if defined\(PNG_USE_PNGGCCRD\) \&\& defined\(PNG_ASSEMBLER_CODE_SUPPORTED\) \\][#if FALSE]g' coders/png.c
431-
# fi
432364
$WRE_MAKE; checkError $? "Image Magick make"
433365
$WRE_MAKE install; checkError $? "Image Magick make install"
434366

435-
# cd $WRE_BUILDDIR
436-
# cp source/colors.xml $PREFIX/lib/ImageMagick/config/
437-
438-
if [ "$WRE_IA64" == 1 ]; then
439-
LDFLAGS="$SAVED_LDFLAGS"
440-
fi
441367
}
442368

443369
# most perl modules are installed the same way
@@ -481,7 +407,7 @@ installPerlModules () {
481407
#awstats
482408
installAwStats(){
483409
printHeader "AWStats"
484-
cp -RL source/awstats-6.95/* $PREFIX
410+
cp -RL source/awstats-7.0/* $PREFIX
485411
}
486412

487413
#wre utils

‎getperlmodules.sh

-835
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.