mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
libevent: convert old-style hook to new-style hook
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
1c8e89f4ce
commit
3c6985d309
@ -12,12 +12,14 @@ LIBEVENT_LIBTOOL_PATCH = NO
|
|||||||
LIBEVENT_INSTALL_STAGING = YES
|
LIBEVENT_INSTALL_STAGING = YES
|
||||||
LIBEVENT_INSTALL_TARGET = YES
|
LIBEVENT_INSTALL_TARGET = YES
|
||||||
|
|
||||||
$(eval $(call AUTOTARGETS,package,libevent))
|
define LIBEVENT_REMOVE_PYSCRIPT
|
||||||
|
|
||||||
ifneq ($(BR2_PACKAGE_PYTHON),y)
|
|
||||||
# libevent installs a python script to target - get rid of it if
|
|
||||||
# we don't have python support enabled
|
|
||||||
$(LIBEVENT_HOOK_POST_INSTALL):
|
|
||||||
rm $(TARGET_DIR)/usr/bin/event_rpcgen.py
|
rm $(TARGET_DIR)/usr/bin/event_rpcgen.py
|
||||||
touch $@
|
endef
|
||||||
|
|
||||||
|
# libevent installs a python script to target - get rid of it if we
|
||||||
|
# don't have python support enabled
|
||||||
|
ifneq ($(BR2_PACKAGE_PYTHON),y)
|
||||||
|
LIBEVENT_POST_INSTALL_TARGET_HOOKS += LIBEVENT_REMOVE_PYSCRIPT
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
$(eval $(call AUTOTARGETS,package,libevent))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user