From: Peter Korsgaard Date: Sat, 19 Sep 2009 19:31:57 +0000 (+0200) Subject: libevent: only install event_rpcgen.py if python support is enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=515b511d41dad7d59045e4dc08a5b7e5b2fba353;p=buildroot.git libevent: only install event_rpcgen.py if python support is enabled Signed-off-by: Peter Korsgaard --- diff --git a/package/libevent/libevent.mk b/package/libevent/libevent.mk index c63dbdb441..f71bf9a113 100644 --- a/package/libevent/libevent.mk +++ b/package/libevent/libevent.mk @@ -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