diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-02-24 17:41:36 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-02-24 17:41:36 +0100 |
commit | 0aabef127155575e8c8d660605f9401ab15356aa (patch) | |
tree | b8cd5f06c60cd4e95fd7a2923dabb3b831dd93b3 /package/libupnp | |
parent | 0b09c2710166bd95ac9033b048bb6cbf7b4de7c2 (diff) |
allow native build of a lot of packages
STAGING_TARGET_DIR is used for package Makefile's for
include and library search path's. STAGING_DIR is used
for common code in mk/ or Makefile/rules.mk.
STAGING_TARGET_DIR is /usr when native builds are used.
Diffstat (limited to 'package/libupnp')
-rw-r--r-- | package/libupnp/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/package/libupnp/Makefile b/package/libupnp/Makefile index 7e4c59366..98f9aca9b 100644 --- a/package/libupnp/Makefile +++ b/package/libupnp/Makefile @@ -13,11 +13,14 @@ PKG_DEPENDS:= libpthread PKG_URL:= http://pupnp.sourceforge.net/ PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=pupnp/} +PKG_SUBPKGS:= LIBUPNP LIBUPNP_DEV + DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,LIBUPNP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,LIBUPNP,libupnp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,LIBUPNP_DEV,libupnp-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) TARGET_CFLAGS+= -fPIC CONFIGURE_ARGS+= --disable-samples @@ -26,8 +29,12 @@ post-build: sed -i -e 's#^libdir=.*#libdir=#' \ ${WRKBUILD}/threadutil/libthreadutil.la -post-install: +libupnp-install: ${INSTALL_DIR} ${IDIR_LIBUPNP}/usr/lib - ${CP} ${WRKINST}/usr/lib/lib*.so* ${IDIR_LIBUPNP}/usr/lib/ + ${CP} ${WRKINST}/usr/lib/lib*.so* ${IDIR_LIBUPNP}/usr/lib + +libupnp-dev-install: + ${INSTALL_DIR} ${IDIR_LIBUPNP_DEV}/usr/include + ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBUPNP_DEV}/usr/include include ${TOPDIR}/mk/pkg-bottom.mk |