Browse Source

allow libpopt to be statically build

Waldemar Brodkorb 13 years ago
parent
commit
93f115b74d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      package/popt/Makefile

+ 5 - 1
package/popt/Makefile

@@ -16,9 +16,13 @@ PKG_SITES:=		http://rpm5.org/files/popt/
 
 PKG_SUBPKGS:=		LIBPOPT
 
+ifeq ($(ADK_STATIC),y)
+PKG_OPTS:=		libonly
+endif
+
 include ${TOPDIR}/mk/package.mk
 
-$(eval $(call PKG_template,LIBPOPT,libpopt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBPOPT,libpopt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
 
 post-install:
 	${INSTALL_DIR} ${IDIR_LIBPOPT}/usr/lib