]> git.pld-linux.org Git - packages/gpac.git/commitdiff
- up to 0.4.5
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 Mar 2011 13:40:46 +0000 (13:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- updated install patch
- removed obsolete amd64,libdir patches
- added libpng,pic,xulrunner patches

Changed files:
    gpac-amd64.patch -> 1.2
    gpac-install.patch -> 1.6
    gpac-libdir.patch -> 1.3
    gpac-libpng.patch -> 1.1
    gpac-pic.patch -> 1.1
    gpac-xulrunner.patch -> 1.1
    gpac.spec -> 1.29

gpac-amd64.patch [deleted file]
gpac-install.patch
gpac-libdir.patch [deleted file]
gpac-libpng.patch [new file with mode: 0644]
gpac-pic.patch [new file with mode: 0644]
gpac-xulrunner.patch [new file with mode: 0644]
gpac.spec

diff --git a/gpac-amd64.patch b/gpac-amd64.patch
deleted file mode 100644 (file)
index 9c8c518..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-diff -ur gpac.orig/extra_lib/include/gecko-sdk/nspr/include/md/_linux.h gpac/extra_lib/include/gecko-sdk/nspr/include/md/_linux.h
---- gpac.orig/extra_lib/include/gecko-sdk/nspr/include/md/_linux.h     2005-07-18 17:51:49.000000000 +0200
-+++ gpac/extra_lib/include/gecko-sdk/nspr/include/md/_linux.h  2006-06-12 19:10:17.766003500 +0200
-@@ -49,6 +49,8 @@
- #define _PR_SI_ARCHITECTURE "alpha"
- #elif defined(__ia64__)
- #define _PR_SI_ARCHITECTURE "ia64"
-+#elif defined(__x86_64__)
-+#define _PR_SI_ARCHITECTURE "x86-64"
- #elif defined(__mc68000__)
- #define _PR_SI_ARCHITECTURE "m68k"
- #elif defined(__sparc__)
-@@ -109,6 +111,19 @@
- #define _MD_ATOMIC_SET                _PR_ia64_AtomicSet
- #endif
-+#if defined(__x86_64__)
-+#define _PR_HAVE_ATOMIC_OPS
-+#define _MD_INIT_ATOMIC()
-+extern PRInt32 _PR_x86_64_AtomicIncrement(PRInt32 *val);
-+#define _MD_ATOMIC_INCREMENT          _PR_x86_64_AtomicIncrement
-+extern PRInt32 _PR_x86_64_AtomicDecrement(PRInt32 *val);
-+#define _MD_ATOMIC_DECREMENT          _PR_x86_64_AtomicDecrement
-+extern PRInt32 _PR_x86_64_AtomicAdd(PRInt32 *ptr, PRInt32 val);
-+#define _MD_ATOMIC_ADD                _PR_x86_64_AtomicAdd
-+extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval);
-+#define _MD_ATOMIC_SET                _PR_x86_64_AtomicSet
-+#endif
-+
- #define USE_SETJMP
- #if defined(__GLIBC__) && __GLIBC__ >= 2
- #define _PR_POLL_AVAILABLE
-diff -ur gpac.orig/extra_lib/include/gecko-sdk/nspr/include/prcpucfg.h gpac/extra_lib/include/gecko-sdk/nspr/include/prcpucfg.h
---- gpac.orig/extra_lib/include/gecko-sdk/nspr/include/prcpucfg.h      2005-07-18 17:51:52.000000000 +0200
-+++ gpac/extra_lib/include/gecko-sdk/nspr/include/prcpucfg.h   2006-06-12 19:09:24.586680000 +0200
-@@ -347,6 +347,52 @@
- #define PR_BYTES_PER_WORD_LOG2  3
- #define PR_BYTES_PER_DWORD_LOG2 3
-+#elif defined(__x86_64__)
-+
-+#define IS_LITTLE_ENDIAN 1
-+#undef  IS_BIG_ENDIAN
-+#define IS_64
-+
-+#define PR_BYTES_PER_BYTE   1
-+#define PR_BYTES_PER_SHORT  2
-+#define PR_BYTES_PER_INT    4
-+#define PR_BYTES_PER_INT64  8
-+#define PR_BYTES_PER_LONG   8
-+#define PR_BYTES_PER_FLOAT  4
-+#define PR_BYTES_PER_DOUBLE 8
-+#define PR_BYTES_PER_WORD   8
-+#define PR_BYTES_PER_DWORD  8
-+
-+#define PR_BITS_PER_BYTE    8
-+#define PR_BITS_PER_SHORT   16
-+#define PR_BITS_PER_INT     32
-+#define PR_BITS_PER_INT64   64
-+#define PR_BITS_PER_LONG    64
-+#define PR_BITS_PER_FLOAT   32
-+#define PR_BITS_PER_DOUBLE  64
-+#define PR_BITS_PER_WORD    64
-+
-+#define PR_BITS_PER_BYTE_LOG2   3
-+#define PR_BITS_PER_SHORT_LOG2  4
-+#define PR_BITS_PER_INT_LOG2    5
-+#define PR_BITS_PER_INT64_LOG2  6
-+#define PR_BITS_PER_LONG_LOG2   6
-+#define PR_BITS_PER_FLOAT_LOG2  5
-+#define PR_BITS_PER_DOUBLE_LOG2 6
-+#define PR_BITS_PER_WORD_LOG2   6
-+
-+#define PR_ALIGN_OF_SHORT   2
-+#define PR_ALIGN_OF_INT     4
-+#define PR_ALIGN_OF_LONG    8
-+#define PR_ALIGN_OF_INT64   8
-+#define PR_ALIGN_OF_FLOAT   4
-+#define PR_ALIGN_OF_DOUBLE  8
-+#define PR_ALIGN_OF_POINTER 8
-+#define PR_ALIGN_OF_WORD    8
-+
-+#define PR_BYTES_PER_WORD_LOG2  3
-+#define PR_BYTES_PER_DWORD_LOG2 3
-+
- #elif defined(__mc68000__)
- #undef  IS_LITTLE_ENDIAN
index 317e4a089b71bceb8bd43b07ef59358047c51e53..5b4f526e48869c985a69d021d767e1a6e11c20c8 100644 (file)
@@ -1,49 +1,38 @@
---- gpac/Makefile.orig 2006-03-17 22:16:39.000000000 +0100
-+++ gpac/Makefile      2006-03-17 22:17:29.000000000 +0100
-@@ -71,8 +71,8 @@
+--- gpac/Makefile.orig 2008-10-23 17:40:38.000000000 +0200
++++ gpac/Makefile      2011-02-05 07:18:41.996686361 +0100
+@@ -59,9 +59,6 @@
  ifeq ($(CONFIG_WIN32),yes)
