$NetBSD: patch-libr-Makefile,v 1.1 2015/02/27 12:11:20 gdt Exp $

Install libs with +x perms
Patch cherry-picked from upstream
https://github.com/radare/radare2/commit/046f0a447e2bc4a7907ed1d6911af4ba2a9ca920
https://github.com/radare/radare2/commit/2f551b485052f0c9207a63f05ce26406766391b0

--- libr/Makefile.orig	2014-10-13 14:54:13.000000000 +0000
+++ libr/Makefile
@@ -1,5 +1,6 @@
 include ../global.mk
 include config.mk
+include ../config-user.mk
 include ../mk/${COMPILER}.mk
 
 DESTDIR:=$(call rmbdlslash,$(DESTDIR))
@@ -124,7 +125,7 @@ install: install-includes install-pkgcon
 	@${INSTALL_DIR} "${LFX}/radare2/${VERSION}"
 	@for a in `find */p -perm -u+x -type f | grep -v exe | grep -v dll | grep ${EXT_SO}`; \
 	  do echo " ${LFX}/radare2/${VERSION}/$$a"; \
-	${INSTALL_DATA} "$$a" "${LFX}/radare2/${VERSION}" ; done
+	${INSTALL_LIB} "$$a" "${LFX}/radare2/${VERSION}" ; done
 	cd "${LFX}/radare2" ; ln -fs "${VERSION}" last
 
 #@echo "lang/p/radare.* ${DESTDIR}/${PFX}/${LIBDIR}/radare2/${VERSION}"
