mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
testing/plib: new aport
A portable game library
This commit is contained in:
parent
a1b32c10e4
commit
3d476a3d20
47
testing/plib/APKBUILD
Normal file
47
testing/plib/APKBUILD
Normal file
@ -0,0 +1,47 @@
|
||||
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
||||
# Maintainer:
|
||||
pkgname=plib
|
||||
pkgver=1.8.5
|
||||
pkgrel=0
|
||||
pkgdesc="Portable Game Library"
|
||||
url="http://plib.sourceforge.net"
|
||||
arch="all"
|
||||
license="LGPL"
|
||||
depends=
|
||||
depends_dev=
|
||||
makedepends="$depends_dev libxi-dev libxmu-dev mesa-dev"
|
||||
install=
|
||||
subpackages=
|
||||
source="http://plib.sourceforge.net/dist/$pkgname-$pkgver.tar.gz
|
||||
includes-fix.patch"
|
||||
builddir="$srcdir"/$pkgname-$pkgver
|
||||
|
||||
prepare() {
|
||||
cd "$builddir"
|
||||
default_prepare || return 1
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info || return 1
|
||||
make || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
|
||||
# remove the 2 lines below (and this) if there is no init.d script
|
||||
# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
||||
# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
|
||||
}
|
||||
|
||||
md5sums="47a6fbf63668c1eed631024038b2ea90 plib-1.8.5.tar.gz
|
||||
62895ce3225fe891438d0fb311e12a7f includes-fix.patch"
|
||||
sha256sums="485b22bf6fdc0da067e34ead5e26f002b76326f6371e2ae006415dea6a380a32 plib-1.8.5.tar.gz
|
||||
cbbb21ce6bf4c298328da6a06adbb2aedf1fea0844ba72de67aec577c90d8a3f includes-fix.patch"
|
||||
sha512sums="17154cc77243fe576c2bcbcb0285b98aef1a0634658f5473e95fe0ac8fa3ed477dbe5620e44ccf0b7cc616f812af0cd44d6fcbba0c563180d3b61c9d6f158e1d plib-1.8.5.tar.gz
|
||||
a7a3f0514c698945b47cbf5242b3213df9ac9265b52268b6dfea50e51597dadf0f4e83608bc6b25d6deb22b42505162e25192de082590effbdda8f38d0860dc8 includes-fix.patch"
|
||||
11
testing/plib/includes-fix.patch
Normal file
11
testing/plib/includes-fix.patch
Normal file
@ -0,0 +1,11 @@
|
||||
# https://sourceforge.net/p/plib/bugs/53/
|
||||
--- a/src/ssg/ssgLoadFLT.cxx
|
||||
+++ b/src/ssg/ssgLoadFLT.cxx
|
||||
@@ -103,6 +103,7 @@
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
+#include <sys/types.h>
|
||||
#ifdef UL_IRIX
|
||||
# include <sys/endian.h>
|
||||
#endif
|
||||
Loading…
x
Reference in New Issue
Block a user