diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-games/physfs/physfs-9999.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-games/physfs/physfs-9999.ebuild')
-rw-r--r-- | dev-games/physfs/physfs-9999.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-games/physfs/physfs-9999.ebuild b/dev-games/physfs/physfs-9999.ebuild new file mode 100644 index 000000000000..27e3aeb6c956 --- /dev/null +++ b/dev-games/physfs/physfs-9999.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-multilib + +DESCRIPTION="Abstraction layer for filesystem and archive access" +HOMEPAGE="http://icculus.org/physfs/" +if [[ ${PV} == *9999* ]]; then + EHG_REPO_URI="https://hg.icculus.org/icculus/physfs" + inherit mercurial +else + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86 ~x86-fbsd" + SRC_URI="http://icculus.org/physfs/downloads/${P}.tar.bz2" +fi + +LICENSE="ZLIB" +SLOT="0" +IUSE="grp hog mvl qpak static-libs wad +zip" + +RDEPEND="" +DEPEND="" + +DOCS=( docs/CHANGELOG.txt docs/CREDITS.txt docs/TODO.txt ) + +src_prepare() { + default + sed -i -e 's:-Werror::' CMakeLists.txt || die + # make sure these libs aren't used + rm -rf lzma zlib* +} + +src_configure() { + local mycmakeargs=( + -DPHYSFS_ARCHIVE_7Z=OFF + -DPHYSFS_BUILD_SHARED=ON + -DPHYSFS_BUILD_TEST=OFF + -DPHYSFS_BUILD_WX_TEST=OFF + -DPHYSFS_INTERNAL_ZLIB=OFF + -DPHYSFS_BUILD_STATIC="$(usex static-libs)" + -DPHYSFS_ARCHIVE_GRP="$(usex grp)" + -DPHYSFS_ARCHIVE_HOG="$(usex hog)" + -DPHYSFS_ARCHIVE_MVL="$(usex mvl)" + -DPHYSFS_ARCHIVE_WAD="$(usex wad)" + -DPHYSFS_ARCHIVE_QPAK="$(usex qpak)" + -DPHYSFS_ARCHIVE_ZIP="$(usex zip)" + ) + + cmake-multilib_src_configure +} |