Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pinball: Add version 0.3.20201218 #52

Merged
merged 1 commit into from
Jan 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions recipes-games/pinball/pinball_0.3.20201218.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
DESCRIPTION = "Emilia Pinball Simulator"
HOMEPAGE = "http://pinball.sf.net/"
SECTION = "games"
LICENSE = "GPLv2 & CC0-1.0"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
file://debian/copyright;md5=ef0d1a481815636a22c1d73b1233d9c0 \
"

SRC_URI = "git://github.com/adoptware/pinball.git;protocol=https;nobranch=1"
SRCREV = "fdb2fa3ebea8a1c20e1a50a54c5df292d342b531"

S = "${WORKDIR}/git"

DEPENDS += "libsdl libsdl-image libsdl-mixer \
libx11 \
virtual/libgl \
libglu \
alsa-lib \
libvorbis \
tiff \
"

inherit features_check pkgconfig autotools-brokensep

REQUIRED_DISTRO_FEATURES = "opengl x11"

rzr marked this conversation as resolved.
Show resolved Hide resolved
PACKAGECONFIG ??= "sdl sdl-image sdl-mixer"
PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl"
PACKAGECONFIG[sdl-image] = "--enable-sdl-image,--disable-sdl-image,libsdl-image"
PACKAGECONFIG[sdl-mixer] = "--enable-sdl-mixer,--disable-sdl-mixer,libsdl-mixer"

PACKAGES = "${PN}"
PACKAGES += "${PN}-dev"
PACKAGES += "${PN}-staticdev"
PACKAGES += "${PN}-dbg"
PACKAGES += "${PN}-data"

REMOVE_LIBTOOL_LA = "0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? Anything broken without it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well build from outside directory did not work, so I used
https://git.congatec.com/yocto/poky/commit/069de520ec864fc78084e8f1ddfb20edaab55f5e
la file should be preserved for plugin loader


do_configure_prepend() {
cd ${S}
sed -e "s|libtool --version|-libtool --version|g" -i helper.mk
./bootstrap
}

rzr marked this conversation as resolved.
Show resolved Hide resolved
FILES_${PN}-dev = "\
${includedir}/${PN}/* \
${bindir}/${PN}-config \
"

FILES_${PN}-staticdev = "\
${libdir}/${PN}/lib*.a \
"

FILES_${PN}-dbg = "\
${libdir}/${PN}/.debug/libModule*.so* \
"

FILES_${PN} = "\
${libdir}/${PN}/libModule*.so* \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks wrong and makes

INSANE_SKIP_${PN} = "dev-so"

below necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are tables behaviors plugins

${libdir}/${PN}/libModule*.la* \
${bindir}/${PN} \
"

FILES_${PN}-data = "\
${datadir}/${PN}/* \
${localstatedir}/games/${PN}/*/highscores \
"

RDEPENDS_${PN} += " ${PN}-data"
INSANE_SKIP_${PN} = "dev-so"