summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-11-22 10:23:35 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-11-22 10:23:35 +0100
commit3b9b034c7eef47560d4bbd5e6a0812892a31fb3f (patch)
tree374714393400d9ad37c4cd4d41841475d7e2a337
parent79d3532b0f8f04ec07788c997b24162cdaab8b26 (diff)
fix static build
-rw-r--r--package/libusb-compat/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/libusb-compat/Makefile b/package/libusb-compat/Makefile
index 452616011..81dcfcd49 100644
--- a/package/libusb-compat/Makefile
+++ b/package/libusb-compat/Makefile
@@ -14,13 +14,17 @@ PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libusb/}
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+ifeq ($(ADK_STATIC),y)
+PKG_OPTS:= libonly
+endif
+
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,LIBUSB_COMPAT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBUSB_COMPAT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
CONFIGURE_STYLE:= gnu
BUILD_STYLE:= auto
-INSTALL_STYLE:= auto confprog
+INSTALL_STYLE:= auto
post-install:
${INSTALL_DIR} ${IDIR_LIBUSB_COMPAT}/usr/lib