Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= libXcomposite
  5. PKG_VERSION:= 0.4.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= b93dac50c86db6eba3f72e949f5bed2a
  8. PKG_DESCR:= X composite library
  9. PKG_SECTION:= x11/libs
  10. PKG_BUILDDEP:= libX11 compositeproto
  11. PKG_SITES:= ${MASTER_SITE_XORG}
  12. PKG_SUBPKGS:= LIBXCOMPOSITE LIBXCOMPOSITE_DEV
  13. PKGSD_LIBXCOMPOSITE_DEV:= X11 composite headers
  14. PKGSC_LIBXCOMPOSITE_DEV:= devel
  15. ifeq ($(ADK_STATIC),y)
  16. PKG_OPTS:= libonly
  17. endif
  18. include $(TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,LIBXCOMPOSITE,libxcomposite,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  20. $(eval $(call PKG_template,LIBXCOMPOSITE_DEV,libxcomposite-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBXCOMPOSITE_DEV},${PKGSC_LIBXCOMPOSITE_DEV},${PKG_OPTS}))
  21. SUB_INSTALLS-y:=
  22. SUB_INSTALLS-m:=
  23. SUB_INSTALLS-${ADK_PACKAGE_LIBXCOMPOSITE_DEV}+= libxcomposite-dev-install
  24. CONFIGURE_ARGS+= --disable-malloc0returnsnull
  25. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  26. ${INSTALL_DIR} ${IDIR_LIBXCOMPOSITE}/usr/lib
  27. ${CP} ${WRKINST}/usr/lib/libXcomposite.so* ${IDIR_LIBXCOMPOSITE}/usr/lib/
  28. libxcomposite-dev-install:
  29. ${INSTALL_DIR} ${IDIR_LIBXCOMPOSITE_DEV}/usr/include/X11/extensions
  30. ${CP} ${WRKINST}/usr/include/X11/extensions/*.h \
  31. ${IDIR_LIBXCOMPOSITE_DEV}/usr/include/X11/extensions
  32. include ${TOPDIR}/mk/pkg-bottom.mk