aboutsummaryrefslogtreecommitdiff
path: root/package/physfs/physfs.mk
diff options
context:
space:
mode:
authorGravatar Romain Naour <romain.naour@gmail.com>2017-03-25 22:58:58 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-26 22:37:35 +0200
commitba2850edcc88c318d1f92edb7f76e54cecc3ec6e (patch)
tree804173a95d17d61551ac9216cb0aede38a45410d /package/physfs/physfs.mk
parent7f4e9490b647510572a22d0da0668325c836e2e7 (diff)
downloadbuildroot-ba2850edcc88c318d1f92edb7f76e54cecc3ec6e.tar.gz
buildroot-ba2850edcc88c318d1f92edb7f76e54cecc3ec6e.tar.bz2
package/physfs: new package
Backport a patch from SuperTux project: https://github.com/SuperTux/physfs/commit/61d3b63abcba8e9615dcb8a3d1fc026bf7f8d5f8 Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/physfs/physfs.mk')
-rw-r--r--package/physfs/physfs.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/physfs/physfs.mk b/package/physfs/physfs.mk
new file mode 100644
index 0000000000..c88d7cfc56
--- /dev/null
+++ b/package/physfs/physfs.mk
@@ -0,0 +1,30 @@
+################################################################################
+#
+# physfs
+#
+################################################################################
+
+PHYSFS_VERSION = be27dfd07d97336145e7f49d3fd200a6e902f85e
+PHYSFS_SITE = https://hg.icculus.org/icculus/physfs
+PHYSFS_SITE_METHOD = hg
+
+PHYSFS_LICENSE = zlib license (physfs), LGPL with exceptions (lzma)
+PHYSFS_LICENSE_FILES = LICENSE.txt src/lzma/LGPL.txt
+
+PHYSFS_INSTALL_STAGING = YES
+
+PHYSFS_CONF_OPTS = -DPHYSFS_BUILD_TEST=OFF
+
+ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
+PHYSFS_CONF_OPTS += -DPHYSFS_BUILD_SHARED=ON
+else
+PHYSFS_CONF_OPTS += -DPHYSFS_BUILD_SHARED=OFF
+endif
+
+ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
+PHYSFS_CONF_OPTS += -DPHYSFS_BUILD_STATIC=ON
+else
+PHYSFS_CONF_OPTS += -DPHYSFS_BUILD_STATIC=OFF
+endif
+
+$(eval $(cmake-package))