1
0

Makefile 1.5 KB

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