gnash: XP_HAIKU macro under HAIKU

This commit is contained in:
Adrian Panasiuk
2010-03-30 16:57:08 +00:00
parent 597260a2b4
commit e8b1ff3a9b

View File

@@ -17,6 +17,12 @@ DEPEND="gcc4,net-misc/curl,dev-libs/openssl (other deps will be cared for later
# http://students.mimuw.edu.pl/~ap262965/haiku-gnash/libboost_date_time-1.38.0-gcc4-2009-11-14.zip
# SDL gui requires http://students.mimuw.edu.pl/~ap262965/haiku-gnash/SDL-1.2.13-r1a1-x86-gcc4-2009-11-13.zip
# iconv_header http://students.mimuw.edu.pl/~ap262965/haiku-gnash/iconv-091128.h
#
# notes:
# the /boot/preferences/Gnash directory is not inserted into the archive,
# but it might be used to supplement /boot/home/config/settings/Gnash
#
BUILD {
function ask_install() { \
@@ -87,18 +93,18 @@ BUILD {
fi
make "CXXFLAGS=-I/boot/common/include/boost-1_38/"
pushd plugin ; \
mkdir -pv .libs ; \
unzip -o ../mime.zip ; \
unzip -o ../../../mime.zip ; \
for GCC_VERSION in gcc2 gcc4 ; do \
( setgcc $GCC_VERSION && \
( echo "compiling libgnashplugin.$GCC_VERSION.so" &&
setgcc $GCC_VERSION && \
pushd mozilla-sdk && \
g++ -DHAVE_CONFIG_H -I. -I../.. -DPLUGIN_TRACE -DXP_BEOS -I./include -I../../libbase -I/boot/common/include -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -c np_entry.cpp -o ../np_entry.o && \
g++ -DHAVE_CONFIG_H -I. -I../.. -DPLUGIN_TRACE -DXP_BEOS -I./include -I../../libbase -I/boot/common/include -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -c npp_gate.cpp -o ../npp_gate.o && \
g++ -DHAVE_CONFIG_H -I. -I../.. -DPLUGIN_TRACE -DXP_BEOS -I./include -I../../libbase -I/boot/common/include -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -c npn_gate.cpp -o ../npn_gate.o && \
g++ -DHAVE_CONFIG_H -I. -I../.. -DPLUGIN_TRACE -DXP_HAIKU -I./include -I../../libbase -I/boot/common/include -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -c np_entry.cpp -o ../np_entry.o && \
g++ -DHAVE_CONFIG_H -I. -I../.. -DPLUGIN_TRACE -DXP_HAIKU -I./include -I../../libbase -I/boot/common/include -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -c npp_gate.cpp -o ../npp_gate.o && \
g++ -DHAVE_CONFIG_H -I. -I../.. -DPLUGIN_TRACE -DXP_HAIKU -I./include -I../../libbase -I/boot/common/include -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -c npn_gate.cpp -o ../npn_gate.o && \
popd && \
g++ -DHAVE_CONFIG_H -I. -I.. -DPLUGIN_TRACE -DXP_BEOS -DGNASHBINDIR=\"/boot/common/bin\" -DSYSCONFDIR=\"/boot/preferences/Gnash\" -I../libcore/parser -I../libbase -I../backend -I./mozilla-sdk -I./mozilla-sdk/include -I/boot/common/include -I/boot/common/include/boost-1_38/ -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -c plugin.cpp -o plugin.o && \
g++ -DHAVE_CONFIG_H -I. -I.. -DPLUGIN_TRACE -DXP_HAIKU -DGNASHBINDIR=\"/boot/common/bin\" -DSYSCONFDIR=\"/boot/preferences/Gnash\" -I../libcore/parser -I../libbase -I../backend -I./mozilla-sdk -I./mozilla-sdk/include -I/boot/common/include -I/boot/common/include/boost-1_38/ -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -c plugin.cpp -o plugin.o && \
g++ -shared np_entry.o npp_gate.o npn_gate.o plugin.o -lbe -o .libs/libgnashplugin.$GCC_VERSION.so && \
copyattr x .libs/libgnashplugin.$GCC_VERSION.so \
) || (setgcc gcc4; exit 1); \