mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
bep file for gnash
This commit is contained in:
@@ -24,42 +24,44 @@ DEPEND="media-video/ffmpeg >= 0.5
|
||||
|
||||
|
||||
BUILD {
|
||||
if test ! -e gnash; then \
|
||||
bzr branch http://bzr.savannah.gnu.org/r/gnash/trunk/ gnash; \
|
||||
if test ! -e gnash; then
|
||||
bzr branch http://bzr.savannah.gnu.org/r/gnash/trunk/ gnash || true;
|
||||
fi
|
||||
|
||||
pushd gnash
|
||||
setgcc gcc4
|
||||
if test ! -e configure; then \
|
||||
./autogen.sh ; \
|
||||
rm config.status || true ;\
|
||||
if test ! -e configure; then
|
||||
./autogen.sh ;
|
||||
rm config.status || true ;
|
||||
fi
|
||||
if test ! -e config.status; then \
|
||||
./configure --prefix=/boot/apps/Gnash --exec-prefix=/boot/apps/Gnash --bindir=/boot/apps/Gnash --sysconfdir=/boot/preferences/Gnash --libdir=/boot/common/lib --with-renderer=agg --enable-fps-debug=yes --enable-plugins --enable-npapi --with-npapi-plugindir=/boot/apps/Gnash ; \
|
||||
if test ! -e config.status; then
|
||||
./configure --prefix=/boot/apps/Gnash --exec-prefix=/boot/apps/Gnash --bindir=/boot/apps/Gnash --sysconfdir=/boot/preferences/Gnash --libdir=/boot/common/lib --enable-renderer=agg --enable-fps-debug=yes --enable-plugins --enable-npapi --with-npapi-plugindir=/boot/apps/Gnash CXXFLAGS='-Wno-multichar' --enable-scriptable;
|
||||
fi
|
||||
make "CXXFLAGS=-I/boot/common/include/boost-1_38/"
|
||||
|
||||
pushd plugin ; \
|
||||
mkdir -pv .libs ; \
|
||||
MIMELOCATION=`pwd` ; \
|
||||
MIMELOCATION=`dirname "$MIMELOCATION"` ; \
|
||||
MIMELOCATION=`dirname "$MIMELOCATION"` ; \
|
||||
MIMELOCATION=`dirname "$MIMELOCATION"` ; \
|
||||
MIMELOCATION="$MIMELOCATION/download/mime.zip" ; \
|
||||
unzip -o "$MIMELOCATION" ; \
|
||||
for GCC_VERSION in gcc2 gcc4 ; do \
|
||||
( echo "compiling libgnashplugin.$GCC_VERSION.so" &&
|
||||
setgcc $GCC_VERSION && \
|
||||
pushd mozilla-sdk && \
|
||||
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_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); \
|
||||
done ; \
|
||||
pushd plugin/npapi ;
|
||||
mkdir -pv .libs ;
|
||||
MIMELOCATION=`pwd` ;
|
||||
MIMELOCATION=`dirname "$MIMELOCATION"` ;
|
||||
MIMELOCATION=`dirname "$MIMELOCATION"` ;
|
||||
MIMELOCATION=`dirname "$MIMELOCATION"` ;
|
||||
MIMELOCATION=`dirname "$MIMELOCATION"` ;
|
||||
MIMELOCATION="$MIMELOCATION/download/mime.zip" ;
|
||||
unzip -o "$MIMELOCATION" ;
|
||||
for GCC_VERSION in gcc2 gcc4 ; do
|
||||
( echo "compiling libgnashplugin.$GCC_VERSION.so" &&
|
||||
setgcc $GCC_VERSION
|
||||
PLUGIN_SRCS="mozilla-sdk/np_entry mozilla-sdk/npp_gate mozilla-sdk/npn_gate plugin callbacks external pluginScriptObject"
|
||||
for src in $PLUGIN_SRCS; do
|
||||
echo "$src".cpp
|
||||
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 -Wno-multichar -c "$src".cpp -o "$src".o ;
|
||||
done ;
|
||||
PLUGIN_SRCS="${PLUGIN_SRCS} "
|
||||
g++ -shared ${PLUGIN_SRCS// /.o } -lbe -lnetwork -o .libs/libgnashplugin.$GCC_VERSION.so &&
|
||||
copyattr x .libs/libgnashplugin.$GCC_VERSION.so
|
||||
) || (setgcc gcc4; exit 1);
|
||||
done ;
|
||||
rm x ;
|
||||
setgcc gcc4
|
||||
popd
|
||||
|
||||
@@ -68,17 +70,17 @@ BUILD {
|
||||
INSTALL {
|
||||
cd gnash
|
||||
setgcc gcc4
|
||||
make install
|
||||
make install "CXXFLAGS=-I/boot/common/include/boost-1_38/"
|
||||
|
||||
true DISTRODIR=`pwd`/../../distro
|
||||
ROOTDIR=/boot/develop/haikuports/media-video/gnash
|
||||
DISTRODIR=/boot/develop/haikuports/media-video/gnash/distro
|
||||
if test ! -e "$DISTRODIR"; then \
|
||||
exit 1; \
|
||||
if test ! -e "$DISTRODIR"; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
install plugin/.libs/libgnashplugin.gcc2.so "$DISTRODIR/boot/apps/Gnash"
|
||||
install plugin/.libs/libgnashplugin.gcc4.so "$DISTRODIR/boot/apps/Gnash"
|
||||
install plugin/npapi/.libs/libgnashplugin.gcc2.so "$DISTRODIR/boot/apps/Gnash"
|
||||
install plugin/npapi/.libs/libgnashplugin.gcc4.so "$DISTRODIR/boot/apps/Gnash"
|
||||
|
||||
pushd "$DISTRODIR"
|
||||
|
||||
@@ -96,8 +98,8 @@ INSTALL {
|
||||
mkdir -pv boot/common/bin/
|
||||
ln -sf /boot/apps/Gnash/haiku-gnash boot/common/bin/haiku-gnash
|
||||
ln -sf /boot/apps/Gnash/haiku-gnash boot/common/bin/gnash
|
||||
for i in boot/common/lib/gnash/*; do \
|
||||
strip --strip-unneeded "$i" || true; \
|
||||
for i in boot/common/lib/gnash/*; do
|
||||
strip --strip-unneeded "$i" || true;
|
||||
done
|
||||
strip --strip-debug boot/apps/Gnash/haiku-gnash || true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user