1 ################################################################################
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
19 --sysconfdir
=/etc
/monkey \
21 --mandir=/usr
/share
/man \
24 --plugdir
=/usr
/lib
/monkey \
27 # --uclib-mode is not a typo
28 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC
),y
)
29 MONKEY_CONF_OPTS
+= --uclib-mode
--no-backtrace
32 ifeq ($(BR2_TOOLCHAIN_USES_MUSL
),y
)
33 MONKEY_CONF_OPTS
+= --musl-mode
--no-backtrace
36 ifeq ($(BR2_PACKAGE_MONKEY_SHARED
),y
)
37 MONKEY_CONF_OPTS
+= --enable-shared
38 MONKEY_INSTALL_STAGING
= YES
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
45 MONKEY_POST_INSTALL_TARGET_HOOKS
+= MONKEY_REMOVE_DANGLING_SYMLINK
48 ifeq ($(BR2_ENABLE_DEBUG
),y
)
49 MONKEY_CONF_OPTS
+= --debug
52 define MONKEY_CONFIGURE_CMDS
53 (cd
$(@D
); $(TARGET_CONFIGURE_OPTS
) .
/configure
$(MONKEY_CONF_OPTS
))
56 define MONKEY_BUILD_CMDS
57 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)
60 define MONKEY_INSTALL_STAGING_CMDS
61 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) DESTDIR
=$(STAGING_DIR
) install
64 define MONKEY_INSTALL_TARGET_CMDS
65 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) DESTDIR
=$(TARGET_DIR
) install
68 $(eval
$(generic-package
))