-       install -s -m 755 bin/gcc/libgpac.dll $(prefix)/lib
+       install $(INSTFLAGS) -m 755 bin/gcc/libgpac.dll $(prefix)/$(libdir)
  else
--      install -s -m 755 bin/gcc/libgpac.$(DYN_LIB_SUFFIX) $(prefix)/lib/libgpac-$(VERSION).$(DYN_LIB_SUFFIX)
--      ln -sf libgpac-$(VERSION).$(DYN_LIB_SUFFIX) $(prefix)/lib/libgpac.$(DYN_LIB_SUFFIX)
-+      install -m 755 bin/gcc/libgpac.$(DYN_LIB_SUFFIX) $(DESTDIR)$(libdir)/libgpac-$(VERSION).$(DYN_LIB_SUFFIX)
-+      ln -sf libgpac-$(VERSION).$(DYN_LIB_SUFFIX) $(DESTDIR)$(libdir)/libgpac.$(DYN_LIB_SUFFIX)
- #not sure wether darwin uses ldconfig or not...
+-ifeq ($(DEBUGBUILD),no)
+-      $(STRIP) bin/gcc/libgpac.$(DYN_LIB_SUFFIX)
+-endif
  ifeq ($(CONFIG_DARWIN),yes)
+       install -m 755 bin/gcc/libgpac.$(DYN_LIB_SUFFIX) $(DESTDIR)$(prefix)/$(libdir)/libgpac-$(VERSION).$(DYN_LIB_SUFFIX)
+       ln -sf libgpac-$(VERSION).$(DYN_LIB_SUFFIX) $(DESTDIR)$(prefix)/$(libdir)/libgpac.$(DYN_LIB_SUFFIX)
+--- gpac/applications/osmozilla/Makefile.orig  2008-11-24 09:54:12.000000000 +0100
++++ gpac/applications/osmozilla/Makefile       2011-02-05 07:20:46.968690551 +0100
+@@ -6,10 +6,6 @@
+ USER_NAME=root
  else
