diff --git a/multimedia/Makefile b/multimedia/Makefile index 6228f3916b00..b5003453975f 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -48,6 +48,7 @@ SUBDIR += goggles SUBDIR += gopchop SUBDIR += gpac-libgpac + SUBDIR += gpac-mp4box SUBDIR += grpplaylist SUBDIR += gstreamer SUBDIR += gstreamer-editor diff --git a/multimedia/gpac-mp4box/Makefile b/multimedia/gpac-mp4box/Makefile new file mode 100644 index 000000000000..866216309fe9 --- /dev/null +++ b/multimedia/gpac-mp4box/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: gpac-mp4box +# Date created: 1 December 2006 +# Whom: Pascal Vizeli +# +# $FreeBSD$ +# + +PORTNAME= mp4box +DISTVERSION= 0.4.2-rc2 +CATEGORIES= multimedia +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= gpac +PKGNAMESUFFIX= gpac- +DISTNAME= gpac-${DISTVERSION} + +MAINTAINER= pvizeli@yahoo.de +COMMENT= A tool for merge mpg4 from Gpac + +LIB_DEPENDS= gpac.1:${PORTSDIR}/multimedia/gpac-libgpac + +WRKSRC= ${WRKDIR}/gpac/applications/mp4box +PLIST_FILES= bin/mp4box + +.include diff --git a/multimedia/gpac-mp4box/distinfo b/multimedia/gpac-mp4box/distinfo new file mode 100644 index 000000000000..794d6687794c --- /dev/null +++ b/multimedia/gpac-mp4box/distinfo @@ -0,0 +1,3 @@ +MD5 (gpac-0.4.2-rc2.tar.gz) = 9e41bc9fcdb2b6481fa7e75eec1ab05d +SHA256 (gpac-0.4.2-rc2.tar.gz) = 30ed4182d1e162debb6e562e20ccf95382440c2f0a7c249a85b3fbe770203253 +SIZE (gpac-0.4.2-rc2.tar.gz) = 3917307 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) diff --git a/multimedia/gpac-mp4box/pkg-descr b/multimedia/gpac-mp4box/pkg-descr new file mode 100644 index 000000000000..3cd126d578fe --- /dev/null +++ b/multimedia/gpac-mp4box/pkg-descr @@ -0,0 +1,6 @@ +mp4box is a mp4 container merge tool from gpac. + +Documentation here: +http://gpac.sourceforge.net/doc_mp4box.php + +WWW: http://gpac.sourceforge.net/