initial import
This commit is contained in:
41
pcsxr-pgxp/PKGBUILD
Normal file
41
pcsxr-pgxp/PKGBUILD
Normal file
@@ -0,0 +1,41 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=pcsxr-pgxp
|
||||
pkgbasename=pcsxr
|
||||
pkgver=1.9.94
|
||||
pkgrel=3
|
||||
pkgdesc="A PSX emulator with Parallel/Precision Geometry Transform Pipeline"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://github.com/iCatButler/pcsxr'
|
||||
license=('GPL-3')
|
||||
depends=('ffmpeg' 'gtk' 'mesa-libgl' 'libarchive' 'libcdio' 'libxv' 'sdl2')
|
||||
makedepends=('cmake' 'intltool' 'pango' 'gettext-tiny' 'libxtst')
|
||||
source=("${pkgname}-${pkgver}.zip::https://github.com/iCatButler/pcsxr/archive/refs/heads/master.zip"
|
||||
"fix-pango.patch")
|
||||
sha512sums=('eb7a4917990424351d397f162e13c32f993c919f55a42bd1c3786b66693fa07056ea30da504c9c110c239f257e5692f8d7bebdc9d23398d89704368205853290'
|
||||
'0fb9005bfd5854da3a778aeef3d787b9092d897ff73ea0b203e4241944fb9ffaa5a6e289c7135ea21e739c947fe4ca206d17b6ee5b6fd2bc46ef02f1102b7ddb')
|
||||
|
||||
prepare() {
|
||||
mv ${pkgbasename}-master ${pkgname}-${pkgver}
|
||||
cd "${pkgname}-${pkgver}"
|
||||
patch -p1 -i "$srcdir"/fix-pango.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cmake \
|
||||
-S ${pkgname}-${pkgver} \
|
||||
-B build \
|
||||
-DCMAKE_BUILD_TYPE='Release' \
|
||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
||||
-DCMAKE_INSTALL_LIBDIR='/usr/lib' \
|
||||
-DSND_BACKEND='sdl' \
|
||||
-DENABLE_CCDDA='ON' \
|
||||
-DUSE_LIBARCHIVE='ON' \
|
||||
-DUSE_LIBCDIO='ON'
|
||||
make -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" -C build install
|
||||
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/COPYING" -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
24
pcsxr-pgxp/fix-pango.patch
Normal file
24
pcsxr-pgxp/fix-pango.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
diff --git a/cmake/FindGTK3.cmake b/cmake/FindGTK3.cmake
|
||||
index 049a276f..9e75806c 100644
|
||||
--- a/cmake/FindGTK3.cmake
|
||||
+++ b/cmake/FindGTK3.cmake
|
||||
@@ -50,6 +50,7 @@ if(GTK3_LIBRARY)
|
||||
set_property(TARGET ${GTK3} PROPERTY INTERFACE_COMPILE_OPTIONS "${GTK3_PKG_CFLAGS_OTHER}")
|
||||
|
||||
set(GTK3_INCLUDE_DIRS)
|
||||
+ include_directories(/usr/include/harfbuzz)
|
||||
|
||||
find_path(GTK3_INCLUDE_DIR "gtk/gtk.h"
|
||||
HINTS ${GTK3_PKG_INCLUDE_DIRS})
|
||||
diff --git a/plugins/peopsxgl/CMakeLists.txt b/plugins/peopsxgl/CMakeLists.txt
|
||||
index 907009ce..850da301 100644
|
||||
--- a/plugins/peopsxgl/CMakeLists.txt
|
||||
+++ b/plugins/peopsxgl/CMakeLists.txt
|
||||
@@ -18,6 +18,7 @@ set(GTK_LIBRARIES ${GTK3_LIBRARY} ${GDK3_LIBRARY} ${GDKPixbuf_LIBRARY} ${Pango_L
|
||||
|
||||
find_package(X11 REQUIRED)
|
||||
|
||||
+set(OpenGL_GL_PREFERENCE LEGACY)
|
||||
find_package(OpenGL REQUIRED)
|
||||
if(NOT OPENGL_FOUND)
|
||||
message(FATAL_ERROR "GL library not found")
|
||||
Reference in New Issue
Block a user