Makefile 1.6 KB

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