mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +00:00
o New port ffmpeg version 0.4.5: Hyper fast realtime audio/video
encoder/converter, streaming server Thanks to: fenner, imp, Chris "Vulpyne" Austin <vulpyne@way2fast.com> * for this patch -> #define INT64_C(x) x##LL
This commit is contained in:
parent
af3a792a80
commit
afac057a11
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48195
@ -41,6 +41,7 @@
|
||||
SUBDIR += evas
|
||||
SUBDIR += fbm
|
||||
SUBDIR += feh
|
||||
SUBDIR += ffmpeg
|
||||
SUBDIR += flashplayer
|
||||
SUBDIR += fli2gif
|
||||
SUBDIR += fly
|
||||
|
59
graphics/ffmpeg/Makefile
Normal file
59
graphics/ffmpeg/Makefile
Normal file
@ -0,0 +1,59 @@
|
||||
# New ports collection makefile for: ffmpeg
|
||||
# Date created: Tue Sep 25 15:52:09 BRT 2001
|
||||
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ffmpeg
|
||||
PORTVERSION= 0.4.5
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
HAS_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
MAKE_ARGS= MAKE="${GMAKE}" LOCALBASE="${LOCALBASE}"
|
||||
CONFIGURE_ARGS= --cc="${CC}" --prefix="${PREFIX}" \
|
||||
--disable-grab
|
||||
|
||||
DOC_FILES= README
|
||||
# under subdir doc
|
||||
DOC_DOCFILES= FAQ README.dev README.tech \
|
||||
TODO bench.txt ffmpeg.txt \
|
||||
ffserver.txt
|
||||
|
||||
.ifdef(WITHOUT_MMX)
|
||||
CONFIGURE_ARGS+= --disable-mmx
|
||||
.endif
|
||||
|
||||
.ifndef(WITHOUT_MMX)
|
||||
pre-everything::
|
||||
@${ECHO_MSG} "Define WITHOUT_MMX if your system does not support MMX"
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${PERL} -pi -e "s!/etc/ffserver.conf!${PREFIX}/etc/ffserver.conf!g" \
|
||||
${WRKSRC}/ffserver.c
|
||||
|
||||
post-install:
|
||||
.ifndef(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for file in ${DOC_FILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
.for file in ${DOC_DOCFILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
@${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \
|
||||
${PREFIX}/etc/ffserver.conf.sample
|
||||
|
||||
.include <bsd.port.mk>
|
1
graphics/ffmpeg/distinfo
Normal file
1
graphics/ffmpeg/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (ffmpeg-0.4.5.tar.gz) = 04e140b29ad8a9f88c2d3fb9e998f883
|
30
graphics/ffmpeg/files/patch-Makefile
Normal file
30
graphics/ffmpeg/files/patch-Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
--- Makefile.orig Wed Aug 15 10:11:45 2001
|
||||
+++ Makefile Tue Sep 25 15:10:12 2001
|
||||
@@ -3,8 +3,8 @@
|
||||
#
|
||||
include config.mak
|
||||
|
||||
-CFLAGS= $(OPTFLAGS) -Wall -g -I./libavcodec -I./libav
|
||||
-LDFLAGS= -g
|
||||
+CFLAGS= $(OPTFLAGS) -Wall -I./libavcodec -I./libav -I$(LOCALBASE)/include
|
||||
+LDFLAGS= -L$(LOCALBASE)/lib
|
||||
ifeq ($(TARGET_GPROF),yes)
|
||||
CFLAGS+=-p
|
||||
LDFLAGS+=-p
|
||||
@@ -19,13 +19,13 @@
|
||||
$(MAKE) -C libav all
|
||||
|
||||
ffmpeg: ffmpeg.o libav/libav.a libavcodec/libavcodec.a
|
||||
- gcc $(LDFLAGS) -o $@ $^ -lm
|
||||
+ $(CC) $(LDFLAGS) -o $@ $^ -lm
|
||||
|
||||
ffserver: ffserver.o libav/libav.a libavcodec/libavcodec.a
|
||||
- gcc $(LDFLAGS) -o $@ $^ -lm
|
||||
+ $(CC) $(LDFLAGS) -o $@ $^ -lm -lgnugetopt
|
||||
|
||||
%.o: %.c
|
||||
- gcc $(CFLAGS) -c -o $@ $<
|
||||
+ $(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
install: all
|
||||
install -s -m 755 $(PROG) $(prefix)/bin
|
10
graphics/ffmpeg/files/patch-ffmpeg.c
Normal file
10
graphics/ffmpeg/files/patch-ffmpeg.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- ffmpeg.c.orig Mon Aug 13 18:23:57 2001
|
||||
+++ ffmpeg.c Tue Sep 25 14:47:58 2001
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
#include "avformat.h"
|
||||
|
||||
+#define INT64_C(x) x##LL
|
||||
#define MAXINT64 INT64_C(0x7fffffffffffffff)
|
||||
|
||||
typedef struct {
|
18
graphics/ffmpeg/files/patch-ffserver.c
Normal file
18
graphics/ffmpeg/files/patch-ffserver.c
Normal file
@ -0,0 +1,18 @@
|
||||
--- ffserver.c.orig Tue Sep 25 14:53:44 2001
|
||||
+++ ffserver.c Tue Sep 25 14:55:12 2001
|
||||
@@ -20,7 +20,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
-#include <netinet/in.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -31,6 +30,7 @@
|
||||
#include <getopt.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
+#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <ctype.h>
|
9
graphics/ffmpeg/files/patch-libav::Makefile
Normal file
9
graphics/ffmpeg/files/patch-libav::Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
--- libav/Makefile.orig Tue Aug 14 19:32:28 2001
|
||||
+++ libav/Makefile Tue Sep 25 15:05:38 2001
|
||||
@@ -1,5 +1,5 @@
|
||||
include ../config.mak
|
||||
-CFLAGS= $(OPTFLAGS) -Wall -g -I../libavcodec -DHAVE_AV_CONFIG_H
|
||||
+CFLAGS= $(OPTFLAGS) -Wall -I../libavcodec -I$(LOCALBASE)/include -DHAVE_AV_CONFIG_H
|
||||
|
||||
OBJS= rm.o mpeg.o asf.o avienc.o jpeg.o swf.o wav.o raw.o \
|
||||
avidec.o ffm.o \
|
11
graphics/ffmpeg/files/patch-libavcodec::Makefile
Normal file
11
graphics/ffmpeg/files/patch-libavcodec::Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- libavcodec/Makefile.orig Tue Sep 25 15:05:58 2001
|
||||
+++ libavcodec/Makefile Tue Sep 25 15:06:08 2001
|
||||
@@ -1,7 +1,6 @@
|
||||
include ../config.mak
|
||||
|
||||
-CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H
|
||||
-LDFLAGS= -g
|
||||
+CFLAGS= $(OPTFLAGS) -Wall -DHAVE_AV_CONFIG_H
|
||||
|
||||
OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \
|
||||
mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \
|
1
graphics/ffmpeg/pkg-comment
Normal file
1
graphics/ffmpeg/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Hyper fast realtime audio/video encoder/converter, streaming server
|
24
graphics/ffmpeg/pkg-descr
Normal file
24
graphics/ffmpeg/pkg-descr
Normal file
@ -0,0 +1,24 @@
|
||||
[ excerpt (with adaptations) from developer's README ]
|
||||
ffmpeg is a hyper fast realtime audio/video encoder, a streaming
|
||||
server and a generic audio and video file converter.
|
||||
|
||||
It can convert a standard video source into several file formats
|
||||
based on DCT/motion compensation encoding. Sound is compressed in
|
||||
MPEG audio layer 2 or using an AC3 compatible stream.
|
||||
|
||||
What makes ffmpeg interesting ?
|
||||
- Simple and efficient video encoder: outputs MPEG1, H263, Real
|
||||
Video(tm), MPEG4, DIVX and MJPEG compatible bitstreams using the
|
||||
same encoder core.
|
||||
- Hyper fast MPEG audio layer 2 compression (50 times faster than
|
||||
realtime on a K6 500).
|
||||
[snip -> rest on website below]
|
||||
|
||||
ffmpeg is made of two programs:
|
||||
* ffmpeg: soft VCR which encodes in real time to several formats.
|
||||
It can also encode from any supported input file format to any
|
||||
input supported format.
|
||||
* ffserver: high performance live broadcast streaming server based
|
||||
on the ffmpeg core encoders.
|
||||
|
||||
WWW: http://ffmpeg.sourceforge.net/
|
12
graphics/ffmpeg/pkg-plist
Normal file
12
graphics/ffmpeg/pkg-plist
Normal file
@ -0,0 +1,12 @@
|
||||
bin/ffmpeg
|
||||
bin/ffserver
|
||||
etc/ffserver.conf.sample
|
||||
%%PORTDOCS%%share/doc/ffmpeg/FAQ
|
||||
%%PORTDOCS%%share/doc/ffmpeg/README
|
||||
%%PORTDOCS%%share/doc/ffmpeg/README.dev
|
||||
%%PORTDOCS%%share/doc/ffmpeg/README.tech
|
||||
%%PORTDOCS%%share/doc/ffmpeg/TODO
|
||||
%%PORTDOCS%%share/doc/ffmpeg/bench.txt
|
||||
%%PORTDOCS%%share/doc/ffmpeg/ffmpeg.txt
|
||||
%%PORTDOCS%%share/doc/ffmpeg/ffserver.txt
|
||||
%%PORTDOCS%%@dirrm share/doc/ffmpeg
|
59
multimedia/ffmpeg-devel/Makefile
Normal file
59
multimedia/ffmpeg-devel/Makefile
Normal file
@ -0,0 +1,59 @@
|
||||
# New ports collection makefile for: ffmpeg
|
||||
# Date created: Tue Sep 25 15:52:09 BRT 2001
|
||||
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ffmpeg
|
||||
PORTVERSION= 0.4.5
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
HAS_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
MAKE_ARGS= MAKE="${GMAKE}" LOCALBASE="${LOCALBASE}"
|
||||
CONFIGURE_ARGS= --cc="${CC}" --prefix="${PREFIX}" \
|
||||
--disable-grab
|
||||
|
||||
DOC_FILES= README
|
||||
# under subdir doc
|
||||
DOC_DOCFILES= FAQ README.dev README.tech \
|
||||
TODO bench.txt ffmpeg.txt \
|
||||
ffserver.txt
|
||||
|
||||
.ifdef(WITHOUT_MMX)
|
||||
CONFIGURE_ARGS+= --disable-mmx
|
||||
.endif
|
||||
|
||||
.ifndef(WITHOUT_MMX)
|
||||
pre-everything::
|
||||
@${ECHO_MSG} "Define WITHOUT_MMX if your system does not support MMX"
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${PERL} -pi -e "s!/etc/ffserver.conf!${PREFIX}/etc/ffserver.conf!g" \
|
||||
${WRKSRC}/ffserver.c
|
||||
|
||||
post-install:
|
||||
.ifndef(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for file in ${DOC_FILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
.for file in ${DOC_DOCFILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
@${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \
|
||||
${PREFIX}/etc/ffserver.conf.sample
|
||||
|
||||
.include <bsd.port.mk>
|
1
multimedia/ffmpeg-devel/distinfo
Normal file
1
multimedia/ffmpeg-devel/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (ffmpeg-0.4.5.tar.gz) = 04e140b29ad8a9f88c2d3fb9e998f883
|
10
multimedia/ffmpeg-devel/files/extra-bktr-patch-ffmpeg.c
Normal file
10
multimedia/ffmpeg-devel/files/extra-bktr-patch-ffmpeg.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- ffmpeg.c.orig Mon Aug 13 18:23:57 2001
|
||||
+++ ffmpeg.c Tue Sep 25 14:47:58 2001
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
#include "avformat.h"
|
||||
|
||||
+#define INT64_C(x) x##LL
|
||||
#define MAXINT64 INT64_C(0x7fffffffffffffff)
|
||||
|
||||
typedef struct {
|
30
multimedia/ffmpeg-devel/files/patch-Makefile
Normal file
30
multimedia/ffmpeg-devel/files/patch-Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
--- Makefile.orig Wed Aug 15 10:11:45 2001
|
||||
+++ Makefile Tue Sep 25 15:10:12 2001
|
||||
@@ -3,8 +3,8 @@
|
||||
#
|
||||
include config.mak
|
||||
|
||||
-CFLAGS= $(OPTFLAGS) -Wall -g -I./libavcodec -I./libav
|
||||
-LDFLAGS= -g
|
||||
+CFLAGS= $(OPTFLAGS) -Wall -I./libavcodec -I./libav -I$(LOCALBASE)/include
|
||||
+LDFLAGS= -L$(LOCALBASE)/lib
|
||||
ifeq ($(TARGET_GPROF),yes)
|
||||
CFLAGS+=-p
|
||||
LDFLAGS+=-p
|
||||
@@ -19,13 +19,13 @@
|
||||
$(MAKE) -C libav all
|
||||
|
||||
ffmpeg: ffmpeg.o libav/libav.a libavcodec/libavcodec.a
|
||||
- gcc $(LDFLAGS) -o $@ $^ -lm
|
||||
+ $(CC) $(LDFLAGS) -o $@ $^ -lm
|
||||
|
||||
ffserver: ffserver.o libav/libav.a libavcodec/libavcodec.a
|
||||
- gcc $(LDFLAGS) -o $@ $^ -lm
|
||||
+ $(CC) $(LDFLAGS) -o $@ $^ -lm -lgnugetopt
|
||||
|
||||
%.o: %.c
|
||||
- gcc $(CFLAGS) -c -o $@ $<
|
||||
+ $(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
install: all
|
||||
install -s -m 755 $(PROG) $(prefix)/bin
|
10
multimedia/ffmpeg-devel/files/patch-ffmpeg.c
Normal file
10
multimedia/ffmpeg-devel/files/patch-ffmpeg.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- ffmpeg.c.orig Mon Aug 13 18:23:57 2001
|
||||
+++ ffmpeg.c Tue Sep 25 14:47:58 2001
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
#include "avformat.h"
|
||||
|
||||
+#define INT64_C(x) x##LL
|
||||
#define MAXINT64 INT64_C(0x7fffffffffffffff)
|
||||
|
||||
typedef struct {
|
18
multimedia/ffmpeg-devel/files/patch-ffserver.c
Normal file
18
multimedia/ffmpeg-devel/files/patch-ffserver.c
Normal file
@ -0,0 +1,18 @@
|
||||
--- ffserver.c.orig Tue Sep 25 14:53:44 2001
|
||||
+++ ffserver.c Tue Sep 25 14:55:12 2001
|
||||
@@ -20,7 +20,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
-#include <netinet/in.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -31,6 +30,7 @@
|
||||
#include <getopt.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
+#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <ctype.h>
|
9
multimedia/ffmpeg-devel/files/patch-libav::Makefile
Normal file
9
multimedia/ffmpeg-devel/files/patch-libav::Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
--- libav/Makefile.orig Tue Aug 14 19:32:28 2001
|
||||
+++ libav/Makefile Tue Sep 25 15:05:38 2001
|
||||
@@ -1,5 +1,5 @@
|
||||
include ../config.mak
|
||||
-CFLAGS= $(OPTFLAGS) -Wall -g -I../libavcodec -DHAVE_AV_CONFIG_H
|
||||
+CFLAGS= $(OPTFLAGS) -Wall -I../libavcodec -I$(LOCALBASE)/include -DHAVE_AV_CONFIG_H
|
||||
|
||||
OBJS= rm.o mpeg.o asf.o avienc.o jpeg.o swf.o wav.o raw.o \
|
||||
avidec.o ffm.o \
|
11
multimedia/ffmpeg-devel/files/patch-libavcodec::Makefile
Normal file
11
multimedia/ffmpeg-devel/files/patch-libavcodec::Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- libavcodec/Makefile.orig Tue Sep 25 15:05:58 2001
|
||||
+++ libavcodec/Makefile Tue Sep 25 15:06:08 2001
|
||||
@@ -1,7 +1,6 @@
|
||||
include ../config.mak
|
||||
|
||||
-CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H
|
||||
-LDFLAGS= -g
|
||||
+CFLAGS= $(OPTFLAGS) -Wall -DHAVE_AV_CONFIG_H
|
||||
|
||||
OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \
|
||||
mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \
|
1
multimedia/ffmpeg-devel/pkg-comment
Normal file
1
multimedia/ffmpeg-devel/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Hyper fast realtime audio/video encoder/converter, streaming server
|
24
multimedia/ffmpeg-devel/pkg-descr
Normal file
24
multimedia/ffmpeg-devel/pkg-descr
Normal file
@ -0,0 +1,24 @@
|
||||
[ excerpt (with adaptations) from developer's README ]
|
||||
ffmpeg is a hyper fast realtime audio/video encoder, a streaming
|
||||
server and a generic audio and video file converter.
|
||||
|
||||
It can convert a standard video source into several file formats
|
||||
based on DCT/motion compensation encoding. Sound is compressed in
|
||||
MPEG audio layer 2 or using an AC3 compatible stream.
|
||||
|
||||
What makes ffmpeg interesting ?
|
||||
- Simple and efficient video encoder: outputs MPEG1, H263, Real
|
||||
Video(tm), MPEG4, DIVX and MJPEG compatible bitstreams using the
|
||||
same encoder core.
|
||||
- Hyper fast MPEG audio layer 2 compression (50 times faster than
|
||||
realtime on a K6 500).
|
||||
[snip -> rest on website below]
|
||||
|
||||
ffmpeg is made of two programs:
|
||||
* ffmpeg: soft VCR which encodes in real time to several formats.
|
||||
It can also encode from any supported input file format to any
|
||||
input supported format.
|
||||
* ffserver: high performance live broadcast streaming server based
|
||||
on the ffmpeg core encoders.
|
||||
|
||||
WWW: http://ffmpeg.sourceforge.net/
|
12
multimedia/ffmpeg-devel/pkg-plist
Normal file
12
multimedia/ffmpeg-devel/pkg-plist
Normal file
@ -0,0 +1,12 @@
|
||||
bin/ffmpeg
|
||||
bin/ffserver
|
||||
etc/ffserver.conf.sample
|
||||
%%PORTDOCS%%share/doc/ffmpeg/FAQ
|
||||
%%PORTDOCS%%share/doc/ffmpeg/README
|
||||
%%PORTDOCS%%share/doc/ffmpeg/README.dev
|
||||
%%PORTDOCS%%share/doc/ffmpeg/README.tech
|
||||
%%PORTDOCS%%share/doc/ffmpeg/TODO
|
||||
%%PORTDOCS%%share/doc/ffmpeg/bench.txt
|
||||
%%PORTDOCS%%share/doc/ffmpeg/ffmpeg.txt
|
||||
%%PORTDOCS%%share/doc/ffmpeg/ffserver.txt
|
||||
%%PORTDOCS%%@dirrm share/doc/ffmpeg
|
59
multimedia/ffmpeg/Makefile
Normal file
59
multimedia/ffmpeg/Makefile
Normal file
@ -0,0 +1,59 @@
|
||||
# New ports collection makefile for: ffmpeg
|
||||
# Date created: Tue Sep 25 15:52:09 BRT 2001
|
||||
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ffmpeg
|
||||
PORTVERSION= 0.4.5
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
HAS_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
MAKE_ARGS= MAKE="${GMAKE}" LOCALBASE="${LOCALBASE}"
|
||||
CONFIGURE_ARGS= --cc="${CC}" --prefix="${PREFIX}" \
|
||||
--disable-grab
|
||||
|
||||
DOC_FILES= README
|
||||
# under subdir doc
|
||||
DOC_DOCFILES= FAQ README.dev README.tech \
|
||||
TODO bench.txt ffmpeg.txt \
|
||||
ffserver.txt
|
||||
|
||||
.ifdef(WITHOUT_MMX)
|
||||
CONFIGURE_ARGS+= --disable-mmx
|
||||
.endif
|
||||
|
||||
.ifndef(WITHOUT_MMX)
|
||||
pre-everything::
|
||||
@${ECHO_MSG} "Define WITHOUT_MMX if your system does not support MMX"
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${PERL} -pi -e "s!/etc/ffserver.conf!${PREFIX}/etc/ffserver.conf!g" \
|
||||
${WRKSRC}/ffserver.c
|
||||
|
||||
post-install:
|
||||
.ifndef(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for file in ${DOC_FILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
.for file in ${DOC_DOCFILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
@${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \
|
||||
${PREFIX}/etc/ffserver.conf.sample
|
||||
|
||||
.include <bsd.port.mk>
|
1
multimedia/ffmpeg/distinfo
Normal file
1
multimedia/ffmpeg/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (ffmpeg-0.4.5.tar.gz) = 04e140b29ad8a9f88c2d3fb9e998f883
|
10
multimedia/ffmpeg/files/extra-bktr-patch-ffmpeg.c
Normal file
10
multimedia/ffmpeg/files/extra-bktr-patch-ffmpeg.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- ffmpeg.c.orig Mon Aug 13 18:23:57 2001
|
||||
+++ ffmpeg.c Tue Sep 25 14:47:58 2001
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
#include "avformat.h"
|
||||
|
||||
+#define INT64_C(x) x##LL
|
||||
#define MAXINT64 INT64_C(0x7fffffffffffffff)
|
||||
|
||||
typedef struct {
|
30
multimedia/ffmpeg/files/patch-Makefile
Normal file
30
multimedia/ffmpeg/files/patch-Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
--- Makefile.orig Wed Aug 15 10:11:45 2001
|
||||
+++ Makefile Tue Sep 25 15:10:12 2001
|
||||
@@ -3,8 +3,8 @@
|
||||
#
|
||||
include config.mak
|
||||
|
||||
-CFLAGS= $(OPTFLAGS) -Wall -g -I./libavcodec -I./libav
|
||||
-LDFLAGS= -g
|
||||
+CFLAGS= $(OPTFLAGS) -Wall -I./libavcodec -I./libav -I$(LOCALBASE)/include
|
||||
+LDFLAGS= -L$(LOCALBASE)/lib
|
||||
ifeq ($(TARGET_GPROF),yes)
|
||||
CFLAGS+=-p
|
||||
LDFLAGS+=-p
|
||||
@@ -19,13 +19,13 @@
|
||||
$(MAKE) -C libav all
|
||||
|
||||
ffmpeg: ffmpeg.o libav/libav.a libavcodec/libavcodec.a
|
||||
- gcc $(LDFLAGS) -o $@ $^ -lm
|
||||
+ $(CC) $(LDFLAGS) -o $@ $^ -lm
|
||||
|
||||
ffserver: ffserver.o libav/libav.a libavcodec/libavcodec.a
|
||||
- gcc $(LDFLAGS) -o $@ $^ -lm
|
||||
+ $(CC) $(LDFLAGS) -o $@ $^ -lm -lgnugetopt
|
||||
|
||||
%.o: %.c
|
||||
- gcc $(CFLAGS) -c -o $@ $<
|
||||
+ $(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
install: all
|
||||
install -s -m 755 $(PROG) $(prefix)/bin
|
10
multimedia/ffmpeg/files/patch-ffmpeg.c
Normal file
10
multimedia/ffmpeg/files/patch-ffmpeg.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- ffmpeg.c.orig Mon Aug 13 18:23:57 2001
|
||||
+++ ffmpeg.c Tue Sep 25 14:47:58 2001
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
#include "avformat.h"
|
||||
|
||||
+#define INT64_C(x) x##LL
|
||||
#define MAXINT64 INT64_C(0x7fffffffffffffff)
|
||||
|
||||
typedef struct {
|
18
multimedia/ffmpeg/files/patch-ffserver.c
Normal file
18
multimedia/ffmpeg/files/patch-ffserver.c
Normal file
@ -0,0 +1,18 @@
|
||||
--- ffserver.c.orig Tue Sep 25 14:53:44 2001
|
||||
+++ ffserver.c Tue Sep 25 14:55:12 2001
|
||||
@@ -20,7 +20,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
-#include <netinet/in.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -31,6 +30,7 @@
|
||||
#include <getopt.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
+#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <ctype.h>
|
9
multimedia/ffmpeg/files/patch-libav::Makefile
Normal file
9
multimedia/ffmpeg/files/patch-libav::Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
--- libav/Makefile.orig Tue Aug 14 19:32:28 2001
|
||||
+++ libav/Makefile Tue Sep 25 15:05:38 2001
|
||||
@@ -1,5 +1,5 @@
|
||||
include ../config.mak
|
||||
-CFLAGS= $(OPTFLAGS) -Wall -g -I../libavcodec -DHAVE_AV_CONFIG_H
|
||||
+CFLAGS= $(OPTFLAGS) -Wall -I../libavcodec -I$(LOCALBASE)/include -DHAVE_AV_CONFIG_H
|
||||
|
||||
OBJS= rm.o mpeg.o asf.o avienc.o jpeg.o swf.o wav.o raw.o \
|
||||
avidec.o ffm.o \
|
11
multimedia/ffmpeg/files/patch-libavcodec::Makefile
Normal file
11
multimedia/ffmpeg/files/patch-libavcodec::Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- libavcodec/Makefile.orig Tue Sep 25 15:05:58 2001
|
||||
+++ libavcodec/Makefile Tue Sep 25 15:06:08 2001
|
||||
@@ -1,7 +1,6 @@
|
||||
include ../config.mak
|
||||
|
||||
-CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H
|
||||
-LDFLAGS= -g
|
||||
+CFLAGS= $(OPTFLAGS) -Wall -DHAVE_AV_CONFIG_H
|
||||
|
||||
OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \
|
||||
mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \
|
1
multimedia/ffmpeg/pkg-comment
Normal file
1
multimedia/ffmpeg/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Hyper fast realtime audio/video encoder/converter, streaming server
|
24
multimedia/ffmpeg/pkg-descr
Normal file
24
multimedia/ffmpeg/pkg-descr
Normal file
@ -0,0 +1,24 @@
|
||||
[ excerpt (with adaptations) from developer's README ]
|
||||
ffmpeg is a hyper fast realtime audio/video encoder, a streaming
|
||||
server and a generic audio and video file converter.
|
||||
|
||||
It can convert a standard video source into several file formats
|
||||
based on DCT/motion compensation encoding. Sound is compressed in
|
||||
MPEG audio layer 2 or using an AC3 compatible stream.
|
||||
|
||||
What makes ffmpeg interesting ?
|
||||
- Simple and efficient video encoder: outputs MPEG1, H263, Real
|
||||
Video(tm), MPEG4, DIVX and MJPEG compatible bitstreams using the
|
||||
same encoder core.
|
||||
- Hyper fast MPEG audio layer 2 compression (50 times faster than
|
||||
realtime on a K6 500).
|
||||
[snip -> rest on website below]
|
||||
|
||||
ffmpeg is made of two programs:
|
||||
* ffmpeg: soft VCR which encodes in real time to several formats.
|
||||
It can also encode from any supported input file format to any
|
||||
input supported format.
|
||||
* ffserver: high performance live broadcast streaming server based
|
||||
on the ffmpeg core encoders.
|
||||
|
||||
WWW: http://ffmpeg.sourceforge.net/
|
12
multimedia/ffmpeg/pkg-plist
Normal file
12
multimedia/ffmpeg/pkg-plist
Normal file
@ -0,0 +1,12 @@
|
||||
bin/ffmpeg
|
||||
bin/ffserver
|
||||
etc/ffserver.conf.sample
|
||||
%%PORTDOCS%%share/doc/ffmpeg/FAQ
|
||||
%%PORTDOCS%%share/doc/ffmpeg/README
|
||||
%%PORTDOCS%%share/doc/ffmpeg/README.dev
|
||||
%%PORTDOCS%%share/doc/ffmpeg/README.tech
|
||||
%%PORTDOCS%%share/doc/ffmpeg/TODO
|
||||
%%PORTDOCS%%share/doc/ffmpeg/bench.txt
|
||||
%%PORTDOCS%%share/doc/ffmpeg/ffmpeg.txt
|
||||
%%PORTDOCS%%share/doc/ffmpeg/ffserver.txt
|
||||
%%PORTDOCS%%@dirrm share/doc/ffmpeg
|
59
multimedia/ffmpeg045/Makefile
Normal file
59
multimedia/ffmpeg045/Makefile
Normal file
@ -0,0 +1,59 @@
|
||||
# New ports collection makefile for: ffmpeg
|
||||
# Date created: Tue Sep 25 15:52:09 BRT 2001
|
||||
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ffmpeg
|
||||
PORTVERSION= 0.4.5
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
HAS_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
MAKE_ARGS= MAKE="${GMAKE}" LOCALBASE="${LOCALBASE}"
|
||||
CONFIGURE_ARGS= --cc="${CC}" --prefix="${PREFIX}" \
|
||||
--disable-grab
|
||||
|
||||
DOC_FILES= README
|
||||
# under subdir doc
|
||||
DOC_DOCFILES= FAQ README.dev README.tech \
|
||||
TODO bench.txt ffmpeg.txt \
|
||||
ffserver.txt
|
||||
|
||||
.ifdef(WITHOUT_MMX)
|
||||
CONFIGURE_ARGS+= --disable-mmx
|
||||
.endif
|
||||
|
||||
.ifndef(WITHOUT_MMX)
|
||||
pre-everything::
|
||||
@${ECHO_MSG} "Define WITHOUT_MMX if your system does not support MMX"
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${PERL} -pi -e "s!/etc/ffserver.conf!${PREFIX}/etc/ffserver.conf!g" \
|
||||
${WRKSRC}/ffserver.c
|
||||
|
||||
post-install:
|
||||
.ifndef(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for file in ${DOC_FILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
.for file in ${DOC_DOCFILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
@${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \
|
||||
${PREFIX}/etc/ffserver.conf.sample
|
||||
|
||||
.include <bsd.port.mk>
|
1
multimedia/ffmpeg045/distinfo
Normal file
1
multimedia/ffmpeg045/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (ffmpeg-0.4.5.tar.gz) = 04e140b29ad8a9f88c2d3fb9e998f883
|
30
multimedia/ffmpeg045/files/patch-Makefile
Normal file
30
multimedia/ffmpeg045/files/patch-Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
--- Makefile.orig Wed Aug 15 10:11:45 2001
|
||||
+++ Makefile Tue Sep 25 15:10:12 2001
|
||||
@@ -3,8 +3,8 @@
|
||||
#
|
||||
include config.mak
|
||||
|
||||
-CFLAGS= $(OPTFLAGS) -Wall -g -I./libavcodec -I./libav
|
||||
-LDFLAGS= -g
|
||||
+CFLAGS= $(OPTFLAGS) -Wall -I./libavcodec -I./libav -I$(LOCALBASE)/include
|
||||
+LDFLAGS= -L$(LOCALBASE)/lib
|
||||
ifeq ($(TARGET_GPROF),yes)
|
||||
CFLAGS+=-p
|
||||
LDFLAGS+=-p
|
||||
@@ -19,13 +19,13 @@
|
||||
$(MAKE) -C libav all
|
||||
|
||||
ffmpeg: ffmpeg.o libav/libav.a libavcodec/libavcodec.a
|
||||
- gcc $(LDFLAGS) -o $@ $^ -lm
|
||||
+ $(CC) $(LDFLAGS) -o $@ $^ -lm
|
||||
|
||||
ffserver: ffserver.o libav/libav.a libavcodec/libavcodec.a
|
||||
- gcc $(LDFLAGS) -o $@ $^ -lm
|
||||
+ $(CC) $(LDFLAGS) -o $@ $^ -lm -lgnugetopt
|
||||
|
||||
%.o: %.c
|
||||
- gcc $(CFLAGS) -c -o $@ $<
|
||||
+ $(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
install: all
|
||||
install -s -m 755 $(PROG) $(prefix)/bin
|
10
multimedia/ffmpeg045/files/patch-ffmpeg.c
Normal file
10
multimedia/ffmpeg045/files/patch-ffmpeg.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- ffmpeg.c.orig Mon Aug 13 18:23:57 2001
|
||||
+++ ffmpeg.c Tue Sep 25 14:47:58 2001
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
#include "avformat.h"
|
||||
|
||||
+#define INT64_C(x) x##LL
|
||||
#define MAXINT64 INT64_C(0x7fffffffffffffff)
|
||||
|
||||
typedef struct {
|
18
multimedia/ffmpeg045/files/patch-ffserver.c
Normal file
18
multimedia/ffmpeg045/files/patch-ffserver.c
Normal file
@ -0,0 +1,18 @@
|
||||
--- ffserver.c.orig Tue Sep 25 14:53:44 2001
|
||||
+++ ffserver.c Tue Sep 25 14:55:12 2001
|
||||
@@ -20,7 +20,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
-#include <netinet/in.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -31,6 +30,7 @@
|
||||
#include <getopt.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
+#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <ctype.h>
|
9
multimedia/ffmpeg045/files/patch-libav::Makefile
Normal file
9
multimedia/ffmpeg045/files/patch-libav::Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
--- libav/Makefile.orig Tue Aug 14 19:32:28 2001
|
||||
+++ libav/Makefile Tue Sep 25 15:05:38 2001
|
||||
@@ -1,5 +1,5 @@
|
||||
include ../config.mak
|
||||
-CFLAGS= $(OPTFLAGS) -Wall -g -I../libavcodec -DHAVE_AV_CONFIG_H
|
||||
+CFLAGS= $(OPTFLAGS) -Wall -I../libavcodec -I$(LOCALBASE)/include -DHAVE_AV_CONFIG_H
|
||||
|
||||
OBJS= rm.o mpeg.o asf.o avienc.o jpeg.o swf.o wav.o raw.o \
|
||||
avidec.o ffm.o \
|
11
multimedia/ffmpeg045/files/patch-libavcodec::Makefile
Normal file
11
multimedia/ffmpeg045/files/patch-libavcodec::Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- libavcodec/Makefile.orig Tue Sep 25 15:05:58 2001
|
||||
+++ libavcodec/Makefile Tue Sep 25 15:06:08 2001
|
||||
@@ -1,7 +1,6 @@
|
||||
include ../config.mak
|
||||
|
||||
-CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H
|
||||
-LDFLAGS= -g
|
||||
+CFLAGS= $(OPTFLAGS) -Wall -DHAVE_AV_CONFIG_H
|
||||
|
||||
OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \
|
||||
mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \
|
1
multimedia/ffmpeg045/pkg-comment
Normal file
1
multimedia/ffmpeg045/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Hyper fast realtime audio/video encoder/converter, streaming server
|
24
multimedia/ffmpeg045/pkg-descr
Normal file
24
multimedia/ffmpeg045/pkg-descr
Normal file
@ -0,0 +1,24 @@
|
||||
[ excerpt (with adaptations) from developer's README ]
|
||||
ffmpeg is a hyper fast realtime audio/video encoder, a streaming
|
||||
server and a generic audio and video file converter.
|
||||
|
||||
It can convert a standard video source into several file formats
|
||||
based on DCT/motion compensation encoding. Sound is compressed in
|
||||
MPEG audio layer 2 or using an AC3 compatible stream.
|
||||
|
||||
What makes ffmpeg interesting ?
|
||||
- Simple and efficient video encoder: outputs MPEG1, H263, Real
|
||||
Video(tm), MPEG4, DIVX and MJPEG compatible bitstreams using the
|
||||
same encoder core.
|
||||
- Hyper fast MPEG audio layer 2 compression (50 times faster than
|
||||
realtime on a K6 500).
|
||||
[snip -> rest on website below]
|
||||
|
||||
ffmpeg is made of two programs:
|
||||
* ffmpeg: soft VCR which encodes in real time to several formats.
|
||||
It can also encode from any supported input file format to any
|
||||
input supported format.
|
||||
* ffserver: high performance live broadcast streaming server based
|
||||
on the ffmpeg core encoders.
|
||||
|
||||
WWW: http://ffmpeg.sourceforge.net/
|
12
multimedia/ffmpeg045/pkg-plist
Normal file
12
multimedia/ffmpeg045/pkg-plist
Normal file
@ -0,0 +1,12 @@
|
||||
bin/ffmpeg
|
||||
bin/ffserver
|
||||
etc/ffserver.conf.sample
|
||||
%%PORTDOCS%%share/doc/ffmpeg/FAQ
|
||||
%%PORTDOCS%%share/doc/ffmpeg/README
|
||||
%%PORTDOCS%%share/doc/ffmpeg/README.dev
|
||||
%%PORTDOCS%%share/doc/ffmpeg/README.tech
|
||||
%%PORTDOCS%%share/doc/ffmpeg/TODO
|
||||
%%PORTDOCS%%share/doc/ffmpeg/bench.txt
|
||||
%%PORTDOCS%%share/doc/ffmpeg/ffmpeg.txt
|
||||
%%PORTDOCS%%share/doc/ffmpeg/ffserver.txt
|
||||
%%PORTDOCS%%@dirrm share/doc/ffmpeg
|
Loading…
Reference in New Issue
Block a user