Makefile 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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:= util-linux
  5. PKG_VERSION:= 2.24.2
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 3f191727a0d28f7204b755cf1b6ea0aa
  8. PKG_DESCR:= basic Linux utilities
  9. PKG_SECTION:= core
  10. PKG_BUILDDEP:= ncurses pam
  11. PKG_SITES:= http://www.kernel.org/pub/linux/utils/util-linux/v2.24/
  12. PKG_NOPARALLEL:= 1
  13. PKG_OPTS:= dev
  14. PKG_ARCH_DEPENDS:= !m68k
  15. PKG_SUBPKGS:= FDISK SFDISK SWAP_UTILS LOSETUP MCOOKIE MOUNT
  16. PKG_SUBPKGS+= LIBUUID LIBBLKID LIBMOUNT SU CFDISK
  17. PKGSD_LIBUUID:= uuid library
  18. PKGSC_LIBUUID:= libs
  19. PKGSD_LIBBLKID:= blkid library
  20. PKGSC_LIBBLKID:= libs
  21. PKGSD_LIBMOUNT:= mount library
  22. PKGSC_LIBMOUNT:= libs
  23. PKGSD_FDISK:= partition table manipulation utility
  24. PKGSC_FDISK:= fs
  25. PKGSD_SFDISK:= scriptable partition table manipulation utility
  26. PKGSC_SFDISK:= fs
  27. PKGSD_CFDISK:= partition table manipulation utility
  28. PKGSC_CFDISK:= fs
  29. PKGSD_SU:= switch user utility
  30. PKGSC_SU:= misc
  31. PKGSD_SWAP_UTILS:= swap space management utilities
  32. PKGSS_SWAP_UTILS:= libblkid
  33. PKGSC_SWAP_UTILS:= fs
  34. PKGSD_LOSETUP:= loop devices management utilities
  35. PKGSC_LOSETUP:= fs
  36. PKGSD_MOUNT:= mount/umount utilities
  37. PKGSS_MOUNT:= libblkid libmount libuuid libncurses
  38. PKGSC_MOUNT:= fs
  39. PKGSD_MCOOKIE:= generate magic cookies for xauth
  40. PKGSC_MCOOKIE:= x11/apps
  41. include ${TOPDIR}/mk/package.mk
  42. $(eval $(call PKG_template,FDISK,fdisk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FDISK},${PKGSC_FDISK}))
  43. $(eval $(call PKG_template,CFDISK,cfdisk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_CFDISK},${PKGSC_CFDISK}))
  44. $(eval $(call PKG_template,SFDISK,sfdisk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_SFDISK},${PKGSC_SFDISK}))
  45. $(eval $(call PKG_template,SU,su,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_SU},${PKGSD_SU},${PKGSC_SU}))
  46. $(eval $(call PKG_template,SWAP_UTILS,swap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_SWAP_UTILS},${PKGSD_SWAP_UTILS},${PKGSC_SWAP_UTILS}))
  47. $(eval $(call PKG_template,LOSETUP,losetup,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LOSETUP},${PKGSD_LOSETUP},${PKGSC_LOSETUP}))
  48. $(eval $(call PKG_template,MOUNT,mount,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_MOUNT},${PKGSD_MOUNT},${PKGSC_MOUNT}))
  49. $(eval $(call PKG_template,MCOOKIE,mcookie,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_MCOOKIE},${PKGSC_MCOOKIE}))
  50. $(eval $(call PKG_template,LIBUUID,libuuid,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBUUID},${PKGSC_LIBUUID}))
  51. $(eval $(call PKG_template,LIBBLKID,libblkid,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBBLKID},${PKGSC_LIBBLKID}))
  52. $(eval $(call PKG_template,LIBMOUNT,libmount,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBMOUNT},${PKGSC_LIBMOUNT}))
  53. CONFIGURE_ENV+= have_scanf_alloc_modifier=yes \
  54. scanf_cv_alloc_modifier=ms
  55. CONFIGURE_ARGS+= --disable-use-tty-group \
  56. --disable-schedutils \
  57. --disable-cramfs \
  58. --disable-login \
  59. --disable-eject \
  60. --enable-su \
  61. --enable-libuuid \
  62. --enable-libblkid \
  63. --enable-libmount \
  64. --enable-mount \
  65. --with-ncurses=$(STAGING_TARGET_DIR)/usr/include \
  66. --libdir=/usr/lib
  67. FAKE_FLAGS+= INSTALLSUID="install -m 4755"
  68. TARGET_CFLAGS+= -DSWAPON_HAS_TWO_ARGS -DHAVE_LLSEEK -ltinfo
  69. fdisk-install:
  70. ${INSTALL_DIR} ${IDIR_FDISK}/usr/sbin
  71. ${CP} ${WRKINST}/sbin/fdisk ${IDIR_FDISK}/usr/sbin
  72. cfdisk-install:
  73. ${INSTALL_DIR} ${IDIR_CFDISK}/usr/sbin
  74. ${CP} ${WRKINST}/sbin/cfdisk ${IDIR_FDISK}/usr/sbin
  75. sfdisk-install:
  76. ${INSTALL_DIR} ${IDIR_SFDISK}/usr/sbin
  77. ${CP} ${WRKINST}/sbin/sfdisk ${IDIR_SFDISK}/usr/sbin
  78. losetup-install:
  79. ${INSTALL_DIR} ${IDIR_LOSETUP}/usr/sbin
  80. ${CP} ${WRKINST}/sbin/losetup ${IDIR_LOSETUP}/usr/sbin
  81. swap-utils-install:
  82. ${INSTALL_DIR} ${IDIR_SWAP_UTILS}/usr/sbin
  83. ${CP} ${WRKINST}/sbin/mkswap ${IDIR_SWAP_UTILS}/usr/sbin
  84. ${CP} ${WRKINST}/sbin/swap{on,off} ${IDIR_SWAP_UTILS}/usr/sbin
  85. mount-install:
  86. ${INSTALL_DIR} ${IDIR_MOUNT}/bin
  87. ${INSTALL_BIN} ${WRKINST}/usr/bin/{u,}mount ${IDIR_MOUNT}/bin
  88. mcookie-install:
  89. ${INSTALL_DIR} ${IDIR_MCOOKIE}/usr/bin
  90. ${INSTALL_BIN} ${WRKINST}/usr/bin/mcookie ${IDIR_MCOOKIE}/usr/bin
  91. libuuid-install:
  92. ${INSTALL_DIR} ${IDIR_LIBUUID}/usr/lib
  93. ${CP} ${WRKINST}/usr/lib/libuuid.so* ${IDIR_LIBUUID}/usr/lib
  94. libblkid-install:
  95. ${INSTALL_DIR} ${IDIR_LIBBLKID}/usr/lib
  96. ${CP} ${WRKINST}/usr/lib/libblkid.so* ${IDIR_LIBBLKID}/usr/lib
  97. libmount-install:
  98. ${INSTALL_DIR} ${IDIR_LIBMOUNT}/usr/lib
  99. ${CP} ${WRKINST}/usr/lib/libmount.so* ${IDIR_LIBMOUNT}/usr/lib
  100. include ${TOPDIR}/mk/pkg-bottom.mk