kumquat-buildroot/package/chipmunk/chipmunk.mk
Francois Perrad 5c599c0739 chipmunk: new package
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
[Thomas: use BUILD_SHARED, BUILD_STATIC and INSTALL_STATIC options.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-04-28 18:29:04 +02:00

29 lines
839 B
Makefile

################################################################################
#
# chipmunk
#
################################################################################
CHIPMUNK_VERSION = 7.0.2
CHIPMUNK_SITE = https://github.com/slembcke/Chipmunk2D/archive
CHIPMUNK_SOURCE = Chipmunk-$(CHIPMUNK_VERSION).tar.gz
CHIPMUNK_INSTALL_STAGING = YES
CHIPMUNK_LICENSE = MIT
CHIPMUNK_LICENSE_FILES = LICENSE.txt
CHIPMUNK_DEPENDENCIES = libgl
CHIPMUNK_CONF_OPTS = -DBUILD_DEMOS=OFF
ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
CHIPMUNK_CONF_OPTS += -DBUILD_STATIC=ON -DINSTALL_STATIC=ON
else
CHIPMUNK_CONF_OPTS += -DBUILD_STATIC=OFF -DINSTALL_STATIC=OFF
endif
ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
CHIPMUNK_CONF_OPTS += -DBUILD_SHARED=ON
else
CHIPMUNK_CONF_OPTS += -DBUILD_SHARED=OFF
endif
$(eval $(cmake-package))