Commit 515b511d authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

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

parent a07032e1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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