Created
August 14, 2012 13:28
-
-
Save hkrn/3349251 to your computer and use it in GitHub Desktop.
ビルド設定用
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# based on devil-1.7.8 | |
# | |
export LIBJPEG_PATH=`pwd`/../jpeg-8d/x86_64 | |
export LIBPNG_PATH=`pwd`/../libpng-1.5.12/x86_64 | |
export CFLAGS="-I$LIBJPEG_PATH/include -L$LIBJPEG_PATH/lib -I$LIBPNG_PATH/include -L$LIBPNG_PATH/lib -arch i386" | |
export CXXFLAGS=$CFLAGS | |
export LDFLAGS="-L$LIBJPEG_PATH/lib -L$LIBPNG_PATH/lib" | |
export CONFIGURE_FLAGS="--enable-ILU=yes \ | |
--enable-ILUT=yes \ | |
--enable-blp=no \ | |
--enable-dcx=no \ | |
--enable-dicom=no \ | |
--enable-doom=no \ | |
--enable-fits=no \ | |
--enable-gif=no \ | |
--enable-icns=no \ | |
--enable-icon=no \ | |
--enable-iff=no \ | |
--enable-ilbm=no \ | |
--enable-iwi=no \ | |
--enable-lif=no \ | |
--enable-mdl=no \ | |
--enable-mp3=no \ | |
--enable-pcd=no \ | |
--enable-pcx=no \ | |
--enable-pic=no \ | |
--enable-pix=no \ | |
--enable-pnm=no \ | |
--enable-psd=no \ | |
--enable-psp=no \ | |
--enable-pxr=no \ | |
--enable-raw=no \ | |
--enable-rot=no \ | |
--enable-sgi=no \ | |
--enable-sun=no \ | |
--enable-texture=no \ | |
--enable-tpl=no \ | |
--enable-utx=no \ | |
--enable-vtf=no \ | |
--enable-wal=no \ | |
--enable-wbmp=no \ | |
--enable-wdp=no \ | |
--enable-xpm=no \ | |
--disable-sdltest \ | |
--disable-x11" | |
make clean | |
./configure $CONFIGURE_FLAGS --prefix=`pwd`/i386 | |
make | |
make install | |
export CFLAGS="-I$LIBJPEG_PATH/include -L$LIBJPEG_PATH/lib -I$LIBPNG_PATH/include -L$LIBPNG_PATH/lib -arch x86_64" | |
export CXXFLAGS=$CFLAGS | |
make clean | |
./configure $CONFIGURE_FLAGS --prefix=`pwd`/x86_64 | |
make | |
make install | |
lipo -create -output `pwd`/x86_64/lib/libIL.1.dylib -arch i386 `pwd`/i386/lib/libIL.dylib -arch x86_64 `pwd`/x86_64/lib/libIL.dylib | |
lipo -create -output `pwd`/x86_64/lib/libILU.1.dylib -arch i386 `pwd`/i386/lib/libILU.dylib -arch x86_64 `pwd`/x86_64/lib/libILU.dylib | |
lipo -create -output `pwd`/x86_64/lib/libILUT.1.dylib -arch i386 `pwd`/i386/lib/libILUT.dylib -arch x86_64 `pwd`/x86_64/lib/libILUT.dylib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# based on libpng-1.5.12 | |
# | |
rm -rf i386 x86_64 | |
make clean | |
export CFLAGS='-arch i386' | |
./configure --prefix=`pwd`/i386 --enable-static --disable-shared | |
make | |
make install | |
make clean | |
export CFLAGS='-arch x86_64' | |
./configure --prefix=`pwd`/x86_64 --enable-static --disable-shared | |
make | |
make install | |
lipo -create -output `pwd`/x86_64/lib/libjpeg.a -arch i386 `pwd`/i386/lib/libjpeg.a -arch x86_64 `pwd`/x86_64/lib/libjpeg.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# based on jpeg-8d | |
# | |
rm -rf i386 x86_64 | |
make clean | |
export CFLAGS='-arch i386' | |
./configure --prefix=`pwd`/i386 --enable-static --disable-shared | |
make | |
make install | |
make clean | |
export CFLAGS='-arch x86_64' | |
./configure --prefix=`pwd`/x86_64 --enable-static --disable-shared | |
make | |
make install | |
lipo -create -output `pwd`/x86_64/lib/libpng.a -arch i386 `pwd`/i386/lib/libpng.a -arch x86_64 `pwd`/x86_64/lib/libpng.a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment