61901bd74a
libnl does not only install libnl.so, but also libnl-nf.so, libnl-genl.so and libnl-route.so. Change the post-install and uninstall hooks to handle these libraries as well. Signed-off-by: Sven Neumann <s.neumann@raumfeld.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
27 lines
832 B
Makefile
27 lines
832 B
Makefile
#############################################################
|
|
#
|
|
# libnl
|
|
#
|
|
#############################################################
|
|
|
|
LIBNL_VERSION = 1.1
|
|
LIBNL_SOURCE = libnl-$(LIBNL_VERSION).tar.gz
|
|
LIBNL_SITE = http://distfiles.gentoo.org/distfiles
|
|
LIBNL_INSTALL_STAGING = YES
|
|
LIBNL_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
|
|
|
$(eval $(call AUTOTARGETS,package,libnl))
|
|
|
|
$(LIBNL_HOOK_POST_INSTALL): $(LIBNL_TARGET_INSTALL_TARGET)
|
|
ifneq ($(BR2_ENABLE_DEBUG),y)
|
|
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libnl.so*
|
|
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libnl-*.so*
|
|
endif
|
|
touch $@
|
|
|
|
$(LIBNL_TARGET_UNINSTALL):
|
|
$(call MESSAGE,"Uninstalling")
|
|
rm -f $(TARGET_DIR)/usr/lib/libnl.so*
|
|
rm -f $(TARGET_DIR)/usr/lib/libnl-*.so*
|
|
rm -f $(LIBNL_TARGET_INSTALL_TARGET) $(LIBNL_HOOK_POST_INSTALL)
|