---- gpac/Makefile.orig 2006-03-17 22:27:49.000000000 +0100
-+++ gpac/Makefile      2006-03-17 22:27:58.000000000 +0100
-@@ -64,7 +64,7 @@
-       install -c -s -m 755 bin/gcc/MP4Box "$(prefix)/bin"
-       install -c -s -m 755 bin/gcc/MP42Avi "$(prefix)/bin"
-       $(MAKE) -C applications install
--      install -d "$(moddir)"
-+      install -d "$(libdir)/gpac"
-       install -c bin/gcc/*.$(DYN_LIB_SUFFIX) "$(moddir)"
-       rm -f $(moddir)/libgpac.$(DYN_LIB_SUFFIX)
-       rm -f $(moddir)/nposmozilla.$(DYN_LIB_SUFFIX)
---- gpac/applications/osmozilla/Makefile.orig  2006-03-17 22:47:48.000000000 +0100
-+++ gpac/applications/osmozilla/Makefile       2006-03-17 22:54:03.000000000 +0100
-@@ -5,10 +5,6 @@
- GECKO_PATH=$(SRC_PATH)/extra_lib/include/gecko-sdk
  USER_NAME=$(shell whoami)
 -ifeq ($(USER_NAME), root)
 -else
 -MOZILLA_DIR=local
 -endif
+ endif
  
- CFLAGS= $(OPTFLAGS) -Wall -I$(SRC_PATH)/include \
-   -I$(GECKO_PATH) \
-@@ -71,18 +67,8 @@
+ CFLAGS=$(CPPFLAGS) $(XUL_CFLAGS) -I$(SRC_PATH)/include
+@@ -75,19 +71,8 @@
  endif
  
- install: $(LIB)
+ install: 
 -ifeq ($(MOZILLA_DIR), local)
 -ifeq ($(USER_NAME), root)
 -      @echo "*** Root cannot install local mozilla plugins! ***"
 -      @echo "*** Exit root mode and reinstall mozilla plugin! ***"
 -else
+-      $(MAKE) $(LIB)
 -      install -D -m 755 ../../bin/gcc/$(LIB) "$(HOME)/.mozilla/plugins/$(LIB)"
 -      install -D -m 755 ../../bin/gcc/nposmozilla.xpt "$(HOME)/.mozilla/components/nposmozilla.xpt"
 -endif
 +      install -D -m 755 ../../bin/gcc/$(LIB) "$(MOZILLA_DIR)/$(LIB)"
 +      install -D -m 755 ../../bin/gcc/nposmozilla.xpt "$(MOZILLA_DIR)/nposmozilla.xpt"
  
- dep: depend
---- gpac/Makefile.orig 2006-03-17 22:55:15.000000000 +0100
-+++ gpac/Makefile      2006-03-17 22:56:22.000000000 +0100
-@@ -65,9 +65,9 @@
-       install -c -s -m 755 bin/gcc/MP42Avi "$(prefix)/bin"
-       $(MAKE) -C applications install
-       install -d "$(libdir)/gpac"
--      install -c bin/gcc/*.$(DYN_LIB_SUFFIX) "$(moddir)"
--      rm -f $(moddir)/libgpac.$(DYN_LIB_SUFFIX)
--      rm -f $(moddir)/nposmozilla.$(DYN_LIB_SUFFIX)
-+      install -c bin/gcc/*.$(DYN_LIB_SUFFIX) "$(libdir)/gpac"
-+      rm -f $(libdir)/libgpac.$(DYN_LIB_SUFFIX)
-+      rm -f $(libdir)/nposmozilla.$(DYN_LIB_SUFFIX)
- ifeq ($(CONFIG_WIN32),yes)
-       install -s -m 755 bin/gcc/libgpac.dll $(prefix)/lib
- else
+ uninstall:
+ ifeq ($(MOZILLA_DIR), local)
diff --git a/gpac-libdir.patch b/gpac-libdir.patch
deleted file mode 100644 (file)
index aaf8fe0..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur gpac.orig/modules/x11_out/Makefile gpac/modules/x11_out/Makefile
---- gpac.orig/modules/x11_out/Makefile 2005-07-23 19:59:28.000000000 +0200
-+++ gpac/modules/x11_out/Makefile      2006-06-12 19:46:27.925630000 +0200
-@@ -23,7 +23,7 @@
- $(LIB): $(OBJS)
--      $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJS) -L/usr/X11R6/lib -lX11 -lXext -lGL -L../../bin/gcc -lgpac
-+      $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJS) -L$(XLIBDIR) -lX11 -lXext -lGL -L../../bin/gcc -lgpac
- %.o: %.c
-       $(CC) $(CFLAGS) -c -o $@ $< 
diff --git a/gpac-libpng.patch b/gpac-libpng.patch
new file mode 100644 (file)
index 0000000..1a6236e
--- /dev/null
@@ -0,0 +1,11 @@
+--- gpac/src/media_tools/img.c.orig    2008-12-01 18:39:36.000000000 +0100
++++ gpac/src/media_tools/img.c 2011-02-05 08:34:05.764692227 +0100
+@@ -551,7 +551,7 @@
+       /* Allocate/initialize the image information data.  REQUIRED */
+       info_ptr = png_create_info_struct(png_ptr);
+       if (info_ptr == NULL) {
+-              png_destroy_write_struct(&png_ptr,  png_infopp_NULL);
++              png_destroy_write_struct(&png_ptr, NULL);
+               return GF_IO_ERR;
+       }
+       
diff --git a/gpac-pic.patch b/gpac-pic.patch
new file mode 100644 (file)
index 0000000..1e1e8a3
--- /dev/null
@@ -0,0 +1,42 @@
+--- gpac/src/Makefile.orig     2008-12-02 15:01:08.000000000 +0100
++++ gpac/src/Makefile  2011-02-09 16:26:58.340693904 +0100
+@@ -174,6 +174,10 @@
+ endif
+ ifeq ($(WANT_PIC),yes)
++LIBGPAC_MCRYPT_PIC=$(LIBGPAC_MCRYPT:.o=.opic)
++LIBGPAC_SCENE_PIC=$(LIBGPAC_SCENE:.o=.opic)
++LIBGPAC_MEDIATOOLS_PIC=$(LIBGPAC_MEDIATOOLS:.o=.opic)
++LIBGPAC_COMPOSITOR_PIC=$(LIBGPAC_COMPOSITOR:.o=.opic)
+ OBJSPIC=$(OBJS:.o=.opic)
+ else
+ OBJSPIC=$(OBJS)
+@@ -192,23 +196,19 @@
+ lib: $(LIB)
+ #there's a bunch of warnings in there, get rid of them
+-mcrypt: CFLAGS= $(OPTFLAGS) -w -I$(SRC_PATH)/include
+-mcrypt: $(LIBGPAC_MCRYPT)
++$(LIBGPAC_MCRYPT) $(LIBGPAC_MCRYPT_PIC): CFLAGS= $(OPTFLAGS) -w -I$(SRC_PATH)/include
+-scenegraph: CFLAGS += $(SCENEGRAPH_CFLAGS)
+-scenegraph: $(LIBGPAC_SCENE)
++$(LIBGPAC_SCENE) $(LIBGPAC_SCENE_PIC): CFLAGS += $(SCENEGRAPH_CFLAGS)
+-mediatools: CFLAGS += $(MEDIATOOLS_CFLAGS)
+-mediatools: $(LIBGPAC_MEDIATOOLS)
++$(LIBGPAC_MEDIATOOLS) $(LIBGPAC_MEDIATOOLS_PIC): CFLAGS += $(MEDIATOOLS_CFLAGS)
+-compositor: CFLAGS+=$(COMPOSITOR_CFLAGS)
+-compositor: $(LIBGPAC_COMPOSITOR)
++$(LIBGPAC_COMPOSITOR) $(LIBGPAC_COMPOSITOR_PIC): CFLAGS+=$(COMPOSITOR_CFLAGS)
+ %.o: %.c
+       $(CC) $(CFLAGS) -c -o $@ $< 
+-$(LIB): $(LIBGPAC_UTILS) $(LIBGPAC_IETF) $(LIBGPAC_BIFS) $(LIBGPAC_ODF) $(LIBGPAC_LASER) $(LIBGPAC_ISOM) $(LIBGPAC_SCENEMANAGER) $(LIBGPAC_TERMINAL) compositor scenegraph mediatools mcrypt $(OBJSPIC)
++$(LIB): $(OBJS) $(OBJSPIC)
+       ar cr ../bin/gcc/libgpac_static.a $(OBJS)
+       ranlib ../bin/gcc/libgpac_static.a
+       $(CC) $(SHFLAGS) $(LD_SONAME) $(LDFLAGS) -o ../bin/gcc/$@ $(OBJSPIC) $(EXTRALIBS)
diff --git a/gpac-xulrunner.patch b/gpac-xulrunner.patch
new file mode 100644 (file)
index 0000000..235473f
--- /dev/null
@@ -0,0 +1,224 @@
+--- gpac/applications/osmozilla/npplat.h.orig  2005-07-13 16:34:30.000000000 +0200
++++ gpac/applications/osmozilla/npplat.h       2011-03-20 09:34:57.624712082 +0100
+@@ -49,7 +49,7 @@
+ #endif
+ #include "npapi.h"
+-#include "npupp.h"
++#include "npfunctions.h"
+ /**************************************************/
+ /*                                                */
+--- gpac/applications/osmozilla/osmozilla.h.orig       2008-10-06 17:17:57.000000000 +0200
++++ gpac/applications/osmozilla/osmozilla.h    2011-03-20 10:04:41.876713758 +0100
+@@ -39,6 +39,7 @@
+ #define __PLUGIN_H__
+ #include <nsIClassInfo.h>
++#include <nsIProgrammingLanguage.h>
+ #include "npplat.h"
+ #include "nsIOsmozilla.h"
+--- gpac/applications/osmozilla/osmozilla.cpp.orig     2008-10-06 17:17:57.000000000 +0200
++++ gpac/applications/osmozilla/osmozilla.cpp  2011-03-20 10:12:46.068709568 +0100
+@@ -856,19 +856,19 @@
+               return NS_ERROR_NULL_POINTER;
+     if (aIID.Equals(kIZillaPluginIID)) {
+-              *aInstancePtr = NS_STATIC_CAST(nsIOsmozilla *, this);
++              *aInstancePtr = static_cast<nsIOsmozilla *>(this);
+               AddRef();
+               return NS_OK;
+     }
+     
+       if (aIID.Equals(kIClassInfoIID)) {
+-              *aInstancePtr = NS_STATIC_CAST(nsIClassInfo *, this);
++              *aInstancePtr = static_cast<nsIClassInfo *>(this);
+               AddRef();
+               return NS_OK;
+     }
+     if (aIID.Equals(kISupportsIID)) {
+-              *aInstancePtr = NS_STATIC_CAST(nsISupports *, (NS_STATIC_CAST (nsIOsmozilla *, this)));
++              *aInstancePtr = static_cast<nsISupports *>((static_cast<nsIOsmozilla *>(this)));
+               AddRef();
+               return NS_OK;
+     }
+--- gpac/applications/osmozilla/npn_gate.cpp.orig      2005-07-13 16:34:29.000000000 +0200
++++ gpac/applications/osmozilla/npn_gate.cpp   2011-03-20 10:24:21.496702863 +0100
+@@ -58,7 +58,7 @@
+   NPError rv = NPERR_NO_ERROR;
+   if( navMinorVers >= NPVERS_HAS_NOTIFICATION )
+-              rv = CallNPN_GetURLNotifyProc(NPNFuncs.geturlnotify, instance, url, target, notifyData);
++              rv = (*NPNFuncs.geturlnotify)(instance, url, target, notifyData);
+       else
+               rv = NPERR_INCOMPATIBLE_VERSION_ERROR;
+@@ -67,32 +67,32 @@
+ NPError NPN_GetURL(NPP instance, const char *url, const char *target)
+ {
+-  NPError rv = CallNPN_GetURLProc(NPNFuncs.geturl, instance, url, target);
++  NPError rv = (*NPNFuncs.geturl)(instance, url, target);
+   return rv;
+ }
+-NPError NPN_PostURLNotify(NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file, void* notifyData)
++NPError NPN_PostURLNotify(NPP instance, const char* url, const char* window, uint32_t len, const char* buf, NPBool file, void* notifyData)
+ {
+       int navMinorVers = NPNFuncs.version & 0xFF;
+   NPError rv = NPERR_NO_ERROR;
+       if( navMinorVers >= NPVERS_HAS_NOTIFICATION )
+-              rv = CallNPN_PostURLNotifyProc(NPNFuncs.posturlnotify, instance, url, window, len, buf, file, notifyData);
++              rv = (*NPNFuncs.posturlnotify)(instance, url, window, len, buf, file, notifyData);
+       else
+               rv = NPERR_INCOMPATIBLE_VERSION_ERROR;
+   return rv;
+ }
+-NPError NPN_PostURL(NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file)
++NPError NPN_PostURL(NPP instance, const char* url, const char* window, uint32_t len, const char* buf, NPBool file)
+ {
+-  NPError rv = CallNPN_PostURLProc(NPNFuncs.posturl, instance, url, window, len, buf, file);
++  NPError rv = (*NPNFuncs.posturl)(instance, url, window, len, buf, file);
+   return rv;
+ } 
+ NPError NPN_RequestRead(NPStream* stream, NPByteRange* rangeList)
+ {
+-  NPError rv = CallNPN_RequestReadProc(NPNFuncs.requestread, stream, rangeList);
++  NPError rv = (*NPNFuncs.requestread)(stream, rangeList);
+   return rv;
+ }
+@@ -103,20 +103,20 @@
+   NPError rv = NPERR_NO_ERROR;
+       if( navMinorVersion >= NPVERS_HAS_STREAMOUTPUT )
+-              rv = CallNPN_NewStreamProc(NPNFuncs.newstream, instance, type, target, stream);
++              rv = (*NPNFuncs.newstream)(instance, type, target, stream);
+       else
+               rv = NPERR_INCOMPATIBLE_VERSION_ERROR;
+   return rv;
+ }
+-int32 NPN_Write(NPP instance, NPStream *stream, int32 len, void *buffer)
++int32_t NPN_Write(NPP instance, NPStream *stream, int32_t len, void *buffer)
+ {
+       int navMinorVersion = NPNFuncs.version & 0xFF;
+-  int32 rv = 0;
++  int32_t rv = 0;
+   if( navMinorVersion >= NPVERS_HAS_STREAMOUTPUT )
+-              rv = CallNPN_WriteProc(NPNFuncs.write, instance, stream, len, buffer);
++              rv = (*NPNFuncs.write)(instance, stream, len, buffer);
+       else
+               rv = -1;
+@@ -129,7 +129,7 @@
+   NPError rv = NPERR_NO_ERROR;
+   if( navMinorVersion >= NPVERS_HAS_STREAMOUTPUT )
+-              rv = CallNPN_DestroyStreamProc(NPNFuncs.destroystream, instance, stream, reason);
++              rv = (*NPNFuncs.destroystream)(instance, stream, reason);
+       else
+               rv = NPERR_INCOMPATIBLE_VERSION_ERROR;
+@@ -138,78 +138,78 @@
+ void NPN_Status(NPP instance, const char *message)
+ {
+-  CallNPN_StatusProc(NPNFuncs.status, instance, message);
++  (*NPNFuncs.status)(instance, message);
+ }
+ const char* NPN_UserAgent(NPP instance)
+ {
+   const char * rv = NULL;
+-  rv = CallNPN_UserAgentProc(NPNFuncs.uagent, instance);
++  rv = (*NPNFuncs.uagent)(instance);
+   return rv;
+ }
+-void* NPN_MemAlloc(uint32 size)
++void* NPN_MemAlloc(uint32_t size)
+ {
+   void * rv = NULL;
+-  rv = CallNPN_MemAllocProc(NPNFuncs.memalloc, size);
++  rv = (*NPNFuncs.memalloc)(size);
+   return rv;
+ }
+ void NPN_MemFree(void* ptr)
+ {
+-  CallNPN_MemFreeProc(NPNFuncs.memfree, ptr);
++  (*NPNFuncs.memfree)(ptr);
+ }
+-uint32 NPN_MemFlush(uint32 size)
++uint32_t NPN_MemFlush(uint32_t size)
+ {
+-  uint32 rv = CallNPN_MemFlushProc(NPNFuncs.memflush, size);
++  uint32_t rv = (*NPNFuncs.memflush)(size);
+   return rv;
+ }
+ void NPN_ReloadPlugins(NPBool reloadPages)
+ {
+-  CallNPN_ReloadPluginsProc(NPNFuncs.reloadplugins, reloadPages);
++  (*NPNFuncs.reloadplugins)(reloadPages);
+ }
+ #ifdef OJI
+ JRIEnv* NPN_GetJavaEnv(void)
+ {
+   JRIEnv * rv = NULL;
+-      rv = CallNPN_GetJavaEnvProc(NPNFuncs.getJavaEnv);
++      rv = (*NPNFuncs.getJavaEnv)();
+   return rv;
+ }
+ jref NPN_GetJavaPeer(NPP instance)
+ {
+   jref rv;
+-  rv = CallNPN_GetJavaPeerProc(NPNFuncs.getJavaPeer, instance);
++  rv = (*NPNFuncs.getJavaPeer)(instance);
+   return rv;
+ }
+ #endif
+ NPError NPN_GetValue(NPP instance, NPNVariable variable, void *value)
+ {
+-  NPError rv = CallNPN_GetValueProc(NPNFuncs.getvalue, instance, variable, value);
++  NPError rv = (*NPNFuncs.getvalue)(instance, variable, value);
+   return rv;
+ }
+ NPError NPN_SetValue(NPP instance, NPPVariable variable, void *value)
+ {
+-  NPError rv = CallNPN_SetValueProc(NPNFuncs.setvalue, instance, variable, value);
++  NPError rv = (*NPNFuncs.setvalue)(instance, variable, value);
+   return rv;
+ }
+ void NPN_InvalidateRect(NPP instance, NPRect *invalidRect)
+ {
+-  CallNPN_InvalidateRectProc(NPNFuncs.invalidaterect, instance, invalidRect);
++  (*NPNFuncs.invalidaterect)(instance, invalidRect);
+ }
+ void NPN_InvalidateRegion(NPP instance, NPRegion invalidRegion)
+ {
+-  CallNPN_InvalidateRegionProc(NPNFuncs.invalidateregion, instance, invalidRegion);
++  (*NPNFuncs.invalidateregion)(instance, invalidRegion);
+ }
+ void NPN_ForceRedraw(NPP instance)
+ {
+-  CallNPN_ForceRedrawProc(NPNFuncs.forceredraw, instance);
++  (*NPNFuncs.forceredraw)(instance);
+ }
index 415c389b1f0d9eac4cdde596f0123d7b46051fc8..abbb0f31c2e65a88ff663ef8c267fa49816d7602 100644 (file)
--- a/gpac.spec
+++ b/gpac.spec
@@ -1,65 +1,65 @@
 # TODO
-# - soname for libm4systems(?)
-# - use system mozilla includes
-# - ./configure[692]: wx-config: not found
-# - ./configure[693]: wx-config: not found
-# - CC, CFLAGS
-# - Xiph Theora: no
+# - amr-nb/amr-wb/amr-nb-fixed ?
+# - FFMPEG: local
+# - which: no wx-config in ...
 #
 # Conditional build:
-%bcond_with    amr
-%bcond_without faad
-%bcond_without ffmpeg
-%bcond_without freetype
-%bcond_without jpeg
-%bcond_without js
-%bcond_without mad
-%bcond_without png
-%bcond_without xvid
-%bcond_with    wx
+%bcond_with    amr             # AMR-NB support
+%bcond_without faad            # AAC decoding support
+%bcond_without ffmpeg          # ffmpeg support
+%bcond_without freetype        # freetype support
+%bcond_without jpeg            # JPEG support
+%bcond_without js              # JavaScript support
+%bcond_without mad             # MP3 support
+%bcond_without png             # PNG support
+%bcond_without xvid            # xvid support
+%bcond_with    wx              # wxWidgets support
 #
 Summary:       GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1)
 Summary(pl.UTF-8):     GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1)
 Name:          gpac
