python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / monkey / monkey.mk
blob02c26c99f4181af038be1a2dc1d9731114178b61
1 ################################################################################
3 # monkey
5 ################################################################################
7 MONKEY_VERSION_MAJOR = 1.5
8 MONKEY_VERSION = $(MONKEY_VERSION_MAJOR).6
9 MONKEY_SITE = http://monkey-project.com/releases/$(MONKEY_VERSION_MAJOR)
10 MONKEY_LICENSE = Apache-2.0
11 MONKEY_LICENSE_FILES = LICENSE
13 # This package has a configure script, but it's not using
14 # autoconf/automake, so we're using the generic-package
15 # infrastructure.
17 MONKEY_CONF_OPTS = \
18 --prefix=/usr \
19 --sysconfdir=/etc/monkey \
20 --datadir=/var/www \
21 --mandir=/usr/share/man \
22 --logdir=/var/log \
23 --pidfile=/var/run \
24 --plugdir=/usr/lib/monkey \
25 --malloc-libc
27 # --uclib-mode is not a typo
28 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
29 MONKEY_CONF_OPTS += --uclib-mode --no-backtrace
30 endif
32 ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
33 MONKEY_CONF_OPTS += --musl-mode --no-backtrace
34 endif
36 ifeq ($(BR2_PACKAGE_MONKEY_SHARED),y)
37 MONKEY_CONF_OPTS += --enable-shared
38 MONKEY_INSTALL_STAGING = YES
39 else
40 # Even without --enable-shared, the monkey build system leaves a
41 # broken libmonkey.so symbolic link.
42 define MONKEY_REMOVE_DANGLING_SYMLINK
43 $(RM) -f $(TARGET_DIR)/usr/lib/libmonkey.so
44 endef
45 MONKEY_POST_INSTALL_TARGET_HOOKS += MONKEY_REMOVE_DANGLING_SYMLINK
46 endif
48 ifeq ($(BR2_ENABLE_DEBUG),y)
49 MONKEY_CONF_OPTS += --debug
50 endif
52 define MONKEY_CONFIGURE_CMDS
53 (cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(MONKEY_CONF_OPTS))
54 endef
56 define MONKEY_BUILD_CMDS
57 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
58 endef
60 define MONKEY_INSTALL_STAGING_CMDS
61 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
62 endef
64 define MONKEY_INSTALL_TARGET_CMDS
65 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
66 endef
68 $(eval $(generic-package))