mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
create bsd12 branch
This commit is contained in:
58
media/libvpx/Makefile
Normal file
58
media/libvpx/Makefile
Normal file
@@ -0,0 +1,58 @@
|
||||
# Created by: Ashish SHUKLA <ashish@FreeBSD.org>
|
||||
# $FreeBSD: head/multimedia/libvpx/Makefile 437439 2017-04-01 15:23:30Z gerald $
|
||||
|
||||
PORTNAME= libvpx
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.6.1
|
||||
CATEGORIES= multimedia
|
||||
|
||||
MAINTAINER= jbeich@FreeBSD.org
|
||||
COMMENT= VP8/VP9 Codec SDK
|
||||
|
||||
BUILD_DEPENDS= yasm:devel/yasm
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= webmproject
|
||||
|
||||
USES= compiler:c11 cpe gmake perl5 shebangfix
|
||||
HAS_CONFIGURE= yes
|
||||
USE_PERL5= build
|
||||
USE_LDCONFIG= yes
|
||||
SHEBANG_FILES= build/make/ads2gas.pl
|
||||
CONFIGURE_ENV= ASFLAGS="${ASFLAGS}"
|
||||
# Only explicitly list ARCHs with SIMD optimizations
|
||||
CONFIGURE_ARGS_aarch64= --target=arm64-linux-gcc
|
||||
CONFIGURE_ARGS_amd64= --target=x86_64-linux-gcc
|
||||
CONFIGURE_ARGS_i386= --target=x86-linux-gcc
|
||||
|
||||
.if ${CFLAGS:M-march=armv[78]*}
|
||||
CONFIGURE_ARGS+= --target=armv7-linux-gcc
|
||||
ASFLAGS+= -meabi=5
|
||||
.endif
|
||||
|
||||
CONFIGURE_ARGS+=${CONFIGURE_ARGS_${ARCH}}
|
||||
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
||||
CONFIGURE_ARGS+= --disable-install-docs
|
||||
CONFIGURE_ARGS+= --disable-install-srcs
|
||||
CONFIGURE_ARGS+= --enable-pic
|
||||
CONFIGURE_ARGS+= --enable-vp8
|
||||
CONFIGURE_ARGS+= --enable-vp9
|
||||
MAKE_ARGS+= verbose=yes
|
||||
ALL_TARGET= # empty
|
||||
|
||||
#CONFIGURE_ARGS+= --disable-multithread
|
||||
CONFIGURE_ARGS+= --disable-unit-tests
|
||||
#CONFIGURE_ARGS+= --enable-debug
|
||||
CONFIGURE_ARGS+= --enable-multi-res-encoding
|
||||
CONFIGURE_ARGS+= --enable-postproc --enable-vp9-postproc --enable-vp9-temporal-denoising
|
||||
CONFIGURE_ARGS+= --disable-runtime-cpu-detect
|
||||
CONFIGURE_ARGS+= --enable-shared
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} 's|\(link_with_cc\)=gcc|\1=$${CC}|' \
|
||||
${WRKSRC}/build/make/configure.sh
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/vpx*
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
media/libvpx/distinfo
Normal file
3
media/libvpx/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1484252847
|
||||
SHA256 (webmproject-libvpx-v1.6.1_GH0.tar.gz) = cda8bb6f0e4848c018177d3a576fa83ed96d762554d7010fe4cfb9d70c22e588
|
||||
SIZE (webmproject-libvpx-v1.6.1_GH0.tar.gz) = 2493087
|
||||
22
media/libvpx/files/patch-x-build-make-Makefile
Normal file
22
media/libvpx/files/patch-x-build-make-Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
--- ./build/make/Makefile.orig 2017-01-12 22:27:27.000000000 +0200
|
||||
+++ ./build/make/Makefile 2017-05-08 10:05:46.772184000 +0200
|
||||
@@ -273,8 +273,8 @@
|
||||
define install_map_template
|
||||
$(DIST_DIR)/$(1): $(2)
|
||||
$(if $(quiet),@echo " [INSTALL] $$@")
|
||||
- $(qexec)mkdir -p $$(dir $$@)
|
||||
- $(qexec)cp -p $$< $$@
|
||||
+ $(qexec)install -d $$(dir $$@)
|
||||
+ $(qexec)install -p $$< $$(dir $$@)
|
||||
endef
|
||||
|
||||
define archive_template
|
||||
@@ -380,7 +380,7 @@
|
||||
.libs: $(LIBS)
|
||||
@touch $@
|
||||
$(foreach lib,$(filter %_g.a,$(LIBS)),$(eval $(call archive_template,$(lib))))
|
||||
-$(foreach lib,$(filter %so.$(SO_VERSION_MAJOR).$(SO_VERSION_MINOR).$(SO_VERSION_PATCH),$(LIBS)),$(eval $(call so_template,$(lib))))
|
||||
+$(foreach lib,$(filter %so.$(SO_VERSION_MAJOR),$(LIBS)),$(eval $(call so_template,$(lib))))
|
||||
$(foreach lib,$(filter %$(SO_VERSION_MAJOR).dylib,$(LIBS)),$(eval $(call dl_template,$(lib))))
|
||||
$(foreach lib,$(filter %$(SO_VERSION_MAJOR).dll,$(LIBS)),$(eval $(call dll_template,$(lib))))
|
||||
|
||||
11
media/libvpx/files/patch-x-build-make-configure.sh
Normal file
11
media/libvpx/files/patch-x-build-make-configure.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
--- ./build/make/configure.sh.orig 2017-05-08 10:05:46.776322000 +0200
|
||||
+++ ./build/make/configure.sh 2017-05-08 10:07:46.435874000 +0200
|
||||
@@ -1363,7 +1363,7 @@
|
||||
if enabled rvct; then
|
||||
enabled small && check_add_cflags -Ospace || check_add_cflags -Otime
|
||||
else
|
||||
- enabled small && check_add_cflags -O2 || check_add_cflags -O3
|
||||
+ enabled small && check_add_cflags -O2 || check_add_cflags -O2
|
||||
fi
|
||||
fi
|
||||
|
||||
61
media/libvpx/files/patch-x-libs.mk
Normal file
61
media/libvpx/files/patch-x-libs.mk
Normal file
@@ -0,0 +1,61 @@
|
||||
--- ./libs.mk.orig 2017-01-12 22:27:27.000000000 +0200
|
||||
+++ ./libs.mk 2017-05-08 10:05:46.773672000 +0200
|
||||
@@ -232,8 +232,8 @@
|
||||
LIBS-$(if yes,$(CONFIG_STATIC)) += $(BUILD_PFX)libvpx.a $(BUILD_PFX)libvpx_g.a
|
||||
$(BUILD_PFX)libvpx_g.a: $(LIBVPX_OBJS)
|
||||
|
||||
-SO_VERSION_MAJOR := 4
|
||||
-SO_VERSION_MINOR := 1
|
||||
+SO_VERSION_MAJOR := 2
|
||||
+SO_VERSION_MINOR := 0
|
||||
SO_VERSION_PATCH := 0
|
||||
ifeq ($(filter darwin%,$(TGT_OS)),$(TGT_OS))
|
||||
LIBVPX_SO := libvpx.$(SO_VERSION_MAJOR).dylib
|
||||
@@ -255,12 +255,10 @@
|
||||
LIBVPX_SO_SYMLINKS :=
|
||||
LIBVPX_SO_IMPLIB := libvpx_dll.a
|
||||
else
|
||||
-LIBVPX_SO := libvpx.so.$(SO_VERSION_MAJOR).$(SO_VERSION_MINOR).$(SO_VERSION_PATCH)
|
||||
+LIBVPX_SO := libvpx.so.$(SO_VERSION_MAJOR)
|
||||
SHARED_LIB_SUF := .so
|
||||
EXPORT_FILE := libvpx.ver
|
||||
-LIBVPX_SO_SYMLINKS := $(addprefix $(LIBSUBDIR)/, \
|
||||
- libvpx.so libvpx.so.$(SO_VERSION_MAJOR) \
|
||||
- libvpx.so.$(SO_VERSION_MAJOR).$(SO_VERSION_MINOR))
|
||||
+LIBVPX_SO_SYMLINKS := $(addprefix $(LIBSUBDIR)/, libvpx.so)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
@@ -300,19 +298,19 @@
|
||||
|
||||
define libvpx_symlink_template
|
||||
$(1): $(2)
|
||||
- @echo " [LN] $(2) $$@"
|
||||
- $(qexec)mkdir -p $$(dir $$@)
|
||||
- $(qexec)ln -sf $(2) $$@
|
||||
+ echo " [LN] $(2) $$@"
|
||||
+ mkdir -p $$(dir $$@)
|
||||
+ ln -sf $(2) $$@
|
||||
endef
|
||||
|
||||
$(eval $(call libvpx_symlink_template,\
|
||||
$(addprefix $(BUILD_PFX),$(notdir $(LIBVPX_SO_SYMLINKS))),\
|
||||
$(BUILD_PFX)$(LIBVPX_SO)))
|
||||
+
|
||||
$(eval $(call libvpx_symlink_template,\
|
||||
$(addprefix $(DIST_DIR)/,$(LIBVPX_SO_SYMLINKS)),\
|
||||
$(LIBVPX_SO)))
|
||||
|
||||
-
|
||||
INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBVPX_SO_SYMLINKS)
|
||||
INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBSUBDIR)/$(LIBVPX_SO)
|
||||
INSTALL-LIBS-$(CONFIG_SHARED) += $(if $(LIBVPX_SO_IMPLIB),$(LIBSUBDIR)/$(LIBVPX_SO_IMPLIB))
|
||||
@@ -334,7 +332,7 @@
|
||||
$(qexec)echo 'Conflicts:' >> $@
|
||||
$(qexec)echo 'Libs: -L$${libdir} -lvpx -lm' >> $@
|
||||
ifeq ($(HAVE_PTHREAD_H),yes)
|
||||
- $(qexec)echo 'Libs.private: -lm -lpthread' >> $@
|
||||
+ $(qexec)echo 'Libs.private: -lm -pthread' >> $@
|
||||
else
|
||||
$(qexec)echo 'Libs.private: -lm' >> $@
|
||||
endif
|
||||
3
media/libvpx/pkg-descr
Normal file
3
media/libvpx/pkg-descr
Normal file
@@ -0,0 +1,3 @@
|
||||
libvpx is the VP8/VP9 Codec SDK.
|
||||
|
||||
WWW: http://www.webmproject.org/
|
||||
16
media/libvpx/pkg-plist
Normal file
16
media/libvpx/pkg-plist
Normal file
@@ -0,0 +1,16 @@
|
||||
bin/vpxdec
|
||||
bin/vpxenc
|
||||
include/vpx/vp8.h
|
||||
include/vpx/vp8cx.h
|
||||
include/vpx/vp8dx.h
|
||||
include/vpx/vpx_codec.h
|
||||
include/vpx/vpx_decoder.h
|
||||
include/vpx/vpx_encoder.h
|
||||
include/vpx/vpx_frame_buffer.h
|
||||
include/vpx/vpx_image.h
|
||||
include/vpx/vpx_integer.h
|
||||
lib/libvpx.a
|
||||
lib/libvpx.so
|
||||
lib/libvpx.so.2
|
||||
lib/pkgconfig/vpx.pc
|
||||
@dir include/vpx
|
||||
Reference in New Issue
Block a user