-Version:       0.4.0
-Release:       4
-License:       LGPL
-Group:         Applications
-Source0:       http://dl.sourceforge.net/gpac/%{name}-%{version}.tar.gz
-# Source0-md5: a8b4b3206cabda946850240f1e7aea93
+Version:       0.4.5
+Release:       0.1
+License:       LGPL v2+
+Group:         Applications/Multimedia
+Source0:       http://downloads.sourceforge.net/gpac/%{name}-%{version}.tar.gz
+# Source0-md5: 755e8c438a48ebdb13525dd491f5b0d1
 Source1:       http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-530.zip
 # Source1-md5: 705f6993fbf890e92eb7a331e7c716d1
 Patch0:                %{name}-install.patch
 Patch1:                %{name}-wxWidgets.patch
-Patch2:                %{name}-amd64.patch
-Patch3:                %{name}-libdir.patch
+Patch2:                %{name}-libpng.patch
+Patch3:                %{name}-pic.patch
+Patch4:                %{name}-xulrunner.patch
 URL:           http://gpac.sourceforge.net/
 BuildRequires: SDL-devel
+BuildRequires: a52dec-libs-devel
+BuildRequires: alsa-lib-devel >= 0.9
 %{?with_faad:BuildRequires:    faad2-devel}
 %{?with_ffmpeg:BuildRequires:  ffmpeg-devel}
 %{?with_freetype:BuildRequires:        freetype-devel}
