libevent: only install event_rpcgen.py if python support is enabled

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2009-09-19 21:31:57 +02:00
parent a07032e117
commit 515b511d41
1 changed files with 8 additions and 0 deletions

View File

@ -13,3 +13,11 @@ LIBEVENT_INSTALL_STAGING = YES
LIBEVENT_INSTALL_TARGET = YES
$(eval $(call AUTOTARGETS,package,libevent))
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
touch $@
endif