1
0

Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= lvm
  5. PKG_VERSION:= 2.02.114
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= de9cb0acfb9c5a6afa6184160c9e066f19043677f91a72c741d153efcd2874a5
  8. PKG_DESCR:= logical volume management
  9. PKG_SECTION:= sys/fs
  10. PKG_DEPENDS:= libdevmapper libncurses
  11. PKG_BUILDDEP:= ncurses util-linux
  12. PKG_URL:= http://sourceware.org/lvm2/
  13. PKG_SITES:= ftp://sources.redhat.com/pub/lvm2/
  14. PKG_LIBNAME:= libdevmapper
  15. PKG_OPTS:= dev
  16. PKG_SUBPKGS:= LVM DEVICE_MAPPER LIBDEVMAPPER
  17. PKGSD_DEVICE_MAPPER:= device-mapper utility
  18. PKGSS_DEVICE_MAPPER:= libdevmapper
  19. PKGSD_LIBDEVMAPPER:= device-mapper library
  20. PKGSC_LIBDEVMAPPER:= libs/misc
  21. DISTFILES:= LVM2.${PKG_VERSION}.tgz
  22. WRKDIST= ${WRKDIR}/LVM2.${PKG_VERSION}
  23. include ${ADK_TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,LVM,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,DEVICE_MAPPER,device-mapper,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_DEVICE_MAPPER},${PKG_SECTION}))
  26. $(eval $(call PKG_template,LIBDEVMAPPER,libdevmapper,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBDEVMAPPER},${PKGSC_LIBDEVMAPPER},${PKG_OPTS}))
  27. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
  28. CONFIGURE_ARGS+= --enable-static_link
  29. endif
  30. CONFIGURE_ARGS+= --with-user="" --with-group="" \
  31. --with-optimisation="" \
  32. --disable-testing \
  33. --with-lvm1=none
  34. CONFIGURE_ENV+= ac_cv_flag_HAVE_PIE=no
  35. lvm-install:
  36. ${INSTALL_DIR} ${IDIR_LVM}/usr/sbin
  37. ${INSTALL_BIN} ${WRKINST}/usr/sbin/lvm ${IDIR_LVM}/usr/sbin/lvm
  38. libdevmapper-install:
  39. ${INSTALL_DIR} ${IDIR_LIBDEVMAPPER}/usr/lib
  40. ${CP} ${WRKINST}/usr/lib/libdevmapper.so* \
  41. ${IDIR_LIBDEVMAPPER}/usr/lib
  42. device-mapper-install:
  43. ${INSTALL_DIR} ${IDIR_DEVICE_MAPPER}/usr/sbin
  44. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dmsetup \
  45. ${IDIR_DEVICE_MAPPER}/usr/sbin
  46. include ${ADK_TOPDIR}/mk/pkg-bottom.mk