wok-4.x rev 4526
mplayerplug-in: compile_rules hack
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 29 19:07:35 2009 +0100 (2009-11-29) |
parents | 28421eb90c02 |
children | 2ea8600e4329 |
files | mplayerplug-in/receipt mplayerplug-in/stuff/slitaz-hack.h |
line diff
1.1 --- a/mplayerplug-in/receipt Sun Nov 29 17:44:50 2009 +0100 1.2 +++ b/mplayerplug-in/receipt Sun Nov 29 19:07:35 2009 +0100 1.3 @@ -20,15 +20,19 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 - while read file; do 1.8 - [ -f done.$file ] && continue 1.9 - echo "Apply $file..." 1.10 - patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1 1.11 - touch done.$file 1.12 - done <<EOT 1.13 + cp ../stuff/slitaz-hack.h include 1.14 + grep -q slitaz-hack include/npplat.h || sed -i \ 1.15 + 's/ne _NPPLAT_H_/ne _NPPLAT_H_\n#include "slitaz-hack.h"/' \ 1.16 + include/npplat.h 1.17 + while read file; do 1.18 + [ -f done.$file ] && continue 1.19 + echo "Apply $file..." 1.20 + patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1 1.21 + touch done.$file 1.22 + done <<EOT 1.23 glibc210.u 1.24 EOT 1.25 - make distclean 1.26 + make distclean 1.27 touch install.sh 1.28 ./configure --prefix=/usr --sysconfdir=/etc \ 1.29 --enable-gtk2 \ 1.30 @@ -37,16 +41,16 @@ 1.31 --enable-rm \ 1.32 --enable-dvx \ 1.33 MOZILLA_HOME="/usr/lib/firefox-$FIREFOX_VER" \ 1.34 - GECKO_IDLDIR="/usr/share/idl/firefox-$FIREFOX_VER/stable" && 1.35 - make 1.36 + GECKO_IDLDIR="/usr/share/idl/firefox-$FIREFOX_VER/stable" && 1.37 + make && 1.38 make DESTDIR=$PWD/_pkg install 1.39 } 1.40 1.41 genpkg_rules() 1.42 { 1.43 mkdir -p $fs/usr/lib 1.44 - cp -a $_pkg/etc $fs 1.45 - cp -a $_pkg/usr/lib/mozilla $fs/usr/lib 1.46 + cp -a $_pkg/etc $fs 1.47 + cp -a $_pkg/usr/lib/mozilla $fs/usr/lib 1.48 # change the default video output to xv,x11 1.49 sed -i "s/#vo=xv,x11/vo=xv,x11/" $fs/etc/$PACKAGE.conf 1.50
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/mplayerplug-in/stuff/slitaz-hack.h Sun Nov 29 19:07:35 2009 +0100 2.3 @@ -0,0 +1,28 @@ 2.4 +#define int16 int16_t 2.5 +#define uint16 uint16_t 2.6 +#define int32 int32_t 2.7 +#define uint32 uint32_t 2.8 + 2.9 +#define CallNPN_GetURLNotifyProc(FUNC, ARG1, ARG2, ARG3, ARG4) (*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4)) 2.10 +#define CallNPN_GetURLProc(FUNC, ARG1, ARG2, ARG3) (*(FUNC))((ARG1), (ARG2), (ARG3)) 2.11 +#define CallNPN_PostURLNotifyProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7) (*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5), (ARG6), (ARG7)) 2.12 +#define CallNPN_PostURLProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6) (*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5), (ARG6)) 2.13 +#define CallNPN_RequestReadProc(FUNC, stream, range) (*(FUNC))((stream), (range)) 2.14 +#define CallNPN_NewStreamProc(FUNC, npp, type, window, stream) (*(FUNC))((npp), (type), (window), (stream)) 2.15 +#define CallNPN_WriteProc(FUNC, npp, stream, len, buffer) (*(FUNC))((npp), (stream), (len), (buffer)) 2.16 +#define CallNPN_DestroyStreamProc(FUNC, npp, stream, reason) (*(FUNC))((npp), (stream), (reason)) 2.17 +#define CallNPN_StatusProc(FUNC, npp, msg) (*(FUNC))((npp), (msg)) 2.18 +#define CallNPN_UserAgentProc(FUNC, ARG1) (*(FUNC))((ARG1)) 2.19 +#define CallNPN_MemAllocProc(FUNC, ARG1) (*(FUNC))((ARG1)) 2.20 +#define CallNPN_MemFreeProc(FUNC, ARG1) (*(FUNC))((ARG1)) 2.21 +#define CallNPN_MemFlushProc(FUNC, ARG1) (*(FUNC))((ARG1)) 2.22 +#define CallNPN_ReloadPluginsProc(FUNC, ARG1) (*(FUNC))((ARG1)) 2.23 +#define CallNPN_GetValueProc(FUNC, ARG1, ARG2, ARG3) (*(FUNC))((ARG1), (ARG2), (ARG3)) 2.24 +#define CallNPN_SetValueProc(FUNC, ARG1, ARG2, ARG3) (*(FUNC))((ARG1), (ARG2), (ARG3)) 2.25 +#define CallNPN_InvalidateRectProc(FUNC, ARG1, ARG2) (*(FUNC))((ARG1), (ARG2)) 2.26 +#define CallNPN_InvalidateRegionProc(FUNC, ARG1, ARG2) (*(FUNC))((ARG1), (ARG2)) 2.27 +#define CallNPN_ForceRedrawProc(FUNC, ARG1) (*(FUNC))((ARG1)) 2.28 + 2.29 +#include <stdlib.h> 2.30 +#include <assert.h> 2.31 +