Makefile 1.4 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:= libXext
  5. PKG_VERSION:= 1.1.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6b61b3f657befded8ae66e04085c413e
  8. PKG_DESCR:= X client interface to extensions of the X protocol
  9. PKG_SECTION:= x11/libs
  10. PKG_BUILDDEP:= libX11
  11. PKG_SITES:= ${MASTER_SITE_XORG}
  12. PKG_SUBPKGS:= LIBXEXT LIBXEXT_DEV
  13. PKGSD_LIBXEXT_DEV:= X11 extension headers
  14. PKGSC_LIBXEXT_DEV:= devel
  15. ifeq ($(ADK_STATIC),y)
  16. PKG_OPTS:= libonly
  17. endif
  18. include $(TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,LIBXEXT,libxext,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  20. $(eval $(call PKG_template,LIBXEXT_DEV,libxext-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBXEXT_DEV},${PKGSC_LIBXEXT_DEV},${PKG_OPTS}))
  21. SUB_INSTALLS-y:=
  22. SUB_INSTALLS-m:=
  23. SUB_INSTALLS-${ADK_PACKAGE_LIBXEXT_DEV}+=libxext-dev-install
  24. CONFIGURE_ARGS+= --disable-malloc0returnsnull
  25. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  26. ${INSTALL_DIR} ${IDIR_LIBXEXT}/usr/lib
  27. ${CP} ${WRKINST}/usr/lib/libXext.so* ${IDIR_LIBXEXT}/usr/lib/
  28. libxext-dev-install:
  29. ${INSTALL_DIR} ${IDIR_LIBXEXT_DEV}/usr/include/X11/extensions
  30. ${CP} ${WRKINST}/usr/include/X11/extensions/*.h \
  31. ${IDIR_LIBXEXT_DEV}/usr/include/X11/extensions
  32. include ${TOPDIR}/mk/pkg-bottom.mk