2007-05-25 19:07:36 +02:00
|
|
|
# New ports collection makefile for: ffmpeg cvs
|
|
|
|
# Date created: Sun May 1 20:46:59 UTC 2005
|
2001-09-25 21:27:11 +02:00
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2008-07-28 01:51:20 +02:00
|
|
|
# $Id: Makefile 77 2008-07-27 21:50:37Z buhnux $
|
2001-09-25 21:27:11 +02:00
|
|
|
|
|
|
|
PORTNAME= ffmpeg
|
2010-03-10 12:00:00 +01:00
|
|
|
PORTVERSION= 0.5.1
|
2009-08-12 10:43:17 +02:00
|
|
|
PORTEPOCH= 1
|
2010-03-24 19:44:22 +01:00
|
|
|
PORTREVISION= 1
|
2007-05-25 19:07:36 +02:00
|
|
|
CATEGORIES= multimedia audio ipv6 net
|
2009-08-12 10:43:17 +02:00
|
|
|
MASTER_SITES= http://ffmpeg.org/releases/
|
2001-09-25 21:27:11 +02:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
MAINTAINER= mm@FreeBSD.org
|
|
|
|
COMMENT= Realtime audio/video encoder/converter and streaming server
|
|
|
|
|
|
|
|
BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
|
2001-09-25 21:27:11 +02:00
|
|
|
|
2009-08-12 12:30:16 +02:00
|
|
|
CONFLICTS= ffmpeg-devel-20*
|
|
|
|
|
2001-09-25 21:27:11 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2007-08-12 22:11:58 +02:00
|
|
|
CONFIGURE_LOG= config.err
|
2007-05-25 19:07:36 +02:00
|
|
|
USE_BZIP2= yes
|
2001-09-25 21:27:11 +02:00
|
|
|
USE_GMAKE= yes
|
2009-03-24 17:58:56 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2004-03-08 02:01:31 +01:00
|
|
|
WANT_SDL= yes
|
2007-07-29 02:46:08 +02:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
OPTIONS= AMR_NB "AMR Narrow Band encoder" off \
|
|
|
|
AMR_WB "AMR Wide Band encoder" off \
|
|
|
|
DIRAC "Dirac codec via libdirac" off \
|
2008-04-27 12:22:56 +02:00
|
|
|
FAAC "FAAC mp4/aac audio encoder" off \
|
|
|
|
FAAD "FAAD mp4/aac audio decoder" on \
|
2009-08-12 10:43:17 +02:00
|
|
|
FFSERVER "Build and install ffserver" on \
|
|
|
|
GSM "GSM audio codec" off \
|
2008-04-27 12:22:56 +02:00
|
|
|
IPV6 "IPV6 network support" on \
|
2009-08-12 10:43:17 +02:00
|
|
|
LAME "LAME MP3 encoder" off \
|
|
|
|
OPENJPEG "JPEG 2000 decoder" off \
|
2008-04-27 12:22:56 +02:00
|
|
|
OPTIMIZED_CFLAGS "Additional optimizations" off \
|
2009-08-12 10:43:17 +02:00
|
|
|
SCHROEDINGER "Dirac codec via libschroedinger" on \
|
2008-04-27 12:22:56 +02:00
|
|
|
SDL "SDL support (build ffplay)" off \
|
2009-08-12 10:43:17 +02:00
|
|
|
SPEEX "Speex audio decoder" off \
|
|
|
|
THEORA "Theora encoder (implies OGG)" on \
|
|
|
|
VHOOK "Video hook support" off \
|
|
|
|
VORBIS "Vorbis encoder via libvorbis (implies OGG)" on \
|
2009-12-31 12:15:30 +01:00
|
|
|
X11GRAB "enable X11 grabbing" off \
|
2009-08-12 10:43:17 +02:00
|
|
|
X264 "H.264 encoder" on \
|
|
|
|
XVID "Xvid encoder via xvidcore" on
|
|
|
|
|
|
|
|
COMPAT_HEADERS=libavcodec/avcodec.h \
|
2008-07-28 23:17:38 +02:00
|
|
|
libavcodec/opt.h \
|
2009-08-12 10:43:17 +02:00
|
|
|
libavcodec/vdpau.h \
|
|
|
|
libavcodec/xvmc.h \
|
2008-07-28 23:17:38 +02:00
|
|
|
libavdevice/avdevice.h \
|
2009-08-12 10:43:17 +02:00
|
|
|
libavfilter/avfilter.h \
|
2008-07-28 23:17:38 +02:00
|
|
|
libavformat/avformat.h \
|
|
|
|
libavformat/avio.h \
|
2009-08-12 10:43:17 +02:00
|
|
|
libavutil/adler32.h \
|
2008-07-28 23:17:38 +02:00
|
|
|
libavutil/avstring.h \
|
|
|
|
libavutil/avutil.h \
|
|
|
|
libavutil/base64.h \
|
|
|
|
libavutil/common.h \
|
|
|
|
libavutil/crc.h \
|
|
|
|
libavutil/fifo.h \
|
|
|
|
libavutil/intfloat_readwrite.h \
|
|
|
|
libavutil/log.h \
|
|
|
|
libavutil/lzo.h \
|
|
|
|
libavutil/mathematics.h \
|
|
|
|
libavutil/md5.h \
|
|
|
|
libavutil/mem.h \
|
2009-08-12 10:43:17 +02:00
|
|
|
libavutil/pixfmt.h \
|
2008-07-28 23:17:38 +02:00
|
|
|
libavutil/rational.h \
|
2008-08-10 21:46:42 +02:00
|
|
|
libavutil/sha1.h \
|
|
|
|
libpostproc/postprocess.h \
|
|
|
|
libswscale/swscale.h
|
2008-07-28 23:17:38 +02:00
|
|
|
|
2007-07-29 02:46:08 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
CONFIGURE_ARGS+=--prefix="${PREFIX}" \
|
|
|
|
--mandir="${PREFIX}/man" \
|
2007-05-25 19:07:36 +02:00
|
|
|
--enable-shared \
|
2009-08-12 10:43:17 +02:00
|
|
|
--enable-gpl \
|
|
|
|
--enable-swscale \
|
2008-07-28 01:51:20 +02:00
|
|
|
--enable-postproc \
|
2009-08-12 10:43:17 +02:00
|
|
|
--enable-avfilter \
|
|
|
|
--enable-avfilter-lavf \
|
|
|
|
--enable-pthreads \
|
|
|
|
--enable-memalign-hack \
|
|
|
|
--cc="${CC}" \
|
2007-08-25 23:47:44 +02:00
|
|
|
--extra-cflags="${FFMPEG_CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
--extra-ldflags="-L${LOCALBASE}/lib ${FFMPEG_LDFLAGS}" \
|
2007-05-25 19:07:36 +02:00
|
|
|
--extra-libs="${PTHREAD_LIBS}" \
|
2009-08-12 10:43:17 +02:00
|
|
|
--disable-debug
|
2007-05-25 19:07:36 +02:00
|
|
|
SHLIB_VER= 1
|
|
|
|
PLIST_SUB= SHLIB_VER=${SHLIB_VER}
|
|
|
|
USE_LDCONFIG= yes
|
2003-12-08 04:26:41 +01:00
|
|
|
|
2010-03-10 12:00:00 +01:00
|
|
|
DOC_FILES= Changelog COPYING.GPLv2 COPYING.GPLv3 \
|
|
|
|
COPYING.LGPLv2.1 COPYING.LGPLv3 \
|
|
|
|
CREDITS INSTALL MAINTAINERS README RELEASE
|
2009-08-12 10:43:17 +02:00
|
|
|
# under doc subdirectory
|
|
|
|
DOC_DOCFILES= APIchanges avutil.txt faq.html ffmpeg-doc.html \
|
|
|
|
ffmpeg_powerpc_performance_evaluation_howto.txt \
|
|
|
|
ffplay-doc.html ffserver-doc.html general.html \
|
|
|
|
issue_tracker.txt optimization.txt \
|
|
|
|
snow.txt soc.txt swscale.txt TODO
|
2007-05-25 19:07:36 +02:00
|
|
|
PORTDOCS= *
|
2002-10-11 21:28:30 +02:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
.ifndef(WITHOUT_FFSERVER)
|
|
|
|
USE_RC_SUBR= ffserver
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# sse hardware vector support
|
2007-05-25 19:07:36 +02:00
|
|
|
.if (defined(MACHINE_CPU) && ${MACHINE_CPU:Msse} == "sse")
|
|
|
|
WITH_BUILTIN_VECTOR= yes
|
2009-08-12 10:43:17 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-sse
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# mmx support
|
|
|
|
.if ${MACHINE_CPU:Mmmx} == ""
|
|
|
|
CONFIGURE_ARGS+= --disable-mmx
|
|
|
|
WITHOUT_BUILTIN_VECTOR= yes
|
2004-12-05 19:12:41 +01:00
|
|
|
.endif
|
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# builtin vector, requires mmx
|
|
|
|
.if !defined(WITHOUT_BUILTIN_VECTOR) && defined(WITH_BUILTIN_VECTOR)
|
|
|
|
FFMPEG_CFLAGS+= -msse
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# PORTDOCS
|
2007-05-25 19:07:36 +02:00
|
|
|
.ifndef(NOPORTDOCS)
|
2009-08-12 10:43:17 +02:00
|
|
|
BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html
|
|
|
|
MAN1+= ffmpeg.1
|
|
|
|
. ifndef(WITHOUT_FFSERVER)
|
|
|
|
MAN1+= ffserver.1
|
|
|
|
. endif
|
2004-03-19 13:22:34 +01:00
|
|
|
.endif
|
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# optimizations
|
2007-05-25 19:07:36 +02:00
|
|
|
.ifdef(WITH_OPTIMIZED_CFLAGS)
|
2009-08-12 10:43:17 +02:00
|
|
|
CFLAGS:= ${CFLAGS:N-O*} -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer
|
2007-08-25 23:47:44 +02:00
|
|
|
.else
|
2009-08-12 10:43:17 +02:00
|
|
|
CFLAGS:= ${CFLAGS:N-O0} -O2
|
|
|
|
DEBUG_FLAGS+= -O2
|
2005-06-19 20:20:23 +02:00
|
|
|
.endif
|
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# amr
|
|
|
|
.ifdef(WITH_AMR_NB)
|
|
|
|
LIB_DEPENDS+= amrnb.3:${PORTSDIR}/audio/libamrnb
|
|
|
|
CONFIGURE_ARGS+= --enable-libamr-nb --enable-nonfree
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libamr-nb
|
|
|
|
.endif
|
2007-05-25 19:07:36 +02:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
.ifdef(WITH_AMR_WB)
|
|
|
|
LIB_DEPENDS+= amrwb.3:${PORTSDIR}/audio/libamrwb
|
|
|
|
CONFIGURE_ARGS+= --enable-libamr-wb --enable-nonfree
|
2007-05-25 19:07:36 +02:00
|
|
|
.else
|
2009-08-12 10:43:17 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-libamr-wb
|
2003-01-10 19:21:21 +01:00
|
|
|
.endif
|
2007-05-25 19:07:36 +02:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# dirac
|
|
|
|
.ifdef(WITH_DIRAC)
|
|
|
|
LIB_DEPENDS+= dirac_encoder.1:${PORTSDIR}/multimedia/dirac
|
|
|
|
CONFIGURE_ARGS+= --enable-libdirac
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libdirac
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# faac
|
2008-04-27 12:22:56 +02:00
|
|
|
.ifdef(WITH_FAAC)
|
2009-08-12 10:43:17 +02:00
|
|
|
LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac
|
2010-03-10 15:03:01 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-libfaac --enable-nonfree
|
2008-04-27 12:22:56 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libfaac
|
2002-10-11 21:28:30 +02:00
|
|
|
.endif
|
2008-04-27 12:22:56 +02:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# faad
|
2008-04-27 12:22:56 +02:00
|
|
|
.ifndef(WITHOUT_FAAD)
|
2009-08-12 10:43:17 +02:00
|
|
|
LIB_DEPENDS+= faad.2:${PORTSDIR}/audio/faad
|
2007-05-25 19:07:36 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-libfaad \
|
|
|
|
--enable-libfaadbin
|
2008-04-27 12:22:56 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libfaad
|
2004-02-28 20:40:31 +01:00
|
|
|
.endif
|
2008-04-27 12:22:56 +02:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# ffserver
|
|
|
|
.ifndef(WITHOUT_FFSERVER)
|
|
|
|
PLIST_SUB+= FFSERVER=""
|
2008-04-27 12:22:56 +02:00
|
|
|
.else
|
2009-08-12 10:43:17 +02:00
|
|
|
PLIST_SUB+= FFSERVER="@comment "
|
|
|
|
CONFIGURE_ARGS+= --disable-ffserver
|
2008-01-10 23:32:11 +01:00
|
|
|
.endif
|
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# gsm
|
|
|
|
.ifdef(WITH_GSM)
|
|
|
|
LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm
|
|
|
|
CONFIGURE_ARGS+= --enable-libgsm
|
2008-04-27 12:22:56 +02:00
|
|
|
.else
|
2009-08-12 10:43:17 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-libgsm
|
2008-01-10 23:32:11 +01:00
|
|
|
.endif
|
2008-04-27 12:22:56 +02:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# vhook
|
|
|
|
.if defined(WITH_VHOOK)
|
|
|
|
USE_EFL= imlib2
|
|
|
|
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
PLIST_SUB+= VHOOK=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-vhook
|
|
|
|
PLIST_SUB+= VHOOK="@comment "
|
2002-11-03 08:01:44 +01:00
|
|
|
.endif
|
2003-09-22 07:01:39 +02:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# ipv6
|
|
|
|
.ifndef(WITHOUT_IPV6)
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2008-04-27 12:22:56 +02:00
|
|
|
.else
|
2009-08-12 10:43:17 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
2003-09-22 07:01:39 +02:00
|
|
|
.endif
|
2009-08-12 10:43:17 +02:00
|
|
|
|
|
|
|
# mp3
|
2008-04-27 12:22:56 +02:00
|
|
|
.ifdef(WITH_LAME)
|
2009-08-12 10:43:17 +02:00
|
|
|
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame
|
2007-05-25 19:07:36 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-libmp3lame
|
2008-04-27 12:22:56 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libmp3lame
|
2003-01-10 19:21:21 +01:00
|
|
|
.endif
|
2008-04-27 12:22:56 +02:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# openjpeg
|
|
|
|
.ifdef(WITH_OPENJPEG)
|
|
|
|
LIB_DEPENDS+= openjpeg.2:${PORTSDIR}/graphics/openjpeg
|
|
|
|
CONFIGURE_ARGS+= --enable-libopenjpeg
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libopenjpeg
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# schroedinger
|
|
|
|
.ifndef(WITHOUT_SCHROEDINGER)
|
2010-03-24 19:44:22 +01:00
|
|
|
LIB_DEPENDS+= schroedinger-1.0.3:${PORTSDIR}/multimedia/schroedinger
|
2009-08-12 10:43:17 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-libschroedinger
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libschroedinger
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# sdl
|
2008-04-27 12:22:56 +02:00
|
|
|
.ifdef(WITH_SDL)
|
2007-05-25 19:07:36 +02:00
|
|
|
USE_SDL+= sdl
|
|
|
|
PLIST_FILES+= bin/ffplay
|
2007-07-29 15:54:18 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
MAN1+= ffplay.1
|
|
|
|
.endif
|
2003-09-08 01:52:59 +02:00
|
|
|
.else
|
2007-05-25 19:07:36 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-ffplay
|
2003-09-08 01:52:59 +02:00
|
|
|
.endif
|
2007-08-12 22:11:58 +02:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# speex
|
|
|
|
.ifdef(WITH_SPEEX)
|
|
|
|
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex
|
|
|
|
CONFIGURE_ARGS+= --enable-libspeex
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libspeex
|
|
|
|
.endif
|
2003-01-10 19:21:21 +01:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# theora
|
|
|
|
.ifndef(WITHOUT_THEORA)
|
|
|
|
LIB_DEPENDS+= theora.0:${PORTSDIR}/multimedia/libtheora
|
2007-05-25 19:07:36 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-libtheora
|
2008-04-27 12:22:56 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libtheora
|
2003-01-10 19:21:21 +01:00
|
|
|
.endif
|
2008-04-27 12:22:56 +02:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# vorbis
|
|
|
|
.ifndef(WITHOUT_VORBIS)
|
|
|
|
LIB_DEPENDS+= vorbisenc.2:${PORTSDIR}/audio/libvorbis
|
2007-05-25 19:07:36 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-libvorbis
|
|
|
|
FFMPEG_CFLAGS+= -I${LOCALBASE}/include/vorbis
|
2008-04-27 12:22:56 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libvorbis
|
2002-10-11 21:28:30 +02:00
|
|
|
.endif
|
2008-04-27 12:22:56 +02:00
|
|
|
|
2009-12-31 12:15:30 +01:00
|
|
|
# x11grab
|
|
|
|
.if defined(WITH_X11GRAB) && !defined(WITHOUT_X11)
|
|
|
|
USE_XORG= x11 xext
|
|
|
|
CONFIGURE_ARGS+= --enable-x11grab
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-x11grab
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
2007-05-25 19:07:36 +02:00
|
|
|
# x264
|
2007-10-09 21:38:24 +02:00
|
|
|
.ifndef(WITHOUT_X264)
|
2009-08-12 10:43:17 +02:00
|
|
|
LIB_DEPENDS+= x264.65:${PORTSDIR}/multimedia/x264
|
2007-07-29 02:46:08 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-libx264
|
2007-10-09 21:38:24 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libx264
|
2004-12-05 19:12:41 +01:00
|
|
|
.endif
|
2004-02-28 20:40:31 +01:00
|
|
|
|
2009-08-12 10:43:17 +02:00
|
|
|
# xvid
|
|
|
|
.ifndef(WITHOUT_XVID)
|
|
|
|
LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid
|
2007-07-29 02:46:08 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-libxvid
|
2008-04-27 12:22:56 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libxvid
|
2007-06-12 11:00:26 +02:00
|
|
|
.endif
|
|
|
|
|
2008-04-27 12:22:56 +02:00
|
|
|
pre-configure:
|
|
|
|
.if defined(WITHOUT_OGG) && (!defined(WITHOUT_VORBIS) || !defined(WITHOUT_THEORA))
|
|
|
|
@${ECHO_MSG} WITH_VORBIS or WITH_THEORA defined, libogg will be built
|
2004-12-05 19:12:41 +01:00
|
|
|
.endif
|
2001-09-25 21:27:11 +02:00
|
|
|
|
|
|
|
post-patch:
|
2009-08-12 10:43:17 +02:00
|
|
|
# faad compat
|
2007-07-29 02:46:08 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|faacD|NeAACD|' ${WRKSRC}/libavcodec/libfaad.c
|
2007-05-25 19:07:36 +02:00
|
|
|
# {C,LD}FLAGS safeness
|
2009-08-12 10:43:17 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|$$(LIBDIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
|
|
|
|
${WRKSRC}/subdir.mak
|
2007-06-12 11:00:26 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/etc/ffserver.conf|${PREFIX}/etc/ffserver.conf|' \
|
|
|
|
${WRKSRC}/ffserver.c
|
2007-05-25 19:07:36 +02:00
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e "s|(EXTRALIBS[[:space:]]*=)|\1-L${LOCALBASE}/lib |g; \
|
2009-08-12 10:43:17 +02:00
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g; \
|
2007-05-25 19:07:36 +02:00
|
|
|
s|-pthread|${PTHREAD_LIBS}|g" \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2009-08-12 10:43:17 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-ldl||; s|$$(LIBMAJOR)|${SHLIB_VER}|g;' \
|
2007-05-25 19:07:36 +02:00
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2003-09-08 01:52:59 +02:00
|
|
|
.ifdef(WITH_SDL)
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|sdl-config|${SDL_CONFIG}|g' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2007-05-25 19:07:36 +02:00
|
|
|
@${FIND} ${WRKSRC} -type f | \
|
|
|
|
${XARGS} -n 10 ${REINPLACE_CMD} -E \
|
|
|
|
-e 's|#include <SDL|#include <SDL/SDL|'
|
|
|
|
.endif
|
2001-09-25 21:27:11 +02:00
|
|
|
|
2007-05-25 19:07:36 +02:00
|
|
|
post-configure:
|
2007-06-12 11:00:26 +02:00
|
|
|
.ifdef(WITHOUT_THEORA)
|
2007-05-25 19:07:36 +02:00
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|^(CONFIG_LIBTHEORA).*$$|\1=no|' \
|
|
|
|
${WRKSRC}/config.mak
|
|
|
|
.endif
|
2007-07-29 02:46:08 +02:00
|
|
|
|
2001-09-25 21:27:11 +02:00
|
|
|
post-install:
|
2009-08-12 10:43:17 +02:00
|
|
|
.ifndef(WITHOUT_FFSERVER)
|
2007-06-12 04:06:49 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf ${PREFIX}/etc/ffserver.conf-dist
|
|
|
|
if [ ! -f ${PREFIX}/etc/ffserver.conf ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf ${PREFIX}/etc; \
|
|
|
|
fi
|
2009-08-12 10:43:17 +02:00
|
|
|
.endif
|
2001-09-25 21:27:11 +02:00
|
|
|
.ifndef(NOPORTDOCS)
|
2007-06-12 04:06:49 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2008-04-27 12:22:56 +02:00
|
|
|
.for FILE in ${DOC_FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
2001-09-25 21:27:11 +02:00
|
|
|
.endfor
|
2008-04-27 12:22:56 +02:00
|
|
|
.for FILE in ${DOC_DOCFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR}
|
2001-09-25 21:27:11 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
2008-07-28 23:17:38 +02:00
|
|
|
${MKDIR} ${PREFIX}/include/ffmpeg
|
|
|
|
.for FILE in ${COMPAT_HEADERS}
|
|
|
|
${CP} -f ${PREFIX}/include/${FILE} ${PREFIX}/include/ffmpeg/${FILE:C,^[^/]+/([^/]+).*,\1,}
|
|
|
|
.endfor
|
2008-08-05 05:02:39 +02:00
|
|
|
${MKDIR} ${PREFIX}/include/postproc
|
|
|
|
${CP} -f ${PREFIX}/include/libpostproc/postprocess.h \
|
|
|
|
${PREFIX}/include/postproc/
|
2003-12-08 04:26:41 +01:00
|
|
|
|
2002-10-11 21:28:30 +02:00
|
|
|
.include <bsd.port.post.mk>
|