[packages/allegro5] - added libdir patch (install cmake configs in arch-aware libdir), build enet examples

qboosh qboosh at pld-linux.org
Mon Jul 1 22:03:18 CEST 2024


commit 5f389e6e37c4d9899e71fe9bcbc7c4862d42299e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jul 1 21:57:52 2024 +0200

    - added libdir patch (install cmake configs in arch-aware libdir), build enet examples

 allegro5-libdir.patch | 11 +++++++++++
 allegro5.spec         |  5 +++++
 2 files changed, 16 insertions(+)
---
diff --git a/allegro5.spec b/allegro5.spec
index fcce04a..ffdbd73 100644
--- a/allegro5.spec
+++ b/allegro5.spec
@@ -33,6 +33,7 @@ Group:		Libraries
 Source0:	https://github.com/liballeg/allegro5/releases/download/%{version}/allegro-%{version}.tar.gz
 # Source0-md5:	fabbdd73f250869ffb831c487c24dd74
 Patch0:		%{name}-glx.patch
+Patch1:		%{name}-libdir.patch
 URL:		https://liballeg.org/
 %{?with_openal:BuildRequires:	OpenAL-devel}
 BuildRequires:	OpenGL-GLU-devel
@@ -41,6 +42,7 @@ BuildRequires:	OpenGL-devel
 BuildRequires:	cmake >= 3.0
 %{?with_curl:BuildRequires:	curl-devel}
 BuildRequires:	dumb-devel
+BuildRequires:	enet-devel
 BuildRequires:	flac-devel
 BuildRequires:	freetype-devel >= 2
 %{?with_gtk:BuildRequires:	glib2-devel >= 2.0}
@@ -346,6 +348,7 @@ Pythonowy interfejs do biblioteki Allegro.
 %prep
 %setup -q -n allegro-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 install -d build
@@ -577,6 +580,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/ex_draw_bitmap
 %attr(755,root,root) %{_bindir}/ex_drawpixels
 %attr(755,root,root) %{_bindir}/ex_dualies
+%attr(755,root,root) %{_bindir}/ex_enet_client
+%attr(755,root,root) %{_bindir}/ex_enet_server
 %attr(755,root,root) %{_bindir}/ex_expose
 %attr(755,root,root) %{_bindir}/ex_file
 %attr(755,root,root) %{_bindir}/ex_file_slice
diff --git a/allegro5-libdir.patch b/allegro5-libdir.patch
new file mode 100644
index 0000000..d9c9552
--- /dev/null
+++ b/allegro5-libdir.patch
@@ -0,0 +1,11 @@
+--- allegro-5.2.9.1/CMakeLists.txt.orig	2023-11-25 05:06:37.000000000 +0100
++++ allegro-5.2.9.1/CMakeLists.txt	2024-07-01 21:23:22.361845790 +0200
+@@ -1230,7 +1230,7 @@ include(CMakePackageConfigHelpers)
+ set(PKG_NAME "Allegro")
+ string(TOLOWER ${PKG_NAME} PKG_NAME_LOWER)
+ 
+-set(PKG_CONFIG_INSTALL_DIR "lib/cmake/${PKG_NAME_LOWER}")
++set(PKG_CONFIG_INSTALL_DIR "lib${LIB_SUFFIX}/cmake/${PKG_NAME_LOWER}")
+ set(PKG_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}/generated")
+ set(PKG_TARGETS_NAME "${PKG_NAME}Targets")
+ set(PKG_CONFIG_FILE "${PKG_GENERATED_DIR}/${PKG_NAME}Config.cmake")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/allegro5.git/commitdiff/5f389e6e37c4d9899e71fe9bcbc7c4862d42299e



More information about the pld-cvs-commit mailing list