+BuildRequires: jack-audio-connection-kit-devel
 %{?with_js:BuildRequires:      js-devel}
 %{?with_jpeg:BuildRequires:    libjpeg-devel}
 %{?with_mad:BuildRequires:     libmad-devel}
+BuildRequires: libogg-devel
 %{?with_png:BuildRequires:     libpng-devel}
+BuildRequires: libtheora-devel
+BuildRequires: libvorbis-devel
 BuildRequires: libxml2-devel
+BuildRequires: openjpeg-devel
+BuildRequires: pulseaudio-devel
 BuildRequires: rpmbuild(macros) >= 1.357
 BuildRequires: unzip
 %{?with_wx:BuildRequires:      wxGTK2-devel >= 2.5.4}
+# -server
+BuildRequires: xmlrpc-c-devel
+BuildRequires: xorg-lib-libXext-devel
+BuildRequires: xorg-lib-libXv-devel
+BuildRequires: xulrunner-devel >= 1.9.1
 %{?with_xvid:BuildRequires:    xvid-devel}
-Requires:      SDL
-%{?with_faad:Requires: faad2}
-%{?with_ffmpeg:Requires:       ffmpeg}
-%{?with_freetype:Requires:     freetype}
-%{?with_js:Requires:   js}
-%{?with_jpeg:Requires: libjpeg}
-%{?with_mad:Requires:  libmad}
-%{?with_png:Requires:  libpng}
-%{?with_xvid:Requires: xvid}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define         _noautoreq   libm4systems.so
-
 %description
 GPAC is an implementation of the MPEG-4 Systems standard (ISO/IEC
 14496-1) developed from scratch in ANSI C.
