Skip to content

Commit

Permalink
3ds-physfs: use new cmake machinery
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed Jun 11, 2021
1 parent 2015e67 commit 7f81c29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions 3ds/physfs/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
# Maintainer: Dave Murphy <davem@devkitpro.org>
pkgname=3ds-physfs
pkgver=3.0.2
pkgrel=2
pkgdesc='PhysicsFS is a library to provide abstract access to various archives. (for Nintendo 3DS homebrew development)'
pkgrel=3
pkgdesc='A library to provide abstract access to various archives.'
arch=('any')
url='https://icculus.org/physfs/'
license=('zlib')
options=(!strip libtool staticlibs)
source=( "https://icculus.org/physfs/downloads/physfs-${pkgver}.tar.bz2"
"physfs-${pkgver}.patch")
makedepends=('devkitARM' 'devkitpro-pkgbuild-helpers')
makedepends=('devkitARM' 'dkp-toolchain-vars' '3ds-cmake')
sha256sums=(
'304df76206d633df5360e738b138c94e82ccf086e50ba84f456d3f8432f9f863'
'f6be88b61fa4bd7c396bfa87e1a19ed267e91505d735e2c557065721a9da09a1'
)
'2a1d40055fd4e83bffbb955a4c1b21753ad9611e31c1d18d7d738bdaa1f366de'
)
groups=('3ds-portlibs')
build() {
cd physfs-$pkgver

patch -Np1 -i "$srcdir"/physfs-${pkgver}.patch

cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/3ds.cmake \
source ${DEVKITPRO}/3dsvars.sh

arm-none-eabi-cmake -G"Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/opt/devkitpro/portlibs/3ds \
-DPHYSFS_BUILD_STATIC=ON -DPHYSFS_BUILD_SHARED=OFF \
-DPHYSFS_BUILD_TEST=OFF \
Expand Down
2 changes: 1 addition & 1 deletion 3ds/physfs/physfs-3.0.2.patch
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ index d4e4bfd..2385433 100644
#elif defined(__QNX__)
# define PHYSFS_PLATFORM_QNX 1
# define PHYSFS_PLATFORM_POSIX 1
+#elif defined(_3DS)
+#elif defined(__3DS__)
+# define PHYSFS_PLATFORM_POSIX 1
+# define PHYSFS_PLATFORM_3DS 1
+# define PHYSFS_NO_CDROM_SUPPORT 1
Expand Down

0 comments on commit 7f81c29

Please sign in to comment.