diff options
author | ahze <ahze@FreeBSD.org> | 2007-05-02 05:50:11 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2007-05-02 05:50:11 +0800 |
commit | dfccd6f44a347092dddccc43f05d5ebae18b5458 (patch) | |
tree | 135d6d3d1238c67906f55b87b246c909a398890d /multimedia/ffmpeg-devel | |
parent | e76407f021539f3ec09d5fb3b3b7c8b955abf0f3 (diff) | |
download | freebsd-ports-gnome-dfccd6f44a347092dddccc43f05d5ebae18b5458.tar.gz freebsd-ports-gnome-dfccd6f44a347092dddccc43f05d5ebae18b5458.tar.zst freebsd-ports-gnome-dfccd6f44a347092dddccc43f05d5ebae18b5458.zip |
- Build with dynamic libdca instead of static libdts
Diffstat (limited to 'multimedia/ffmpeg-devel')
-rw-r--r-- | multimedia/ffmpeg-devel/Makefile | 5 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/files/patch-configure | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/multimedia/ffmpeg-devel/Makefile b/multimedia/ffmpeg-devel/Makefile index 7f8c4d220132..7f603594b7f6 100644 --- a/multimedia/ffmpeg-devel/Makefile +++ b/multimedia/ffmpeg-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= ffmpeg DISTVERSION= 2007-04-29 +PORTREVISION= 1 CATEGORIES= multimedia audio ipv6 net MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= ahze @@ -83,9 +84,8 @@ FFMPEG_LDFLAGS+= -la52 CONFIGURE_ARGS+= --disable-liba52 .endif ## dts -.ifdef(WITH_DTS) || exists(${LOCALBASE}/lib/libdts.a) +.ifdef(WITH_DTS) || exists(${LOCALBASE}/lib/libdca.a) LIB_DEPENDS+= dca.0:${PORTSDIR}/multimedia/libdca - CONFIGURE_ARGS+= --enable-libdts .endif ## faac @@ -311,6 +311,7 @@ post-patch: post-configure: .ifdef(WITH_DTS) @${REINPLACE_CMD} -E \ + -e 's|-ldts|${LOCALBASE}/lib/libdts_pic.a|' \ -e 's|(-lx264)|-L${LOCALBASE}/lib \1|' \ ${WRKSRC}/config.mak \ ${WRKSRC}/libavcodec/Makefile diff --git a/multimedia/ffmpeg-devel/files/patch-configure b/multimedia/ffmpeg-devel/files/patch-configure index 3ce966240eac..654914693619 100644 --- a/multimedia/ffmpeg-devel/files/patch-configure +++ b/multimedia/ffmpeg-devel/files/patch-configure @@ -1,5 +1,5 @@ --- configure.orig Fri Apr 27 03:13:50 2007 -+++ configure Mon Apr 30 09:59:52 2007 ++++ configure Tue May 1 06:17:09 2007 @@ -208,11 +208,11 @@ # "tr '[a-z]' '[A-Z]'" is a workaround for Solaris tr not grokking "tr a-z A-Z" @@ -32,6 +32,15 @@ ;; # armv4l is a subset of armv[567]*l arm|armv[4567]*l) +@@ -1591,7 +1585,7 @@ + enabled amr_nb && require libamrnb amrnb/interf_dec.h Speech_Decode_Frame_init -lamrnb -lm + enabled amr_wb && require libamrwb amrwb/dec_if.h D_IF_init -lamrwb -lm + enabled liba52 && require liba52 a52dec/a52.h a52_init -la52 +-enabled libdts && require libdts dts.h dts_init -ldts -lm ++enabled libdts && require libdca dca.h dca_init -ldca -lm + enabled libgsm && require libgsm gsm.h gsm_create -lgsm + enabled libmp3lame && require LAME lame/lame.h lame_init -lmp3lame -lm + enabled libtheora && require libtheora theora/theora.h theora_info_init -ltheora -logg @@ -1749,14 +1743,14 @@ # not all compilers support -Os test "$optimize" = "small" && check_cflags -Os |