aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/gpac-mp4box/files
diff options
context:
space:
mode:
authorgabor <gabor@FreeBSD.org>2007-02-06 20:33:43 +0800
committergabor <gabor@FreeBSD.org>2007-02-06 20:33:43 +0800
commit2d01ffc29af3de3d6e1b61844e9f9f4922cb1909 (patch)
tree81c561c686b77642bd03c991134c718051a1c725 /multimedia/gpac-mp4box/files
parentd1660044d2dc1ff3337e64a06a896f30c13a34a0 (diff)
downloadfreebsd-ports-gnome-2d01ffc29af3de3d6e1b61844e9f9f4922cb1909.tar.gz
freebsd-ports-gnome-2d01ffc29af3de3d6e1b61844e9f9f4922cb1909.tar.zst
freebsd-ports-gnome-2d01ffc29af3de3d6e1b61844e9f9f4922cb1909.zip
mp4box is a mp4 container merge tool from gpac.
Documentation here: http://gpac.sourceforge.net/doc_mp4box.php WWW: http://gpac.sourceforge.net/ PR: ports/106273 Submitted by: Pascal Vizeli <pvizeli at yahoo.de> Approved by: erwin (mentor)
Diffstat (limited to 'multimedia/gpac-mp4box/files')
-rw-r--r--multimedia/gpac-mp4box/files/patch-Makefile92
1 files changed, 92 insertions, 0 deletions
diff --git a/multimedia/gpac-mp4box/files/patch-Makefile b/multimedia/gpac-mp4box/files/patch-Makefile
new file mode 100644
index 000000000000..ff119da3fbf7
--- /dev/null
+++ b/multimedia/gpac-mp4box/files/patch-Makefile
@@ -0,0 +1,92 @@
+--- Makefile.orig Wed May 24 11:52:53 2006
++++ Makefile Sun Feb 4 17:09:48 2007
+@@ -1,73 +1,16 @@
+-include ../../config.mak
+-
+-vpath %.c $(SRC_PATH)/applications/mp4box
+-
+-CFLAGS= $(OPTFLAGS) -Wall -I$(SRC_PATH)/include
+-
+-ifeq ($(DEBUGBUILD), yes)
+-CFLAGS+=-g
+-LDFLAGS+=-g
+-endif
+-
+-ifeq ($(GPROFBUILD), yes)
+-CFLAGS+=-pg
+-LDFLAGS+=-pg
+-endif
+-
+-#file format is read-only
+-ifeq ($(GPACREADONLY), yes)
+-CFLAGS+= -DGPAC_READ_ONLY
+-endif
+-
+-ifeq ($(DISABLE_SVG), yes)
+-CFLAGS+=-DGPAC_DISABLE_SVG
+-endif
+-
+-#common obj
+-OBJS= main.o filedump.o fileimport.o
+-
+-LINKFLAGS=-L../../bin/gcc
+-ifeq ($(CONFIG_WIN32),yes)
+-EXE=.exe
+-PROG=MP4Box$(EXE)
+-#LINKFLAGS+=-lgpac_static -lz $(EXTRALIBS)
+-LINKFLAGS+=-lgpac
+-else
+-EXT=
+-PROG=MP4Box
+-#LINKFLAGS+=-lgpac_static $(EXTRALIBS) $(GPAC_SH_FLAGS) -lz
+-LINKFLAGS+=-lgpac -lz
+-endif
+-
+-
+-SRCS := $(OBJS:.o=.c)
+-
+-all: $(PROG)
+-
+-$(PROG): $(OBJS)
+- $(CC) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(LINKFLAGS)
+-
+-
+-%.o: %.c
+- $(CC) $(CFLAGS) -c -o $@ $<
+-
+-
+-clean:
+- rm -f $(OBJS) ../../bin/gcc/$(PROG)
+-
+-dep: depend
+-
+-depend:
+- rm -f .depend
+- $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
+-
+-distclean: clean
+- rm -f Makefile.bak .depend
+-
+-
+-
+-# include dependency files if they exist
+-#
+-ifneq ($(wildcard .depend),)
+-include .depend
+-endif
++# FreeBSD Version
++CC?= gcc
++CFLAGS?= -Wall -O3 -pipe
++CFLAGS+= -I/usr/local/include -L/usr/local/lib
++LDFLAGS= -lpthread -lgpac
++NAME= mp4box
++OBJ= filedump.o fileimport.o main.o
++prog: $(OBJ)
++ $(CC) $(CFLAGS) -o $(NAME) $(OBJ) $(LDFLAGS)
++all: prog
++%.o: %.c
++ $(CC) $(CFLAGS) -c $<
++install: prog
++ $(BSD_INSTALL_PROGRAM) -c $(NAME) $(PREFIX)/bin
++clean:
++ rm -f *.o $(NAME)