/[gentoo-x86]/dev-games/physfs/physfs-2.0.3.ebuild
Gentoo

Contents of /dev-games/physfs/physfs-2.0.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Jan 20 13:11:50 2013 UTC (19 months, 1 week ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
Stable for arm, wrt bug #449930

(Portage version: 2.1.11.31/cvs/Linux ppc64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-games/physfs/physfs-2.0.3.ebuild,v 1.8 2013/01/20 10:15:33 ago Exp $
4
5 EAPI=2
6 inherit cmake-utils
7
8 DESCRIPTION="Abstraction layer for filesystem and archive access"
9 HOMEPAGE="http://icculus.org/physfs/"
10 SRC_URI="http://icculus.org/physfs/downloads/${P}.tar.bz2"
11
12 LICENSE="ZLIB"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86 ~x86-fbsd"
15 IUSE="doc grp hog mvl qpak static-libs wad +zip"
16
17 RDEPEND=""
18 DEPEND="doc? ( app-doc/doxygen )"
19
20 src_prepare() {
21 sed -i -e 's:-Werror::' CMakeLists.txt || die
22 # make sure these libs aren't used
23 rm -rf lzma zlib*
24 }
25
26 src_configure() {
27 local mycmakeargs="
28 -DPHYSFS_ARCHIVE_7Z=OFF
29 -DPHYSFS_BUILD_SHARED=ON
30 -DPHYSFS_BUILD_TEST=OFF
31 -DPHYSFS_BUILD_WX_TEST=OFF
32 -DPHYSFS_INTERNAL_ZLIB=OFF
33 $(cmake-utils_use static-libs PHYSFS_BUILD_STATIC)
34 $(cmake-utils_use grp PHYSFS_ARCHIVE_GRP)
35 $(cmake-utils_use hog PHYSFS_ARCHIVE_HOG)
36 $(cmake-utils_use mvl PHYSFS_ARCHIVE_MVL)
37 $(cmake-utils_use wad PHYSFS_ARCHIVE_WAD)
38 $(cmake-utils_use qpak PHYSFS_ARCHIVE_QPAK)
39 $(cmake-utils_use zip PHYSFS_ARCHIVE_ZIP)"
40
41 cmake-utils_src_configure
42 }
43
44 src_compile() {
45 cmake-utils_src_compile
46
47 if use doc ; then
48 doxygen || die "doxygen failed"
49 fi
50 }
51
52 src_install() {
53 local DOCS="CHANGELOG.txt CREDITS.txt TODO.txt"
54 local HTML_DOCS=$(use doc && echo docs/html/*)
55
56 cmake-utils_src_install
57 }

  ViewVC Help
Powered by ViewVC 1.1.20