summaryrefslogtreecommitdiff
path: root/package/libSM
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-02-24 17:41:36 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-02-24 17:41:36 +0100
commit0aabef127155575e8c8d660605f9401ab15356aa (patch)
treeb8cd5f06c60cd4e95fd7a2923dabb3b831dd93b3 /package/libSM
parent0b09c2710166bd95ac9033b048bb6cbf7b4de7c2 (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/libSM')
-rw-r--r--package/libSM/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/package/libSM/Makefile b/package/libSM/Makefile
index 33c09cf6e..0b733dcc0 100644
--- a/package/libSM/Makefile
+++ b/package/libSM/Makefile
@@ -13,12 +13,24 @@ PKG_DEPENDS:= libuuid
PKG_BUILDDEP:= libICE
PKG_SITES:= ${MASTER_SITE_XORG}
+PKG_SUBPKGS:= LIBSM LIBSM_DEV
+PKGSD_LIBSM_DEV:= X11 Session Management headers
+PKGSC_LIBSM_DEV:= x11/devel
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBSM,libsm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBSM_DEV,libsm-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBSM_DEV},${PKGSC_LIBSM_DEV}))
-post-install:
+libsm-install:
${INSTALL_DIR} ${IDIR_LIBSM}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libSM.so* ${IDIR_LIBSM}/usr/lib/
+ ${CP} ${WRKINST}/usr/lib/libSM.so* ${IDIR_LIBSM}/usr/lib
+
+libsm-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBSM_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBSM_DEV}/usr/include
+ ${INSTALL_DIR} ${IDIR_LIBSM_DEV}/usr/lib/pkgconfig
+ ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/*.pc \
+ ${IDIR_LIBSM_DEV}/usr/lib/pkgconfig
include ${TOPDIR}/mk/pkg-bottom.mk