aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/ffmpeg
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2005-06-20 02:20:23 +0800
committerlioux <lioux@FreeBSD.org>2005-06-20 02:20:23 +0800
commitd79751fb71b1b4b8d986c33ac8c07a34a784d6a1 (patch)
tree522d4ef8146efa7614e37746fa8f4038e1cf5512 /multimedia/ffmpeg
parent4aafa8ffadef641238f7358cefbef1020e158110 (diff)
downloadfreebsd-ports-gnome-d79751fb71b1b4b8d986c33ac8c07a34a784d6a1.tar.gz
freebsd-ports-gnome-d79751fb71b1b4b8d986c33ac8c07a34a784d6a1.tar.zst
freebsd-ports-gnome-d79751fb71b1b4b8d986c33ac8c07a34a784d6a1.zip
Fix build on OSVERSION < 500000 by disabling POSTPROCESS library
building. The compiler does not support the assembler code. Tested in tinderbox
Diffstat (limited to 'multimedia/ffmpeg')
-rw-r--r--multimedia/ffmpeg/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile
index fd008329a32a..19ad4a8b1443 100644
--- a/multimedia/ffmpeg/Makefile
+++ b/multimedia/ffmpeg/Makefile
@@ -68,6 +68,14 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-bktr-patch-libavformat::Makefile
#. endif
.endif
+##
+## system version
+##
+.if ${OSVERSION} < 500000
+# postprocess libraries cannot be built
+OSVERSION4_DONT_WORK=yes
+.endif
+
## lib detection
##
##
@@ -217,6 +225,7 @@ CONFIGURE_ARGS+= --enable-shared-pp
PLIST_FILES+= include/ffmpeg/postproc/postprocess.h
PLIST_DIRS+= include/ffmpeg/postproc
. ifdef(GPLLIBS)
+. ifndef(OSVERSION4_DONT_WORK)
CONFIGURE_ARGS+= --enable-pp
LIB_POSTPROC= lib/libpostproc.a \
@@ -224,6 +233,7 @@ LIB_POSTPROC= lib/libpostproc.a \
lib/libpostproc.so.0 \
lib/libpostproc.so.${SHLIB_VERSION}
PLIST_FILES+= ${LIB_POSTPROC}
+. endif # OSVERSION4_DONT_WORK
. endif
.endif
## ffserver
@@ -362,7 +372,9 @@ post-patch:
pre-build:
.ifndef(WITHOUT_POSTPROCESS)
+. ifndef(OSVERSION4_DONT_WORK)
@cd ${WRKSRC}/libavcodec/libpostproc && ${GMAKE}
+. endif # OSVERSION4_DONT_WORK
.endif
post-install:
@@ -400,12 +412,14 @@ post-install:
@${INSTALL_DATA} ${WRKSRC}/libavcodec/libpostproc/postprocess.h \
${PREFIX}/include/ffmpeg/postproc/postprocess.h
. ifdef(GPLLIBS)
+. ifndef(OSVERSION4_DONT_WORK)
. for lib in libpostproc.a libpostproc.so
@${INSTALL_DATA} ${WRKSRC}/libavcodec/libpostproc/${lib} \
${PREFIX}/lib
. endfor
@${LN} -sf libpostproc.so ${PREFIX}/lib/libpostproc.so.0
@${LN} -sf libpostproc.so ${PREFIX}/lib/libpostproc.so.${SHLIB_VERSION}
+. endif # OSVERSION4_DONT_WORK
. endif
.endif