mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
initial bep and patch files for libvpx, from michaelvoliveira.
This commit is contained in:
23
media-libs/libvpx/libvpx-0.9.2-git.bep
Normal file
23
media-libs/libvpx/libvpx-0.9.2-git.bep
Normal file
@@ -0,0 +1,23 @@
|
||||
DESCRIPTION="libvpx - WebM VP8 Codec SDK"
|
||||
HOMEPAGE="http://www.webmproject.org"
|
||||
SRC_URI="git+git://review.webmproject.org/libvpx.git"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd libvpx-0.9.2-git
|
||||
./configure --prefix=/boot/common \
|
||||
--enable-pic \
|
||||
--enable-vp8
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd libvpx-0.9.2-git
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="BSD (3-clause)"
|
||||
COPYRIGHT="2009-2010 Google Inc.,
|
||||
The Mozilla Foundation and
|
||||
The Xiph.Org Foundation"
|
||||
46
media-libs/libvpx/patches/libvpx-0.9.2-git.patch
Normal file
46
media-libs/libvpx/patches/libvpx-0.9.2-git.patch
Normal file
@@ -0,0 +1,46 @@
|
||||
diff -Naur libvpx-0.9.2-git/build/make/configure.sh libvpx-0.9.2-git-haiku/build/make/configure.sh
|
||||
--- libvpx-0.9.2-git/build/make/configure.sh 2010-10-01 11:22:21.319815680 +0000
|
||||
+++ libvpx-0.9.2-git-haiku/build/make/configure.sh 2010-10-01 11:30:22.888406016 +0000
|
||||
@@ -905,8 +908,14 @@
|
||||
# Almost every platform uses pthreads.
|
||||
if enabled multithread; then
|
||||
case ${toolchain} in
|
||||
- *-win*);;
|
||||
- *) check_header pthread.h && add_extralibs -lpthread
|
||||
+ *-win*)
|
||||
+ ;;
|
||||
+ *linux*|*bsd*)
|
||||
+ check_header pthread.h && add_extralibs -lpthread
|
||||
+ ;;
|
||||
+ *-haiku*)
|
||||
+ check_header pthread.h
|
||||
+ ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
diff -Naur libvpx-0.9.2-git/examples.mk libvpx-0.9.2-git-haiku/examples.mk
|
||||
--- libvpx-0.9.2-git/examples.mk 2010-10-01 11:22:21.332398592 +0000
|
||||
+++ libvpx-0.9.2-git-haiku/examples.mk 2010-10-01 11:19:40.000000000 +0000
|
||||
@@ -72,7 +72,9 @@
|
||||
|
||||
|
||||
# Handle extra library flags depending on codec configuration
|
||||
+ifeq ($(TOOLCHAIN),Unix)
|
||||
CODEC_EXTRA_LIBS-$(CONFIG_VP8) += m
|
||||
+endif
|
||||
|
||||
#
|
||||
# End of specified files. The rest of the build rules should happen
|
||||
diff -Naur libvpx-0.9.2-git/libs.mk libvpx-0.9.2-git-haiku/libs.mk
|
||||
--- libvpx-0.9.2-git/libs.mk 2010-10-01 11:22:21.525074432 +0000
|
||||
+++ libvpx-0.9.2-git-haiku/libs.mk 2010-10-01 11:13:12.000000000 +0000
|
||||
@@ -182,6 +182,9 @@
|
||||
LIBS-$(BUILD_LIBVPX_SO) += $(BUILD_PFX)$(LIBVPX_SO)
|
||||
$(BUILD_PFX)$(LIBVPX_SO): $(LIBVPX_OBJS) libvpx.ver
|
||||
$(BUILD_PFX)$(LIBVPX_SO): extralibs += -lm -pthread
|
||||
+ifeq ($(TOOLCHAIN),Haiku)
|
||||
+ extralibs +=
|
||||
+endif
|
||||
$(BUILD_PFX)$(LIBVPX_SO): SONAME = libvpx.so.$(VERSION_MAJOR)
|
||||
$(BUILD_PFX)$(LIBVPX_SO): SO_VERSION_SCRIPT = libvpx.ver
|
||||
LIBVPX_SO_SYMLINKS := $(addprefix $(LIBSUBDIR)/, \
|
||||
Reference in New Issue
Block a user