media-libs/allegro: rm useless gentoo patches

This commit is contained in:
Julian Ospald 2016-02-27 18:07:57 +01:00
parent ce47bf4640
commit 64fbf52544
5 changed files with 10 additions and 44 deletions

View File

@ -50,14 +50,11 @@ DEPENDENCIES="
" "
DEFAULT_SRC_PREPARE_PATCHES=( DEFAULT_SRC_PREPARE_PATCHES=(
-p0 "${FILES}"/${PNV}-shared.patch -p0 "${FILES}"/${PNV}-underlink.patch
"${FILES}"/${PNV}-underlink.patch
"${FILES}"/${PNV}-gentoo.patch
"${FILES}"/${PNV}-rpath.patch
) )
CMAKE_SRC_CONFIGURE_PARAMS=( CMAKE_SRC_CONFIGURE_PARAMS=(
"-DCMAKE_SKIP_BUILD_RPATH=TRUE"
"-DDOCDIR=share/doc" "-DDOCDIR=share/doc"
"-DINFODIR=share/info" "-DINFODIR=share/info"
"-DMANDIR=share/man" "-DMANDIR=share/man"
@ -88,8 +85,8 @@ src_prepare() {
default default
edo sed -i \ edo sed -i \
-e "s:allegro-\${ALLEGRO_VERSION}:${PNVR}:" \ -e 's#ADDON_LINKAGE STATIC#ADDON_LINKAGE SHARED#' \
docs/CMakeLists.txt CMakeLists.txt
} }
src_install() { src_install() {

View File

@ -1,16 +0,0 @@
--- docs/CMakeLists.txt.old 2012-03-04 20:20:05.566881387 +0100
+++ docs/CMakeLists.txt 2012-03-04 20:20:50.659714153 +0100
@@ -71,11 +71,12 @@
string(REGEX MATCH "[^/]*._tx" basename ${page})
string(REPLACE "._tx" "" basename ${basename})
- set(page ${CMAKE_CURRENT_SOURCE_DIR}/${page})
if(${page} MATCHES "/build/")
+ set(page ${CMAKE_CURRENT_SOURCE_DIR}/${page})
set(txt_out ${CMAKE_CURRENT_BINARY_DIR}/build/${basename}.txt)
set(html_out ${CMAKE_CURRENT_BINARY_DIR}/build/${basename}.html)
else()
+ set(page ${CMAKE_CURRENT_SOURCE_DIR}/${page})
set(txt_out ${CMAKE_CURRENT_BINARY_DIR}/txt/${basename}.txt)
set(html_out ${CMAKE_CURRENT_BINARY_DIR}/html/${basename}.html)
endif()

View File

@ -1,8 +0,0 @@
--- setup/CMakeLists.txt
+++ setup/CMakeLists.txt
@@ -1,3 +1,5 @@
+set(CMAKE_SKIP_BUILD_RPATH TRUE)
+
add_our_executable(setup setup.c)
copy_files(copy_setup_data setup.dat)

View File

@ -1,11 +0,0 @@
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -830,7 +830,7 @@
option(WANT_LOGG "Enable logg" on)
option(WANT_JPGALLEG "Enable JPGAlleg" on)
-if(WANT_FRAMEWORKS)
+if(SHARED)
set(ADDON_LINKAGE SHARED)
else()
set(ADDON_LINKAGE STATIC)

View File

@ -1,5 +1,9 @@
--- CMakeLists.txt.old 2011-06-06 23:46:06.057320691 +0200 Source: Gentoo
+++ CMakeLists.txt 2011-06-06 23:46:21.900313261 +0200 Upstream: unknown
Reason: fixes underlinking
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -392,7 +392,7 @@ @@ -392,7 +392,7 @@
message(FATAL_ERROR "Unix port requires pthreads support.") message(FATAL_ERROR "Unix port requires pthreads support.")
endif() endif()