forked from pool/allegro44
Moved package allegro version 4.4.2 to allegro44
OBS-URL: https://build.opensuse.org/package/show/games/allegro44?expand=0&rev=1
This commit is contained in:
commit
9a5adaeaf5
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
21
allegro-4.4.2-agl_no_dlopen.patch
Normal file
21
allegro-4.4.2-agl_no_dlopen.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
Index: addons/allegrogl/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- addons/allegrogl/CMakeLists.txt.orig
|
||||||
|
+++ addons/allegrogl/CMakeLists.txt
|
||||||
|
@@ -19,11 +19,11 @@ if(ALLEGRO_XWINDOWS_WITH_XF86VIDMODE)
|
||||||
|
set(ALLEGROGL_HAVE_XF86VIDMODE 1)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
-find_library(DLOPEN_LIB dl)
|
||||||
|
-mark_as_advanced(DLOPEN_LIB)
|
||||||
|
-if(DLOPEN_LIB)
|
||||||
|
- set(ALLEGROGL_HAVE_DYNAMIC_LINK 1)
|
||||||
|
-endif()
|
||||||
|
+#find_library(DLOPEN_LIB dl)
|
||||||
|
+#mark_as_advanced(DLOPEN_LIB)
|
||||||
|
+#if(DLOPEN_LIB)
|
||||||
|
+# set(ALLEGROGL_HAVE_DYNAMIC_LINK 1)
|
||||||
|
+#endif()
|
||||||
|
|
||||||
|
if(ALLEGRO_WITH_XWINDOWS)
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES ${OPENGL_gl_LIBRARY})
|
18
allegro-4.4.2-modules.patch
Normal file
18
allegro-4.4.2-modules.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Index: modules.lst
|
||||||
|
===================================================================
|
||||||
|
--- modules.lst.orig
|
||||||
|
+++ modules.lst
|
||||||
|
@@ -1,12 +1,6 @@
|
||||||
|
# List of modules to be loaded by the Unix version of Allegro.
|
||||||
|
|
||||||
|
-alleg-vga.so
|
||||||
|
-alleg-fbcon.so
|
||||||
|
-alleg-svgalib.so
|
||||||
|
alleg-dga2.so
|
||||||
|
-alleg-esddigi.so
|
||||||
|
-alleg-artsdigi.so
|
||||||
|
-alleg-sgialdigi.so
|
||||||
|
alleg-alsadigi.so
|
||||||
|
alleg-alsamidi.so
|
||||||
|
-alleg-jackdigi.so
|
||||||
|
+alleg-jack.so
|
30
allegro-4.4.2-monotonic.patch
Normal file
30
allegro-4.4.2-monotonic.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
Index: CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- CMakeLists.txt.orig
|
||||||
|
+++ CMakeLists.txt
|
||||||
|
@@ -22,6 +22,8 @@
|
||||||
|
# CMake setup
|
||||||
|
#
|
||||||
|
|
||||||
|
+INCLUDE(CMakePushCheckState)
|
||||||
|
+
|
||||||
|
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
|
||||||
|
if(COMMAND cmake_policy)
|
||||||
|
cmake_policy(SET CMP0003 NEW)
|
||||||
|
@@ -198,6 +200,8 @@ if(UNIX)
|
||||||
|
ALLEGRO_USE_CONSTRUCTOR)
|
||||||
|
|
||||||
|
find_library(RT_LIBRARY rt)
|
||||||
|
+ cmake_push_check_state()
|
||||||
|
+ set(CMAKE_REQUIRED_LIBRARIES ${RT_LIBRARY})
|
||||||
|
check_c_source_compiles("
|
||||||
|
#include <time.h>
|
||||||
|
int main(void) {
|
||||||
|
@@ -207,6 +211,7 @@ if(UNIX)
|
||||||
|
}"
|
||||||
|
ALLEGRO_HAVE_POSIX_MONOTONIC_CLOCK
|
||||||
|
)
|
||||||
|
+ cmake_pop_check_state()
|
||||||
|
|
||||||
|
if(MAGIC_MAIN)
|
||||||
|
set(ALLEGRO_WITH_MAGIC_MAIN 1)
|
13
allegro-4.4.2-no_c++.patch
Normal file
13
allegro-4.4.2-no_c++.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- CMakeLists.txt.orig
|
||||||
|
+++ CMakeLists.txt
|
||||||
|
@@ -43,7 +43,7 @@ set(CMAKE_CONFIGURATION_TYPES "${CMAKE_B
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set the project name.
|
||||||
|
-project(ALLEGRO C CXX)
|
||||||
|
+project(ALLEGRO C)
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
if(MINGW)
|
108
allegro-4.4.2-pkgconfig.patch
Normal file
108
allegro-4.4.2-pkgconfig.patch
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
Index: misc/allegrogl.pc.in
|
||||||
|
===================================================================
|
||||||
|
--- misc/allegrogl.pc.in.orig
|
||||||
|
+++ misc/allegrogl.pc.in
|
||||||
|
@@ -8,7 +8,7 @@ suffix=@lib_type@@lib_linkage@
|
||||||
|
Name: allegrogl
|
||||||
|
Description: OpenGL addon for Allegro game programming library
|
||||||
|
Version: ${version}
|
||||||
|
-# always statically linked
|
||||||
|
-Libs: -L${libdir} -lalleggl${suffix} @link_with@
|
||||||
|
-Requires: allegro${suffix} >= ${version}
|
||||||
|
+Libs: -L${libdir} -lalleggl${suffix}
|
||||||
|
+Libs.private: @link_with@
|
||||||
|
+Requires.private: allegro${suffix} >= ${version}
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
Index: misc/jpgalleg.pc.in
|
||||||
|
===================================================================
|
||||||
|
--- misc/jpgalleg.pc.in.orig
|
||||||
|
+++ misc/jpgalleg.pc.in
|
||||||
|
@@ -8,7 +8,7 @@ suffix=@lib_type@@lib_linkage@
|
||||||
|
Name: JPGalleg
|
||||||
|
Description: JPEG addon for Allegro game programming library
|
||||||
|
Version: ${version}
|
||||||
|
-# always statically linked
|
||||||
|
-Libs: -L${libdir} -ljpgalleg${suffix} @link_with@
|
||||||
|
-Requires: allegro${suffix} >= ${version}
|
||||||
|
+Libs: -L${libdir} -ljpgalleg${suffix}
|
||||||
|
+Libs.private: @link_with@
|
||||||
|
+Requires.private: allegro${suffix} >= ${version}
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
Index: misc/loadpng.pc.in
|
||||||
|
===================================================================
|
||||||
|
--- misc/loadpng.pc.in.orig
|
||||||
|
+++ misc/loadpng.pc.in
|
||||||
|
@@ -8,7 +8,7 @@ suffix=@lib_type@@lib_linkage@
|
||||||
|
Name: loadpng
|
||||||
|
Description: PNG addon for Allegro game programming library
|
||||||
|
Version: ${version}
|
||||||
|
-# always statically linked
|
||||||
|
-Libs: -L${libdir} -lloadpng${suffix} @link_with@
|
||||||
|
-Requires: allegro${suffix} >= ${version}
|
||||||
|
+Libs: -L${libdir} -lloadpng${suffix}
|
||||||
|
+Libs.private: @link_with@
|
||||||
|
+Requires.private: allegro${suffix} >= ${version}
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
Index: misc/logg.pc.in
|
||||||
|
===================================================================
|
||||||
|
--- misc/logg.pc.in.orig
|
||||||
|
+++ misc/logg.pc.in
|
||||||
|
@@ -8,7 +8,7 @@ suffix=@lib_type@@lib_linkage@
|
||||||
|
Name: logg
|
||||||
|
Description: Ogg Vorbis addon for Allegro game programming library
|
||||||
|
Version: ${version}
|
||||||
|
-# always statically linked
|
||||||
|
-Libs: -L${libdir} -llogg${suffix} @link_with@
|
||||||
|
-Requires: allegro${suffix} >= ${version}
|
||||||
|
+Libs: -L${libdir} -llogg${suffix}
|
||||||
|
+Libs.private: @link_with@
|
||||||
|
+Requires.private: allegro${suffix} >= ${version}
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
Index: CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- CMakeLists.txt.orig
|
||||||
|
+++ CMakeLists.txt
|
||||||
|
@@ -445,20 +445,18 @@ if(ALLEGRO_WITH_XWINDOWS)
|
||||||
|
include_directories(SYSTEM ${X11_INCLUDE_DIR})
|
||||||
|
list(APPEND PLATFORM_SOURCES ${ALLEGRO_SRC_X_FILES})
|
||||||
|
list(APPEND PLATFORM_LIBS ${X11_LIBRARIES})
|
||||||
|
+ SET(PKGCONF_DEPS "x11 xproto")
|
||||||
|
|
||||||
|
if(X11_XShm_FOUND)
|
||||||
|
set(ALLEGRO_XWINDOWS_WITH_SHM 1)
|
||||||
|
list(APPEND PLATFORM_LIBS ${X11_Xext_LIB})
|
||||||
|
+ SET(PKGCONF_DEPS "${PKGCONF_DEPS} xext")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(X11_Xcursor_FOUND)
|
||||||
|
set(ALLEGRO_XWINDOWS_WITH_XCURSOR 1)
|
||||||
|
list(APPEND PLATFORM_LIBS ${X11_Xcursor_LIB})
|
||||||
|
- endif()
|
||||||
|
-
|
||||||
|
- if(X11_Xcursor_FOUND)
|
||||||
|
- set(ALLEGRO_XWINDOWS_WITH_XCURSOR 1)
|
||||||
|
- list(APPEND PLATFORM_LIBS ${X11_Xcursor_LIB})
|
||||||
|
+ SET(PKGCONF_DEPS "${PKGCONF_DEPS} xcursor")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(X11_Xpm_FOUND)
|
||||||
|
@@ -471,6 +469,7 @@ if(ALLEGRO_WITH_XWINDOWS)
|
||||||
|
if(X11_xf86vmode_FOUND)
|
||||||
|
set(ALLEGRO_XWINDOWS_WITH_XF86VIDMODE 1)
|
||||||
|
list(APPEND PLATFORM_LIBS ${X11_Xxf86vm_LIB})
|
||||||
|
+ SET(PKGCONF_DEPS "${PKGCONF_DEPS} xxf86vm")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
check_library_exists(X11 XOpenIM "${X11_LIB_SEARCH_PATH}" XIM_FOUND)
|
||||||
|
Index: misc/allegro.pc.in
|
||||||
|
===================================================================
|
||||||
|
--- misc/allegro.pc.in.orig
|
||||||
|
+++ misc/allegro.pc.in
|
||||||
|
@@ -8,6 +8,7 @@ suffix=@lib_type@@lib_linkage@
|
||||||
|
Name: allegro
|
||||||
|
Description: Allegro game programming library
|
||||||
|
Version: ${version}
|
||||||
|
+Requires.private: @PKGCONF_DEPS@
|
||||||
|
Libs: -L${libdir} -lalleg${suffix}
|
||||||
|
Libs.private: @link_with@
|
||||||
|
Cflags: -I${includedir}
|
13
allegro-4.4.2-shared_plugins.patch
Normal file
13
allegro-4.4.2-shared_plugins.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- CMakeLists.txt.orig
|
||||||
|
+++ CMakeLists.txt
|
||||||
|
@@ -833,7 +833,7 @@ option(WANT_JPGALLEG "Enable JPGAlleg" o
|
||||||
|
if(WANT_FRAMEWORKS)
|
||||||
|
set(ADDON_LINKAGE SHARED)
|
||||||
|
else()
|
||||||
|
- set(ADDON_LINKAGE STATIC)
|
||||||
|
+ set(ADDON_LINKAGE SHARED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(WANT_ALLEGROGL)
|
19
allegro-4.4.2-src_x_xkeyboard.c.patch
Normal file
19
allegro-4.4.2-src_x_xkeyboard.c.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
--- src/x/xkeyboard.c.orig 2010-12-08 09:13:50.000000000 +0100
|
||||||
|
+++ src/x/xkeyboard.c 2014-12-18 22:35:14.060505395 +0100
|
||||||
|
@@ -23,6 +23,7 @@
|
||||||
|
#include <X11/Xos.h>
|
||||||
|
#include <X11/Xlib.h>
|
||||||
|
#include <X11/Xutil.h>
|
||||||
|
+#include <X11/XKBlib.h>
|
||||||
|
#include <X11/Xproto.h>
|
||||||
|
|
||||||
|
#include "allegro.h"
|
||||||
|
@@ -617,7 +618,7 @@
|
||||||
|
|
||||||
|
TRACE (PREFIX_I "Modifier %d:", i + 1);
|
||||||
|
for (j = 0; j < xmodmap->max_keypermod; j++) {
|
||||||
|
- KeySym sym = XKeycodeToKeysym(_xwin.display,
|
||||||
|
+ KeySym sym = XkbKeycodeToKeysym(_xwin.display, 0,
|
||||||
|
xmodmap->modifiermap[i * xmodmap->max_keypermod + j], 0);
|
||||||
|
char *sym_str = XKeysymToString(sym);
|
||||||
|
TRACE(" %s", sym_str ? sym_str : "NULL");
|
13
allegro-4.4.2-underlinking.patch
Normal file
13
allegro-4.4.2-underlinking.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- CMakeLists.txt.orig
|
||||||
|
+++ CMakeLists.txt
|
||||||
|
@@ -385,7 +385,7 @@ function(add_our_module nm files)
|
||||||
|
PREFIX ""
|
||||||
|
COMPILE_FLAGS -DALLEGRO_MODULE
|
||||||
|
)
|
||||||
|
- target_link_libraries(${nm} ${ARGN})
|
||||||
|
+ target_link_libraries(${nm} ${ARGN} allegro)
|
||||||
|
install(TARGETS ${nm}
|
||||||
|
DESTINATION "${ALLEGRO_MODULES_PATH}"
|
||||||
|
)
|
3
allegro-4.4.2.tar.gz
Normal file
3
allegro-4.4.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1b21e7577dbfada02d85ca4510bd22fedaa6ce76fde7f4838c7c1276eb840fdc
|
||||||
|
size 4674902
|
74
allegro44.changes
Normal file
74
allegro44.changes
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 21 13:53:17 UTC 2017 - rpm@fthiessen.de
|
||||||
|
|
||||||
|
- Renamed to allegro44
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 17 09:12:43 UTC 2015 - meissner@suse.com
|
||||||
|
|
||||||
|
- info deinstall needs to be in preun section
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 22 22:24:01 UTC 2014 - nemysis@gmx.ch
|
||||||
|
|
||||||
|
- Use for patch(es) %{name}-version instead of %{name}-%{version}
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 19 04:53:49 UTC 2014 - nemysis@gmx.ch
|
||||||
|
|
||||||
|
- Use SED-FIX-OPENSUSE for sed
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 18 22:34:16 UTC 2014 - nemysis@gmx.ch
|
||||||
|
|
||||||
|
- Rename allegro4 to allegro
|
||||||
|
- Change Summary
|
||||||
|
- Change URL for The giftware licence
|
||||||
|
- Use for patches %{name}-%{version} instead of liballeg4_4 or
|
||||||
|
allegro-4.4.2 and add descriptions for patches
|
||||||
|
- Add patch allegro4-4.4.2-src_x_xkeyboard.c.patch
|
||||||
|
- Use check for openSUSE %if 0%{?suse_version}
|
||||||
|
- Change Description
|
||||||
|
- Add sed, fix include xf86dga.h
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 7 20:44:36 UTC 2014 - mailaender@opensuse.org
|
||||||
|
|
||||||
|
- fixed rpmlint warnings
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 2 09:47:59 UTC 2014 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
- Add 32bit modules.lst via baselibs.conf
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 22 09:36:19 UTC 2012 - reddwarf@opensuse.org
|
||||||
|
|
||||||
|
- Add texinfo BuildRequires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 19 16:39:35 UTC 2012 - reddwarf@opensuse.org
|
||||||
|
|
||||||
|
- Update to 4.4.2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 15 17:50:12 UTC 2011 - reddwarf@opensuse.org
|
||||||
|
|
||||||
|
- Fix main pkg-config, requiring X11 related packages.
|
||||||
|
Through RPM magic automatically fixes the package dependencies.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 13 00:11:38 UTC 2011 - reddwarf@opensuse.org
|
||||||
|
|
||||||
|
- Fix module loading
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 14 13:30:49 CEST 2010 - uli@suse.de
|
||||||
|
|
||||||
|
- build baselibs
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 28 10:46:53 UTC 2010 - reddwarf@opensuse.org
|
||||||
|
|
||||||
|
- First release 4.4.1.1
|
||||||
|
|
349
allegro44.spec
Normal file
349
allegro44.spec
Normal file
@ -0,0 +1,349 @@
|
|||||||
|
#
|
||||||
|
# spec file for package allegro44
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: allegro44
|
||||||
|
Version: 4.4.2
|
||||||
|
Release: 0
|
||||||
|
Summary: Cross-platform library for games and multimedia programming
|
||||||
|
# http://alleg.sourceforge.net/latestdocs/en/faq.html#The%20giftware%20licence
|
||||||
|
License: SUSE-Permissive
|
||||||
|
Group: System/Libraries
|
||||||
|
Url: http://alleg.sourceforge.net/
|
||||||
|
Source0: https://downloads.sourceforge.net/project/alleg/allegro/%{version}/allegro-%{version}.tar.gz
|
||||||
|
Source1: baselibs.conf
|
||||||
|
# PATCH-FIX-OPENSUSE allegro-4.4.2-shared_plugins.patch reddwarf@opensuse.org -- Compile plugins as shared libs
|
||||||
|
Patch0: allegro-%{version}-shared_plugins.patch
|
||||||
|
# PATCH-FIX-OPENSUSE allegro-4.4.2-pkgconfig.patch reddwarf@opensuse.org -- Correct pkg-config files to reflect shared_plugins patch
|
||||||
|
Patch1: allegro-4.4.2-pkgconfig.patch
|
||||||
|
# PATCH-FEATURE-OPENSUSE allegro-4.4.2-modules.patch reddwarf@opensuse.org -- Avoid allegro searching for modules that don't exist
|
||||||
|
Patch2: allegro-4.4.2-modules.patch
|
||||||
|
# PATCH-FIX-OPENSUSE allegro-4.4.2-agl_no_dlopen.patch http://www.allegro.cc/forums/thread/600657 reddwarf@opensuse.org -- Link directly to libGL instead of dlopening, upstream doesn't likes it
|
||||||
|
Patch3: allegro-4.4.2-agl_no_dlopen.patch
|
||||||
|
# PATCH-FIX-OPENSUSE allegro-4.4.2--underlinking.patch -- Add allegro to target_link_libraries
|
||||||
|
Patch4: allegro-4.4.2-underlinking.patch
|
||||||
|
# PATCH-FIX-OPENSUSE allegro-4.4.2--no_c++.patch -- Removed CXX
|
||||||
|
Patch5: allegro-4.4.2-no_c++.patch
|
||||||
|
# PATCH-FIX-OPENSUSE allegro-4.4.2--monotonic.patch -- Fix monotonic
|
||||||
|
Patch6: allegro-4.4.2-monotonic.patch
|
||||||
|
# PATCH-FIX-OPENSUSE allegro4-4.4.2-src_x_xkeyboard.c.patch -- Fix include and 'XKeycodeToKeysym' is deprecated
|
||||||
|
Patch7: allegro-4.4.2-src_x_xkeyboard.c.patch
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: texinfo
|
||||||
|
BuildRequires: pkgconfig(alsa)
|
||||||
|
BuildRequires: pkgconfig(gl)
|
||||||
|
BuildRequires: pkgconfig(glu)
|
||||||
|
BuildRequires: pkgconfig(jack)
|
||||||
|
BuildRequires: pkgconfig(libpng)
|
||||||
|
BuildRequires: pkgconfig(vorbisfile)
|
||||||
|
BuildRequires: pkgconfig(x11)
|
||||||
|
BuildRequires: pkgconfig(xcursor)
|
||||||
|
BuildRequires: pkgconfig(xext)
|
||||||
|
BuildRequires: pkgconfig(xpm)
|
||||||
|
BuildRequires: pkgconfig(xxf86dga)
|
||||||
|
BuildRequires: pkgconfig(xxf86vm)
|
||||||
|
|
||||||
|
%description
|
||||||
|
Allegro is a cross-platform library intended for use in computer games
|
||||||
|
and other types of multimedia programming.
|
||||||
|
|
||||||
|
A wide range of extension packages and add-on modules are also available, which
|
||||||
|
can be found in the "Library Extensions" section of the Allegro website.
|
||||||
|
|
||||||
|
%package -n liballeg4_4
|
||||||
|
Summary: A game programming library
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n liballeg4_4
|
||||||
|
Allegro is a cross-platform library intended for use in computer games
|
||||||
|
and other types of multimedia programming.
|
||||||
|
|
||||||
|
%package -n liballeg44-devel
|
||||||
|
Summary: A game programming library
|
||||||
|
Group: Development/Languages/C and C++
|
||||||
|
Requires(pre): %install_info_prereq
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
Requires: liballeg4_4 = %{version}
|
||||||
|
Provides: allegro-devel = %{version}
|
||||||
|
Provides: liballeg-devel = %{version}
|
||||||
|
Obsoletes: allegro-devel < %{version}
|
||||||
|
Conflicts: allegro-devel > %{version}
|
||||||
|
Conflicts: liballeg-devel > %{version}
|
||||||
|
|
||||||
|
%description -n liballeg44-devel
|
||||||
|
Allegro is a cross-platform library intended for use in computer games
|
||||||
|
and other types of multimedia programming. This package is needed to
|
||||||
|
build programs written with Allegro.
|
||||||
|
|
||||||
|
%package -n allegro44-tools
|
||||||
|
Summary: Extra tools for the Allegro programming library
|
||||||
|
Group: Development/Tools/Other
|
||||||
|
|
||||||
|
%description -n allegro44-tools
|
||||||
|
Allegro is a cross-platform library intended for use in computer games
|
||||||
|
and other types of multimedia programming. This package contains extra
|
||||||
|
tools which are useful for developing Allegro programs.
|
||||||
|
|
||||||
|
%package jack-plugin
|
||||||
|
Summary: Allegro JACK (Jack Audio Connection Kit) plugin
|
||||||
|
Group: System/Libraries
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description jack-plugin
|
||||||
|
This package contains a plugin for Allegro which enables Allegro to playback
|
||||||
|
sound through JACK (Jack Audio Connection Kit).
|
||||||
|
|
||||||
|
%package dga2-plugin
|
||||||
|
Summary: Allegro DGA2 (Direct Graphics Access) plugin
|
||||||
|
Group: System/Libraries
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description dga2-plugin
|
||||||
|
This package contains a DGA2 (Direct Graphics Access) driver for Allegro.
|
||||||
|
|
||||||
|
%package -n liballeggl4_4
|
||||||
|
Summary: Allegro OpenGL bindings
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n liballeggl4_4
|
||||||
|
This library allows to use OpenGL from Allegro.
|
||||||
|
|
||||||
|
%package -n liballeggl44-devel
|
||||||
|
Summary: Development files for AllegroGL
|
||||||
|
Group: Development/Languages/C and C++
|
||||||
|
Requires: liballeggl4_4 = %{version}
|
||||||
|
|
||||||
|
%description -n liballeggl44-devel
|
||||||
|
This package is needed to build programs that use AllegroGL.
|
||||||
|
|
||||||
|
%package -n libjpgalleg4_4
|
||||||
|
Summary: JPEG support library for Allegro
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libjpgalleg4_4
|
||||||
|
This library allows to load/save JPG images using standard Allegro image
|
||||||
|
handling functions.
|
||||||
|
|
||||||
|
%package -n libjpgalleg44-devel
|
||||||
|
Summary: Development files for JPGAlleg
|
||||||
|
Group: Development/Languages/C and C++
|
||||||
|
Requires: libjpgalleg4_4 = %{version}
|
||||||
|
Provides: libjpgalleg-devel = %{version}
|
||||||
|
Conflicts: libjpgalleg-devel > %{version}
|
||||||
|
|
||||||
|
%description -n libjpgalleg44-devel
|
||||||
|
This package is needed to build programs that use JPGAlleg.
|
||||||
|
|
||||||
|
%package -n libloadpng4_4
|
||||||
|
Summary: PNG support library for Allegro
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libloadpng4_4
|
||||||
|
This library allows to load/save PNG images using standard Allegro image
|
||||||
|
handling functions.
|
||||||
|
|
||||||
|
%package -n libloadpng44-devel
|
||||||
|
Summary: Development files for Allegro's loadpng
|
||||||
|
Group: Development/Languages/C and C++
|
||||||
|
Requires: libloadpng4_4 = %{version}
|
||||||
|
Provides: libloadpng-devel = %{version}
|
||||||
|
Conflicts: libloadpng-devel > %{version}
|
||||||
|
|
||||||
|
%description -n libloadpng44-devel
|
||||||
|
This package is needed to build programs that use Allegro's loadpng.
|
||||||
|
|
||||||
|
%package -n liblogg4_4
|
||||||
|
Summary: Ogg Vorbis support library for Allegro
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n liblogg4_4
|
||||||
|
This library allows to use Ogg Vorbis sound files from Allegro.
|
||||||
|
|
||||||
|
%package -n liblogg44-devel
|
||||||
|
Summary: Development files for Allegro's logg
|
||||||
|
Group: Development/Languages/C and C++
|
||||||
|
Requires: liblogg4_4 = %{version}
|
||||||
|
Provides: liblogg-devel = %{version}
|
||||||
|
Conflicts: liblogg-devel > %{version}
|
||||||
|
|
||||||
|
%description -n liblogg44-devel
|
||||||
|
This package is needed to build programs that use Allegro's logg.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n allegro-%{version}
|
||||||
|
%patch0
|
||||||
|
%patch1
|
||||||
|
%patch2
|
||||||
|
%patch3
|
||||||
|
%patch4
|
||||||
|
%patch5
|
||||||
|
%patch6
|
||||||
|
%patch7
|
||||||
|
|
||||||
|
# SED-FIX-OPENSUSE – Fix include, warning "xf86dga.h is obsolete and may be removed in the future."
|
||||||
|
sed -i 's|X11/extensions/xf86dga.h|X11/extensions/Xxf86dga.h|' src/x/xdga2.c
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
export CFLAGS='%{optflags}'
|
||||||
|
export CXXFLAGS='%{optflags}'
|
||||||
|
cmake -DCMAKE_SKIP_RPATH=ON \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||||
|
-DLIB_SUFFIX=$(echo %{_lib} | cut -b4-) \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
|
||||||
|
-DDOCDIR=%{_docdir} \
|
||||||
|
-DMANDIR=%{_mandir} \
|
||||||
|
-DINFODIR=%{_infodir} \
|
||||||
|
-DWANT_EXAMPLES=no \
|
||||||
|
-DWANT_TESTS=no \
|
||||||
|
-DWANT_OSS=no \
|
||||||
|
..
|
||||||
|
make %{?_smp_flags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
cd build
|
||||||
|
%make_install
|
||||||
|
install -pm 0755 docs/makedoc %{buildroot}%{_bindir}/allegro-makedoc
|
||||||
|
rm -f %{buildroot}%{_includedir}/alleggl_config.h
|
||||||
|
# Since the CMakeLists.txt file is wrong install them manually
|
||||||
|
install -dm 0755 %{buildroot}%{_mandir}/man3
|
||||||
|
install -pm 0644 docs/man/*.3 %{buildroot}%{_mandir}/man3
|
||||||
|
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
%fdupes -s %{buildroot}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n liballeg4_4 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n liballeg4_4 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n liballeggl4_4 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n liballeggl4_4 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n libjpgalleg4_4 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n libjpgalleg4_4 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n libloadpng4_4 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n libloadpng4_4 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n liblogg4_4 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n liblogg4_4 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n liballeg44-devel
|
||||||
|
%install_info --info-dir=%{_infodir} %{_infodir}/allegro.info%{ext_info}
|
||||||
|
|
||||||
|
%preun -n liballeg44-devel
|
||||||
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/allegro.info%{ext_info}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_libdir}/allegro
|
||||||
|
%exclude %{_libdir}/allegro/%{version}/alleg-jack.so
|
||||||
|
%exclude %{_libdir}/allegro/%{version}/alleg-dga2.so
|
||||||
|
|
||||||
|
%files -n liballeg4_4
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_libdir}/liballeg.so.*
|
||||||
|
|
||||||
|
%files -n liballeg44-devel
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_docdir}/allegro-%{version}
|
||||||
|
%attr(0755,-,-) %{_bindir}/allegro-config
|
||||||
|
%attr(0755,-,-) %{_bindir}/allegro-makedoc
|
||||||
|
%{_libdir}/liballeg.so
|
||||||
|
%{_includedir}/allegro.h
|
||||||
|
%{_includedir}/xalleg.h
|
||||||
|
%{_includedir}/allegro
|
||||||
|
%{_libdir}/pkgconfig/allegro.pc
|
||||||
|
%{_infodir}/allegro.info%{ext_info}
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%files -n allegro44-tools
|
||||||
|
%defattr(0755,root,root)
|
||||||
|
%{_bindir}/colormap
|
||||||
|
%{_bindir}/dat
|
||||||
|
%{_bindir}/dat2c
|
||||||
|
%{_bindir}/dat2s
|
||||||
|
%{_bindir}/exedat
|
||||||
|
%{_bindir}/grabber
|
||||||
|
%{_bindir}/pack
|
||||||
|
%{_bindir}/pat2dat
|
||||||
|
%{_bindir}/rgbmap
|
||||||
|
%{_bindir}/textconv
|
||||||
|
|
||||||
|
%files jack-plugin
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_libdir}/allegro/%{version}/alleg-jack.so
|
||||||
|
|
||||||
|
%files dga2-plugin
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_libdir}/allegro/%{version}/alleg-dga2.so
|
||||||
|
|
||||||
|
%files -n liballeggl4_4
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_libdir}/liballeggl.so.*
|
||||||
|
|
||||||
|
%files -n liballeggl44-devel
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_libdir}/liballeggl.so
|
||||||
|
%{_includedir}/alleggl.h
|
||||||
|
%{_includedir}/allegrogl
|
||||||
|
%{_libdir}/pkgconfig/allegrogl.pc
|
||||||
|
|
||||||
|
%files -n libjpgalleg4_4
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_libdir}/libjpgalleg.so.*
|
||||||
|
|
||||||
|
%files -n libjpgalleg44-devel
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_libdir}/libjpgalleg.so
|
||||||
|
%{_includedir}/jpgalleg.h
|
||||||
|
%{_libdir}/pkgconfig/jpgalleg.pc
|
||||||
|
|
||||||
|
%files -n libloadpng4_4
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_libdir}/libloadpng.so.*
|
||||||
|
|
||||||
|
%files -n libloadpng44-devel
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_libdir}/libloadpng.so
|
||||||
|
%{_includedir}/loadpng.h
|
||||||
|
%{_libdir}/pkgconfig/loadpng.pc
|
||||||
|
|
||||||
|
%files -n liblogg4_4
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_libdir}/liblogg.so.*
|
||||||
|
|
||||||
|
%files -n liblogg44-devel
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_libdir}/liblogg.so
|
||||||
|
%{_includedir}/logg.h
|
||||||
|
%{_libdir}/pkgconfig/logg.pc
|
||||||
|
|
||||||
|
%changelog
|
14
baselibs.conf
Normal file
14
baselibs.conf
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
liballeg4_4
|
||||||
|
+^/usr/lib/allegro/4.4../modules.lst$
|
||||||
|
|
||||||
|
allegro44-dga2-plugin
|
||||||
|
|
||||||
|
allegro44-jack-plugin
|
||||||
|
|
||||||
|
liballeggl4_4
|
||||||
|
|
||||||
|
libjpgalleg4_4
|
||||||
|
|
||||||
|
libloadpng4_4
|
||||||
|
|
||||||
|
liblogg4_4
|
Loading…
Reference in New Issue
Block a user