1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Add faad support, unbreak imlib2 support, and fix the pkg-plist. All topped

with a PORTREVISION bump.

Approved by:	no response from maintainer
This commit is contained in:
Adam Weinberger 2004-02-28 19:40:31 +00:00
parent 692a8c38c8
commit 14f5ccb8ee
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=102445
4 changed files with 40 additions and 6 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= ffmpeg
PORTVERSION= 0.4.8
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= multimedia audio net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ffmpeg
@ -78,6 +78,9 @@ WITH_MP3=yes
.if exists(${LOCALBASE}/lib/libvorbisenc.so.2)
WITH_VORBIS=yes
.endif
.if exists(${LOCALBASE}/lib/libfaad.so.0)
WITH_FAAD=yes
.endif
## support activation
##
@ -129,11 +132,13 @@ CONFIGURE_ARGS+= --enable-mp3lame
.ifdef(WITH_OPTIMIZED_CFLAGS)
CONFIGURE_ARGS+= --extra-cflags="-fPIC -DPIC -I${LOCALBASE}/include \
-I${X11BASE}/include \
-ffast-math -fomit-frame-pointer"
-ffast-math -fomit-frame-pointer" \
--extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm"
.else
CONFIGURE_ARGS+= --extra-cflags="-fPIC -DPIC -I${LOCALBASE}/include \
-I${X11BASE}/include" \
--disable-opts
--disable-opts"
--extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm "
.endif
## vhook
@ -150,6 +155,12 @@ LIB_DEPENDS+= vorbisenc.2:${PORTSDIR}/audio/libvorbis
CONFIGURE_ARGS+= --enable-vorbis
.endif
## faad
.ifdef(WITH_FAAD)
LIB_DEPENDS+= faad.0:${PORTSDIR}/audio/faad
CONFIGURE_ARGS+= --enable-faad
.endif
pre-everything::
.ifndef(WITH_FREETYPE2)
@ -185,6 +196,10 @@ pre-everything::
@${ECHO_MSG} 'Define WITH_VORBIS to enable libvorbisenc VORBIS codec'
@${ECHO_MSG}
.endif
.ifndef(WITH_FAAD)
@${ECHO_MSG} 'Define WITH_FAAD to enable libfaad codec'
@${ECHO_MSG}
.endif
.if ${ARCH} == "i386"
.if !(defined(WITH_BKTR_FORMAT) && defined(WITH_BKTR_DEV))
@${ECHO_MSG}

View File

@ -14,6 +14,8 @@ lib/libavcodec.a
lib/libavcodec.so
lib/libavcodec.so.%%SHLIB_VERSION%%
lib/libavformat.a
lib/libavformat.so
lib/libavformat.so.%%SHLIB_VERSION%%
%%VHOOK%%%%DRAWTEXT%%lib/vhook/drawtext.so
%%VHOOK%%lib/vhook/fish.so
%%VHOOK%%%%IMLIB2%%lib/vhook/imlib2.so

View File

@ -7,7 +7,7 @@
PORTNAME= ffmpeg
PORTVERSION= 0.4.8
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= multimedia audio net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ffmpeg
@ -78,6 +78,9 @@ WITH_MP3=yes
.if exists(${LOCALBASE}/lib/libvorbisenc.so.2)
WITH_VORBIS=yes
.endif
.if exists(${LOCALBASE}/lib/libfaad.so.0)
WITH_FAAD=yes
.endif
## support activation
##
@ -129,11 +132,13 @@ CONFIGURE_ARGS+= --enable-mp3lame
.ifdef(WITH_OPTIMIZED_CFLAGS)
CONFIGURE_ARGS+= --extra-cflags="-fPIC -DPIC -I${LOCALBASE}/include \
-I${X11BASE}/include \
-ffast-math -fomit-frame-pointer"
-ffast-math -fomit-frame-pointer" \
--extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm"
.else
CONFIGURE_ARGS+= --extra-cflags="-fPIC -DPIC -I${LOCALBASE}/include \
-I${X11BASE}/include" \
--disable-opts
--disable-opts"
--extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm "
.endif
## vhook
@ -150,6 +155,12 @@ LIB_DEPENDS+= vorbisenc.2:${PORTSDIR}/audio/libvorbis
CONFIGURE_ARGS+= --enable-vorbis
.endif
## faad
.ifdef(WITH_FAAD)
LIB_DEPENDS+= faad.0:${PORTSDIR}/audio/faad
CONFIGURE_ARGS+= --enable-faad
.endif
pre-everything::
.ifndef(WITH_FREETYPE2)
@ -185,6 +196,10 @@ pre-everything::
@${ECHO_MSG} 'Define WITH_VORBIS to enable libvorbisenc VORBIS codec'
@${ECHO_MSG}
.endif
.ifndef(WITH_FAAD)
@${ECHO_MSG} 'Define WITH_FAAD to enable libfaad codec'
@${ECHO_MSG}
.endif
.if ${ARCH} == "i386"
.if !(defined(WITH_BKTR_FORMAT) && defined(WITH_BKTR_DEV))
@${ECHO_MSG}

View File

@ -14,6 +14,8 @@ lib/libavcodec.a
lib/libavcodec.so
lib/libavcodec.so.%%SHLIB_VERSION%%
lib/libavformat.a
lib/libavformat.so
lib/libavformat.so.%%SHLIB_VERSION%%
%%VHOOK%%%%DRAWTEXT%%lib/vhook/drawtext.so
%%VHOOK%%lib/vhook/fish.so
%%VHOOK%%%%IMLIB2%%lib/vhook/imlib2.so