aboutsummaryrefslogtreecommitdiff
path: root/package/physfs/physfs.mk
blob: 78176be4bffcc5cab825b2eb2e17b722b8a99102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
################################################################################
#
# physfs
#
################################################################################

PHYSFS_VERSION = 3.0.1
PHYSFS_SOURCE = physfs-$(PHYSFS_VERSION).tar.bz2
PHYSFS_SITE = https://icculus.org/physfs/downloads

PHYSFS_LICENSE = Zlib
PHYSFS_LICENSE_FILES = LICENSE.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))