Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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:= cryptsetup
  5. PKG_VERSION:= 1.0.7
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 5eea2a77391a8a1a651b31cbaef59e22
  8. PKG_DESCR:= LUKS cryptsetup tools
  9. PKG_SECTION:= crypto
  10. PKG_DEPENDS:= libgcrypt device-mapper libuuid libpopt kmod-dm-crypt kmod-crypto-aes kmod-crypto-cbc kmod-crypto-sha256 kmod-dm-mod
  11. PKG_BUILDDEP+= libgcrypt popt e2fsprogs lvm
  12. PKG_URL:= http://cryptsetup.googlecode.com
  13. PKG_SITES:= http://cryptsetup.googlecode.com/files/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,CRYPTSETUP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIGURE_STYLE:= gnu
  18. CONFIGURE_ARGS+= --disable-static
  19. BUILD_STYLE:= auto
  20. INSTALL_STYLE:= auto
  21. # hackish way to although build the static libraries for cryptinit
  22. pre-configure:
  23. (cd ${WRKBUILD}; \
  24. env ${CONFIGURE_ENV} \
  25. ./configure --enable-static --disable-nls \
  26. --build=${GNU_HOST_NAME} \
  27. --host=${GNU_TARGET_NAME} \
  28. --target=${GNU_TARGET_NAME} \
  29. );
  30. $(MAKE) -C $(WRKBUILD) CC="$(TARGET_CC)"
  31. $(MAKE) -C $(WRKBUILD) CC="$(TARGET_CC)" DESTDIR='${WRKINST}' install
  32. $(MAKE) -C $(WRKBUILD) CC="$(TARGET_CC)" clean
  33. post-install:
  34. ${INSTALL_DIR} ${IDIR_CRYPTSETUP}/usr/sbin ${IDIR_CRYPTSETUP}/usr/lib
  35. ${CP} ${WRKINST}/usr/lib/libcryptsetup.so.* \
  36. ${IDIR_CRYPTSETUP}/usr/lib
  37. ${INSTALL_BIN} ${WRKINST}/usr/sbin/cryptsetup \
  38. ${IDIR_CRYPTSETUP}/usr/sbin
  39. include ${TOPDIR}/mk/pkg-bottom.mk