1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

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)
This commit is contained in:
Gabor Kovesdan 2007-02-06 12:33:43 +00:00
parent 06fc0cebe4
commit 65d221b24f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=184367
5 changed files with 126 additions and 0 deletions

View File

@ -48,6 +48,7 @@
SUBDIR += goggles
SUBDIR += gopchop
SUBDIR += gpac-libgpac
SUBDIR += gpac-mp4box
SUBDIR += grpplaylist
SUBDIR += gstreamer
SUBDIR += gstreamer-editor

View File

@ -0,0 +1,24 @@
# New ports collection makefile for: gpac-mp4box
# Date created: 1 December 2006
# Whom: Pascal Vizeli <pvizeli@yahoo.de>
#
# $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 <bsd.port.mk>

View File

@ -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

View File

@ -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)

View File

@ -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/