aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libvpx
diff options
context:
space:
mode:
authorashish <ashish@FreeBSD.org>2013-10-25 15:11:22 +0800
committerashish <ashish@FreeBSD.org>2013-10-25 15:11:22 +0800
commitcb44276f21fbeda7033eec3b7318d01f1c032abb (patch)
tree26bd13a16a6bf00aa9ddf1e6fd486ce6659bb8e8 /multimedia/libvpx
parent661cb63b4f42b4750faa99cba46863654d6208dc (diff)
downloadfreebsd-ports-gnome-cb44276f21fbeda7033eec3b7318d01f1c032abb.tar.gz
freebsd-ports-gnome-cb44276f21fbeda7033eec3b7318d01f1c032abb.tar.zst
freebsd-ports-gnome-cb44276f21fbeda7033eec3b7318d01f1c032abb.zip
- Add staging support
- Fix ownership of installed files[0] - Fix building on systems with non UTF-8 locale[1] - Fix building on 10.x and later PR: ports/182693[0], ports/169369[1] Submitted by: Herbert J. Skuhra <h.skuhra@gmail.com> (via private mail)[1]
Diffstat (limited to 'multimedia/libvpx')
-rw-r--r--multimedia/libvpx/Makefile18
-rw-r--r--multimedia/libvpx/distinfo4
-rw-r--r--multimedia/libvpx/files/patch-build_make_Makefile16
-rw-r--r--multimedia/libvpx/files/patch-build_make_rtcd.sh9
-rw-r--r--multimedia/libvpx/files/patch-libs.mk13
-rw-r--r--multimedia/libvpx/pkg-plist4
6 files changed, 43 insertions, 21 deletions
diff --git a/multimedia/libvpx/Makefile b/multimedia/libvpx/Makefile
index 01a8f058f6d9..d90a40a1c52b 100644
--- a/multimedia/libvpx/Makefile
+++ b/multimedia/libvpx/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= libvpx
-PORTVERSION= 1.1.0
+PORTVERSION= 1.2.0
CATEGORIES= multimedia
MASTER_SITES= GOOGLE_CODE
DISTNAME= ${PORTNAME}-v${PORTVERSION}
@@ -10,6 +10,9 @@ DISTNAME= ${PORTNAME}-v${PORTVERSION}
MAINTAINER= ashish@FreeBSD.org
COMMENT= VP8 Codec SDK
+LICENSE= BSD
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
yasm:${PORTSDIR}/devel/yasm
@@ -20,9 +23,6 @@ HAS_CONFIGURE= yes
USE_PERL5= build
USE_LDCONFIG= yes
-LICENSE= BSD
-LICENSE_FILE= ${WRKSRC}/LICENSE
-
OPTIONS_DEFINE= DEBUG POSTPROC RUNTIME THREADS SHARED
OPTIONS_DEFAULT= POSTPROC RUNTIME THREADS SHARED
POSTPROC_DESC= Enable postprocessing
@@ -31,11 +31,15 @@ SHARED_DESC= Enable shared-library support
ALL_TARGET=
CONFIGURE_ARGS+= --enable-pic --disable-install-srcs --enable-vp8 --disable-install-docs
-MAKE_ARGS+= DIST_DIR=${PREFIX} verbose=yes
+MAKE_ARGS+= DIST_DIR=${PREFIX} verbose=yes DESTDIR=${STAGEDIR}
+MAKE_ENV= LC_ALL=C
-NO_STAGE= yes
.include <bsd.port.options.mk>
+.if ${OSVERSION} >= 1000000
+CONFIGURE_ARGS+= --disable-unit-tests
+.endif
+
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-debug
.endif
@@ -76,6 +80,8 @@ IGNORE= no support for ${ARCH} the moment. testing/patches are welcome
post-patch:
@${REINPLACE_CMD} 's|\(link_with_cc\)=gcc|\1=$${CC}|' \
${WRKSRC}/build/make/configure.sh
+ @${REINPLACE_CMD} -e 's|%%DESTDIR%%|${STAGEDIR}|g' \
+ ${WRKSRC}/build/make/Makefile ${WRKSRC}/libs.mk
@${GREP} -Rl '^#!/bin/bash' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
-e 's,#!/bin/bash,#!/usr/bin/env bash,g'
@${GREP} -Rl -- '-l\?pthread' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} -E \
diff --git a/multimedia/libvpx/distinfo b/multimedia/libvpx/distinfo
index 9463886ec355..0c98e3d47740 100644
--- a/multimedia/libvpx/distinfo
+++ b/multimedia/libvpx/distinfo
@@ -1,2 +1,2 @@
-SHA256 (libvpx-v1.1.0.tar.bz2) = 9ce074cf4b3bcd9a49ff93e05485b71c273bfc3685a305e55a0e7fa51beb72c5
-SIZE (libvpx-v1.1.0.tar.bz2) = 1653485
+SHA256 (libvpx-v1.2.0.tar.bz2) = 5ef0c650b2daa62085eb8105a7a4273f3e987db53c5ec97fd51d1b6511e5aa06
+SIZE (libvpx-v1.2.0.tar.bz2) = 1714121
diff --git a/multimedia/libvpx/files/patch-build_make_Makefile b/multimedia/libvpx/files/patch-build_make_Makefile
new file mode 100644
index 000000000000..68609ffff779
--- /dev/null
+++ b/multimedia/libvpx/files/patch-build_make_Makefile
@@ -0,0 +1,16 @@
+
+$FreeBSD$
+
+--- build/make/Makefile.orig
++++ build/make/Makefile
+@@ -230,8 +230,8 @@
+ define install_map_template
+ $(DIST_DIR)/$(1): $(2)
+ $(if $(quiet),@echo " [INSTALL] $$@")
+- $(qexec)mkdir -p $$(dir $$@)
+- $(qexec)cp -p $$< $$@
++ $(qexec)install -d %%DESTDIR%%$$(dir $$@)
++ $(qexec)install -p $$< %%DESTDIR%%$$(dir $$@)
+ endef
+
+ define archive_template
diff --git a/multimedia/libvpx/files/patch-build_make_rtcd.sh b/multimedia/libvpx/files/patch-build_make_rtcd.sh
deleted file mode 100644
index 47102f6f4583..000000000000
--- a/multimedia/libvpx/files/patch-build_make_rtcd.sh
+++ /dev/null
@@ -1,9 +0,0 @@
---- build/make/rtcd.sh.orig 2012-06-24 13:12:00.000000000 +0200
-+++ build/make/rtcd.sh 2012-06-24 13:13:01.000000000 +0200
-@@ -1,5 +1,6 @@
- #!/bin/sh
- self=$0
-+LANG=C
-
- usage() {
- cat <<EOF >&2
diff --git a/multimedia/libvpx/files/patch-libs.mk b/multimedia/libvpx/files/patch-libs.mk
index 7249b76bce53..a6cfaf19facd 100644
--- a/multimedia/libvpx/files/patch-libs.mk
+++ b/multimedia/libvpx/files/patch-libs.mk
@@ -3,9 +3,18 @@ $FreeBSD$
--- libs.mk.orig
+++ libs.mk
-@@ -242,8 +242,8 @@
- $(qexec)echo 'Conflicts:' >> $@
+@@ -209,7 +209,7 @@
+ $(addprefix $(BUILD_PFX),$(notdir $(LIBVPX_SO_SYMLINKS))),\
+ $(BUILD_PFX)$(LIBVPX_SO)))
+ $(eval $(call libvpx_symlink_template,\
+- $(addprefix $(DIST_DIR)/,$(LIBVPX_SO_SYMLINKS)),\
++ $(addprefix $(DESTDIR)/$(DIST_DIR)/,$(LIBVPX_SO_SYMLINKS)),\
+ $(DIST_DIR)/$(LIBSUBDIR)/$(LIBVPX_SO)))
+
+ INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBVPX_SO_SYMLINKS)
+@@ -232,8 +232,8 @@
$(qexec)echo 'Libs: -L$${libdir} -lvpx' >> $@
+ $(qexec)echo 'Libs.private: -lm -pthread' >> $@
$(qexec)echo 'Cflags: -I$${includedir}' >> $@
-INSTALL-LIBS-yes += $(LIBSUBDIR)/pkgconfig/vpx.pc
-INSTALL_MAPS += $(LIBSUBDIR)/pkgconfig/%.pc %.pc
diff --git a/multimedia/libvpx/pkg-plist b/multimedia/libvpx/pkg-plist
index 44956cf0d7e9..8043e07ffff5 100644
--- a/multimedia/libvpx/pkg-plist
+++ b/multimedia/libvpx/pkg-plist
@@ -15,6 +15,6 @@ lib/libvpx.a
libdata/pkgconfig/vpx.pc
%%SHARED%%lib/libvpx.so
%%SHARED%%lib/libvpx.so.1
-%%SHARED%%lib/libvpx.so.1.1
-%%SHARED%%lib/libvpx.so.1.1.0
+%%SHARED%%lib/libvpx.so.1.2
+%%SHARED%%lib/libvpx.so.1.2.0
@dirrm include/vpx