Source

woocode / sa-auto / src / set_app_env.sh

Full commit
#!/bn/sh

APP=/opt

APP_SVR=$APP/svr

APP_LIB=$APP/lib

APP_DAT=$APP/dat

APP_DBDAT=$APP/dbdat

READLINE=readline-6.1

NCURSES=ncurses-5.7
ZLIB=zlib-1.2.3
NGINX=nginx-1.0.14

FCGI=fcgi-2.4.0
PCRE=pcre-7.8
PCRE=pcre-8.30
SQUID=squid-2.6.STABLE22
BDB=db-4.7.25
POSTGRES=postgresql-8.4.8
#POSTGRES=postgresql-9.0.4
#IMAGEMAGICK=ImageMagick-6.4.0
IMAGEMAGICK=ImageMagick-6.6.9-7
GRAPICSMAGICK=GraphicsMagick-1.3.12
#JMAGICK=jmagick-6.4.0
JMAGICK=jmagick-6.5.7
RESIN=resin-4.0.1
JDK=jdk
#PNG=libpng-1.2.35
PNG=libpng-1.5.4
JPEG=jpeg-6b
JPEG=jpeg-8c
PHPSSH2=ssh2-0.11.3


GD=gd-2.0.35

#APACHE22=httpd-2.2.11
APACHE22=httpd-2.2.21

OPENSSL=openssl-1.0.1

#OPENSSH=openssh-5.6p1
OPENSSH=openssh-5.9p1

LIBXML=libxml2-2.7.3

LIBXML=libxml2-2.7.8

CURL=curl-7.21.7
#MYSQL5=mysql-5.0.83

MYSQL5=mysql-5.1.62

#PHP5=php-5.2.10
#PHP5=php-5.3.6

PHP5=php-5.3.8

TIFF=tiff-3.9.2

#LIBSSH2=libssh2-1.2.6
LIBSSH2=libssh2-1.2.8


LIBICONV=libiconv-1.13.1
FREETYPE=freetype-2.3.9
FREETYPE=freetype-2.4.6
FONTCONFIG=fontconfig-2.8.0

#MCRYPT=mcrypt-2.6.8
#LIBMCRYPT=libmcrypt-2.5.3
#SUBVERSION_DEPS=subversion-deps-1.6.5
#SUBVERSION=subversion-1.6.5
#RSYNC=rsync-3.0.5

MEMCACHED=memcached-1.4.6
MEMCACHE=memcache-3.0.6
LIBEVENT=libevent-2.0.12-stable

export APP
export APP_SVR
export APP_LIB
export APP_DAT


export READLINE
export ZLIB
export NGINX
export FCGI
export PCRE
export SQUID
export BDB
export POSTGRES
export IMAGEMAGICK
export GRAPICSMAGICK
export JMAGICK
export RESIN
export PNG
export JPEG
export GD
export JDK

export APACHE22

export OPENSSL
export OPENSSH
export MYSQL5
export PHP5
export TIFF

export LIBSSH2

#export APACHE
#export SUBVERSION_DEPS
#export SUBVERSION
#export RSYNC


PKG_CONFIG_PATH=""
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$APP_LIB/openssl/lib/pkgconfig
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$APP_LIB/libssh2/lib/pkgconfig
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$APP_LIB/pcre/lib/pkgconfig


export PKG_CONFIG_PATH

CC=gcc;export CC


#G_CFLAGS="-O3 -mtune=native -march=native -fprefetch-loop-arrays -fomit-frame-pointer -mfpmath=sse -pipe -DNDEBUG";   export G_CFLAGS;
#G_CPPFLAGS="-O3 -mtune=native -march=native -fprefetch-loop-arrays -fomit-frame-pointer -mfpmath=sse -pipe -DNDEBUG"; export G_CPPFLAGS;
G_CFLAGS="-O2 -march=core2 -fprefetch-loop-arrays -fomit-frame-pointer -mfpmath=sse -pipe -DNDEBUG";   export G_CFLAGS;
G_CPPFLAGS="-O2 -march=core2 -fprefetch-loop-arrays -fomit-frame-pointer -mfpmath=sse -pipe -DNDEBUG"; export G_CPPFLAGS;
G_LDFLAGS="";export G_LDFLAGS

#L_CFLAGS
#L_CPPFLAGS
#L_LDFLAGS



CFLAGS=" $G_CFLAGS $L_CFLAGS";export CFLAGS;
CPPFLAGS=" $G_CPPFLAGS $L_CPPFLAGS";export CPPFLAGS;
LDFLAGS=" $G_LDFLAGS $L_LDFLAGS";export LDFLAGS;


MAKEOPT="-j 8"


#CFLAGS="-O2 -pipe -DNDEBUG";export CFLAGS;
#LDFLAGS="";export LDFLAGS;