summaryrefslogtreecommitdiff
path: root/package/libupnp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/libupnp/Makefile')
-rw-r--r--package/libupnp/Makefile13
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