@@ -110,6 +110,8 @@ Wtyczka GPAC dla przeglÄ…darek WWW zgodnych z Netscape.
 %{?with_wx:%patch1 -p1}
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
+
 %if %{with amr}
 mkdir -p Plugins/amr_dec/AMR_NB
 cd Plugins/amr_dec/AMR_NB
@@ -119,39 +121,41 @@ cd ../../..
 %endif
 chmod a+x configure
 
-# files for w32 and Linux were swapped
-rm -rf applications/osmozilla/nsIOsmozilla.xpt_linux
-mv applications/osmozilla/nsIOsmozilla.xpt_w32 applications/osmozilla/nsIOsmozilla.xpt_linux
-
 %build
+cd applications/osmozilla
+xpidl -m header -I /usr/share/idl/xulrunner nsIOsmozilla.idl
+xpidl -m typelib -I /usr/share/idl/xulrunner nsIOsmozilla.idl
+cp -f nsIOsmozilla.xpt nsIOsmozilla.xpt_linux
+cd ../..
 %configure \
-       --extra-cflags="-fPIC" \
-       --extra-ldflags="-fPIC" \
-       --enable-oss-audio \
+       --X11-path=/usr \
+       --cc="%{__cc}" \
+       --disable-opt \
        %{?with_amr:--enable-amr-nb} \
