summaryrefslogtreecommitdiff
path: root/package/libXfixes/Makefile
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/libXfixes/Makefile
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/libXfixes/Makefile')
-rw-r--r--package/libXfixes/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/package/libXfixes/Makefile b/package/libXfixes/Makefile
index 7895a0a3c..9a6f5b308 100644
--- a/package/libXfixes/Makefile
+++ b/package/libXfixes/Makefile
@@ -10,16 +10,27 @@ PKG_MD5SUM:= 556ffa2e75f2a3b5d92d004a6b124a6d
PKG_DESCR:= X Fixes Library
PKG_SECTION:= x11/libs
PKG_BUILDDEP:= fixesproto xextproto xproto libX11
-PKG_URL:= http://xorg.freedesktop.org
-PKG_SITES:= http://xorg.freedesktop.org/archive/individual/lib/
+PKG_URL:= http://xorg.freedesktop.org/
+PKG_SITES:= ${MASTER_SITE_XORG}
+
+PKG_SUBPKGS:= LIBXFIXES LIBXFIXES_DEV
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBXFIXES,libxfixes,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBXFIXES_DEV,libxfixes-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-post-install:
+libxfixes-install:
$(INSTALL_DIR) $(IDIR_LIBXFIXES)/usr/lib
$(CP) $(WRKINST)/usr/lib/libXfixes*.so* \
$(IDIR_LIBXFIXES)/usr/lib
+libxfixes-dev-install:
+ $(INSTALL_DIR) $(IDIR_LIBXFIXES_DEV)/usr/include/X11/extensions
+ $(CP) $(WRKINST)/usr/include/X11/extensions/Xfixes.h \
+ $(IDIR_LIBXFIXES_DEV)/usr/include/X11/extensions
+ $(INSTALL_DIR) $(IDIR_LIBXFIXES_DEV)/usr/lib/pkgconfig
+ $(CP) $(WRKINST)/usr/lib/pkgconfig/xfixes.pc \
+ $(IDIR_LIBXFIXES_DEV)/usr/lib/pkgconfig
+
include ${TOPDIR}/mk/pkg-bottom.mk