Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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:= tor
  5. PKG_VERSION:= 0.2.4.21
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= a19df488c0c776c9f1e4c78bf93af115f67eefcffe6152a826fed07a1596f1ce
  8. PKG_DESCR:= anonymous internet communication system
  9. PKG_SECTION:= net/proxy
  10. PKG_DEPENDS:= libevent libopenssl zlib libpthread
  11. PKG_BUILDDEP:= libevent openssl zlib
  12. PKG_URL:= https://www.torproject.org/
  13. PKG_SITES:= https://www.torproject.org/dist/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include ${ADK_TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,TOR,tor,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. # -DNDEBUG not supported
  18. TARGET_CPPFLAGS:=
  19. CONFIGURE_ENV+= ac_cv_libevent_normal=yes \
  20. ac_cv_libevent_linker_option="" \
  21. ac_cv_libevent_dir="${STAGING_TARGET_DIR}/usr" \
  22. ac_cv_openssldir="${STAGING_TARGET_DIR}/usr" \
  23. ac_cv_openssl_linker_option="" \
  24. tor_cv_time_t_signed=yes \
  25. tor_cv_null_is_zero=yes \
  26. tor_cv_unaligned_ok=yes
  27. ifeq ($(ADK_TARGET_USE_SSP),y)
  28. CONFIGURE_ARGS+= --enable-gcc-hardening
  29. else
  30. CONFIGURE_ARGS+= --disable-gcc-hardening
  31. endif
  32. tor-install:
  33. ${INSTALL_DIR} ${IDIR_TOR}/usr/bin ${IDIR_TOR}/etc/tor
  34. ${INSTALL_DATA} ./files/torrc ${IDIR_TOR}/etc/tor/
  35. ${CP} ${WRKINST}/usr/bin/tor ${IDIR_TOR}/usr/bin/
  36. include ${ADK_TOPDIR}/mk/pkg-bottom.mk