300f9c9c9d
Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
25 lines
672 B
Makefile
25 lines
672 B
Makefile
#############################################################
|
|
#
|
|
# libevent
|
|
#
|
|
#############################################################
|
|
LIBEVENT_VERSION = 2.0.13
|
|
LIBEVENT_SOURCE = libevent-$(LIBEVENT_VERSION)-stable.tar.gz
|
|
LIBEVENT_SITE = http://monkey.org/~provos/
|
|
|
|
LIBEVENT_AUTORECONF = NO
|
|
LIBEVENT_INSTALL_STAGING = YES
|
|
LIBEVENT_INSTALL_TARGET = YES
|
|
|
|
define LIBEVENT_REMOVE_PYSCRIPT
|
|
rm $(TARGET_DIR)/usr/bin/event_rpcgen.py
|
|
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
|
|
|
|
$(eval $(call AUTOTARGETS))
|