forked from ports/contrib
faad2: cherry picked commit to build shared library by default
This commit is contained in:
parent
226ea6cb2c
commit
977e720618
@ -5,7 +5,11 @@ drwxr-xr-x root/root usr/include/
|
||||
-rw-r--r-- root/root usr/include/faad.h
|
||||
-rw-r--r-- root/root usr/include/neaacdec.h
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
-rw-r--r-- root/root usr/lib/libfaad.a
|
||||
-rw-r--r-- root/root usr/lib/libfaad_drm.a
|
||||
lrwxrwxrwx root/root usr/lib/libfaad.so -> libfaad.so.2
|
||||
lrwxrwxrwx root/root usr/lib/libfaad.so.2 -> libfaad.so.2.11.0
|
||||
-rwxr-xr-x root/root usr/lib/libfaad.so.2.11.0
|
||||
lrwxrwxrwx root/root usr/lib/libfaad_drm.so -> libfaad_drm.so.2
|
||||
lrwxrwxrwx root/root usr/lib/libfaad_drm.so.2 -> libfaad_drm.so.2.11.0
|
||||
-rwxr-xr-x root/root usr/lib/libfaad_drm.so.2.11.0
|
||||
drwxr-xr-x root/root usr/lib/pkgconfig/
|
||||
-rw-r--r-- root/root usr/lib/pkgconfig/faad2.pc
|
||||
|
@ -1,5 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF36FC9q5YvvtqZYp61mVWrPEKScfivqedpy8aH+LSDeX1riCcWg06f/LycDZmWI5wPsksLsfl2ZOXe4i2zlrcCAg=
|
||||
SHA256 (Pkgfile) = 988d7a78a0d186a5eb28911d485bc1c23d23f5c852045bf25a74edec2ec34307
|
||||
SHA256 (.footprint) = b42391450e19485d0bcbde39ae75f89bec724e55960a049bcd213bded68a42d7
|
||||
RWSagIOpLGJF3/YGxC0CEyWbQyG8ZxEGfm1NcATIaOIkCPW7uvwzqNZoAdqEMdRPYTAdVdX+mHyoRV1pRa31gbIaPQm9EXbdKAc=
|
||||
SHA256 (Pkgfile) = cb11f3765e6858123256ae122ed0fb178e80c791c590f49b09dacfddd4897742
|
||||
SHA256 (.footprint) = f6b05d4a6bab8a096d1ce00f01c3f3ccef4f316bc71db66b5d43fd347cda2dc9
|
||||
SHA256 (faad2-2.11.0.tar.gz) = 720c1dc404439e0a9117aa144dc7ead56f1658adf4badbb39f959d6ad8eed489
|
||||
SHA256 (92ce281311f629faa99c9e06baaf41977f431f1b.patch) = c2eec9ed6fd995b5711a27fac4132898fcc07c52b2a46778630afbb907d461cc
|
||||
|
32
faad2/92ce281311f629faa99c9e06baaf41977f431f1b.patch
Normal file
32
faad2/92ce281311f629faa99c9e06baaf41977f431f1b.patch
Normal file
@ -0,0 +1,32 @@
|
||||
From 92ce281311f629faa99c9e06baaf41977f431f1b Mon Sep 17 00:00:00 2001
|
||||
From: Fabian Greffrath <fabian@greffrath.com>
|
||||
Date: Tue, 7 Nov 2023 11:19:42 +0100
|
||||
Subject: [PATCH] build shared libraries by default and hide symbols
|
||||
|
||||
---
|
||||
CMakeLists.txt | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 6b4d4d8..5b8cfec 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -15,12 +15,18 @@ if(NOT DEFINED FAAD_BUNDLED_MODE)
|
||||
# depending on whether or not we are the top-level project.
|
||||
if(FAAD_PARENT_DIRECTORY)
|
||||
set(FAAD_BUNDLED_MODE ON)
|
||||
+ set(BUILD_SHARED_LIBS OFF)
|
||||
else()
|
||||
set(FAAD_BUNDLED_MODE OFF)
|
||||
+ set(BUILD_SHARED_LIBS ON)
|
||||
endif()
|
||||
endif()
|
||||
mark_as_advanced(FAAD_BUNDLED_MODE)
|
||||
|
||||
+if(BUILD_SHARED_LIBS)
|
||||
+ set(CMAKE_C_VISIBILITY_PRESET hidden)
|
||||
+endif()
|
||||
+
|
||||
find_library(MATH_LIBRARY m)
|
||||
|
||||
include(GNUInstallDirs)
|
@ -4,10 +4,13 @@
|
||||
|
||||
name=faad2
|
||||
version=2.11.0
|
||||
release=1
|
||||
source=(https://github.com/knik0/faad2/archive/$version/$name-$version.tar.gz)
|
||||
release=2
|
||||
source=(https://github.com/knik0/faad2/archive/$version/$name-$version.tar.gz
|
||||
92ce281311f629faa99c9e06baaf41977f431f1b.patch)
|
||||
|
||||
build() {
|
||||
patch -Np1 -d $name-$version -i $SRC/92ce281311f629faa99c9e06baaf41977f431f1b.patch
|
||||
|
||||
cmake -S $name-$version -B build -G Ninja \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_INSTALL_LIBDIR=lib \
|
||||
|
Loading…
x
Reference in New Issue
Block a user