Skip to content

Commit

Permalink
games-arcade/emilia-pinball: add 0.3.20230219
Browse files Browse the repository at this point in the history
Related: adoptware/pinball#31
Signed-off-by: Haelwenn (lanodan) Monnier <[email protected]>
  • Loading branch information
lanodan committed May 31, 2024
1 parent c7b0ba2 commit c68c9fc
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 0 deletions.
1 change: 1 addition & 0 deletions games-arcade/emilia-pinball/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST emilia-pinball-0.3.20230219.tar.gz 6067405 BLAKE2B ab87e3a7efc398973f47c95b0b370cb5c9ae869351903205ce2a665fdab0c9ff1ef63709025951d8f321172501ced34ac3bde2c4cfd28cdb16a4a41d95c94298 SHA512 a0a7ef6f7df3374d35f4e6cc38a06e4cf15bed7b51081f25b0cae279f0fb0a401155f1522f63342caa9ac5e7879e65f3a1c8d6bd2422ba835bfb53c9339475b5
DIST pinball-0.3.1.tar.gz 6082982 BLAKE2B 307fd8fa6a6a64a15423f2cdacf6711affec4d0a94beca4c660316fa2db268b857fe80d3a672a078fd4454e858fdbf235ab3c62ba9695ee6df422b56536ba2d2 SHA512 d54f2635f583be8a7e4bf3463c69c1ab368e1c069dd7c4edffb95df0448faf7e82ddb8f8607d22a7336e2db176134555ca65b613e9d008b38fecb8ad5a818498
62 changes: 62 additions & 0 deletions games-arcade/emilia-pinball/emilia-pinball-0.3.20230219.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools desktop

if [[ "${PV}" == "9999" ]]
then
EGIT_REPO_URI="https://github.com/adoptware/pinball"
inherit git-r3
else
MY_P="pinball-${PV}"
SRC_URI="https://github.com/adoptware/pinball/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_P}"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
fi

DESCRIPTION="SDL OpenGL pinball game"
HOMEPAGE="https://github.com/adoptware/pinball"

LICENSE="GPL-2 CC0-1.0"
SLOT="0"
IUSE="gles1-only"

DEPEND="
media-libs/libsdl2[joystick,opengl,video]
gles1-only? ( media-libs/libsdl2[gles1] )
virtual/opengl
"
RDEPEND="
${DEPEND}
acct-group/gamestat
"

PATCHES=(
"${FILESDIR}/${P}_system_libtool.patch"
)

src_prepare() {
default
eautoreconf
}

src_configure() {
econf $(use_enable gles1-only gles)
}

src_install() {
default

find "${ED}" -name '*.la' -delete || die

dosym pinball /usr/bin/emilia-pinball

newicon data/pinball.xpm ${PN}.xpm
make_desktop_entry emilia-pinball "Emilia pinball"

fperms -R 660 /var/games/pinball
fowners -R root:gamestat /usr/bin/pinball /var/games/pinball
fperms g+s /usr/bin/pinball
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
From 342b0bf401d0a6b11993c4f617e3504515f6013f Mon Sep 17 00:00:00 2001
From: "Haelwenn (lanodan) Monnier" <[email protected]>
Date: Sun, 5 Mar 2023 09:55:16 +0100
Subject: [PATCH] Autotools: Reuse system libtool installation

---
Makefile.am | 2 +-
configure.ac | 10 +---------
helper.mk | 4 ++--
src/Makefile.am | 4 ++--
test/Makefile.am | 4 ++--
5 files changed, 8 insertions(+), 16 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 0e3e455..818de4b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS = gnu

-SUBDIRS = libltdl addon base data src test
+SUBDIRS = addon base data src test

EXTRA_DIST = bootstrap pinball.spec clean pinball.desktop

diff --git a/configure.ac b/configure.ac
index 7cd7970..b61db38 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,7 +9,6 @@ AC_INIT([pinball],

AC_CONFIG_MACRO_DIRS([libltdl/m4])
AM_CONFIG_HEADER(pinconfig.h)
-LT_CONFIG_LTDL_DIR([libltdl])

AC_CANONICAL_HOST
AC_CANONICAL_TARGET
@@ -33,15 +32,8 @@ AC_PROG_CC
AM_PROG_AR
AC_PROG_CXX
AC_PROG_INSTALL
-_LT_SET_OPTION([LT_INIT],[dlopen])
-AC_DIAGNOSE([obsolete],[AC_LIBTOOL_DLOPEN: Remove this warning and the call to _LT_SET_OPTION when you
-put the 'dlopen' option into LT_INIT's first parameter.])

-LT_INIT
-LTDL_INIT
-
-AC_SUBST(INCLTDL)
-AC_SUBST(LIBLTDL)
+LT_INIT([dlopen])

dnl *******************************************
dnl PATHS AND DIRS ****************************
diff --git a/helper.mk b/helper.mk
index 4e18b0a..e60674d 100755
--- a/helper.mk
+++ b/helper.mk
@@ -166,7 +166,7 @@ config.status configure: acinclude.m4 pinconfig.h.in Makefile.in

INSTALL config.guess config.sub depcomp install-sh autom4te.cache: Makefile.am ltmain.sh pinconfig.h.in README
@echo "# log: $@: $^"
- automake --add-missing --copy --force
+ automake --add-missing --copy
stat -c '%y: %n' $^ $@

README: README.md
@@ -198,7 +198,7 @@ pinconfig.h.in: aclocal.m4

libltdl/m4 compile missing ltmain.sh: configure.ac
@echo "# log: $@: $<"
- libtoolize --ltdl --force --copy
+ libtoolize --force
stat -c '%y: %n' $^ $@

devel: ${app}
diff --git a/src/Makefile.am b/src/Makefile.am
index 665882f..03f46f4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,9 +7,9 @@ bin_PROGRAMS = pinball

pinlib_LIBRARIES = libemilia_pin.a

-AM_CPPFLAGS = -I../base -I../addon @INCLTDL@
+AM_CPPFLAGS = -I../base -I../addon

-pinball_LDADD = libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a @LIBLTDL@
+pinball_LDADD = libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl
pinball_LDFLAGS = -export-dynamic

pinball_SOURCES = Pinball.cpp
diff --git a/test/Makefile.am b/test/Makefile.am
index 69d3dc3..bd42fd4 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -6,8 +6,8 @@ testdatadir = $(pkgdatadir)
noinst_PROGRAMS = scale simple light texture load explode collision signal billboard font thread menu joy sound trans math misc varray unittest
# noinst_PROGRAMS = unittest

-AM_CPPFLAGS = -I../base -I../addon -I../src @INCLTDL@
-LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a @LIBLTDL@
+AM_CPPFLAGS = -I../base -I../addon -I../src
+LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl

testlib_LTLIBRARIES = libModuleTest.la

--
2.39.2

0 comments on commit c68c9fc

Please sign in to comment.