-       %{!?with_faad:--disable-faad} \
-       %{!?with_ffmpeg:--disable-ffmpeg} \
-       %{!?with_freetype:--disable-ft} \
-       %{!?with_jpeg:--disable-jpeg} \
-       %{!?with_js:--disable-js} \
-       %{!?with_mad:--disable-mad} \
-       %{!?with_png:--disable-png} \
-       %{!?with_xvid:--disable-xvid}
+       --enable-joystick \
+       --enable-pic \
+       --extra-cflags="%{rpmcflags}" \
+       --extra-ldflags="%{rpmldflags}" \
+       --mozdir=%{_browserpluginsdir} \
+       %{!?with_faad:--use-faad=no} \
+       %{!?with_ffmpeg:--use-ffmpeg=no} \
+       %{!?with_freetype:--use-ft=no} \
+       %{!?with_jpeg:--use-jpeg=no} \
+       %{!?with_js:--use-js=no} \
+       %{!?with_mad:--use-mad=no} \
+       %{!?with_png:--use-png=no} \
+       %{!?with_xvid:--use-xvid=no} \
+       --xulsdk-path="/usr/include/xulrunner -I/usr/include/nspr"
 
 %{__make} -j1 \
-       XLIBDIR="/usr/X11R6/%{_lib}" \
-       DESTDIR=$RPM_BUILD_ROOT
+       libdir=%{_lib}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-       bindir=$RPM_BUILD_ROOT%{_bindir} \
-       libdir=$RPM_BUILD_ROOT%{_libdir} \
-       mandir=$RPM_BUILD_ROOT%{_mandir} \
-       plugdir=$RPM_BUILD_ROOT%{_libdir}/gpac \
-       real_plugdir=%{_libdir}/gpac \
-       prefix=$RPM_BUILD_ROOT%{_prefix} \
+       DESTDIR=$RPM_BUILD_ROOT \
+       libdir=%{_lib} \
        MOZILLA_DIR=$RPM_BUILD_ROOT%{_browserpluginsdir}
 
 %clean
@@ -171,11 +175,16 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS BUGS Changelog README TODO
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_bindir}/MP4Box
+%attr(755,root,root) %{_bindir}/MP4Client
+%attr(755,root,root) %{_libdir}/libgpac-%{version}.so
+%attr(755,root,root) %{_libdir}/libgpac.so
 %dir %{_libdir}/gpac
-%attr(755,root,root) %{_libdir}/gpac/*.so
-%{_mandir}/man1/*
+%attr(755,root,root) %{_libdir}/gpac/gm_*.so
+%{_datadir}/gpac
+%{_mandir}/man1/gpac.1*
+%{_mandir}/man1/mp4box.1*
+%{_mandir}/man1/mp4client.1*
 
 %files -n browser-plugin-%{name}
 %defattr(644,root,root,755)
This page took 0.153405 seconds and 4 git commands to generate.