summaryrefslogtreecommitdiff
path: root/package/libXxf86vm
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/libXxf86vm
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/libXxf86vm')
-rw-r--r--package/libXxf86vm/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/package/libXxf86vm/Makefile b/package/libXxf86vm/Makefile
index e881b4be4..1ad227777 100644
--- a/package/libXxf86vm/Makefile
+++ b/package/libXxf86vm/Makefile
@@ -12,15 +12,28 @@ PKG_SECTION:= x11/libs
PKG_BUILDDEP:= xf86vidmodeproto libXext
PKG_SITES:= ${MASTER_SITE_XORG}
+PKG_SUBPKGS:= LIBXXF86VM LIBXXF86VM_DEV
+PKGSC_LIBXXF86VM_DEV:= devel
+PKSSD_LIBXXF86VM_DEV:= XFree86-VidModeExtension headers
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBXXF86VM,libxxf86vm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBXXF86VM_DEV,libxxf86vm-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKSSD_LIBXXF86VM_DEV},${PKGSC_LIBXXF86VM_DEV}))
CONFIGURE_ARGS+= --disable-malloc0returnsnull
-post-install:
+libxxf86vm-install:
$(INSTALL_DIR) $(IDIR_LIBXXF86VM)/usr/lib
${CP} $(WRKINST)/usr/lib/libXxf86vm*.so* \
$(IDIR_LIBXXF86VM)/usr/lib
+libxxf86vm-dev-install:
+ $(INSTALL_DIR) $(IDIR_LIBXXF86VM_DEV)/usr/include
+ ${CP} $(WRKINST)/usr/include/* \
+ $(IDIR_LIBXXF86VM_DEV)/usr/include
+ $(INSTALL_DIR) $(IDIR_LIBXXF86VM_DEV)/usr/lib/pkgconfig
+ ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/*.pc \
+ $(IDIR_LIBXXF86VM_DEV)/usr/lib/pkgconfig
+
include ${TOPDIR}/mk/pkg-bottom.mk