1
0

Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:= tor
  5. PKG_VERSION:= 0.2.4.21
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= bde981d10e8faf1e171ef1ebbb7b398a
  8. PKG_DESCR:= anonymous internet communication system
  9. PKG_SECTION:= 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. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,TOR,tor,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. # -DNDEBUG not supported
  17. TARGET_CPPFLAGS:=
  18. CONFIGURE_ENV+= ac_cv_libevent_normal=yes \
  19. ac_cv_libevent_linker_option="" \
  20. ac_cv_libevent_dir="${STAGING_TARGET_DIR}/usr" \
  21. ac_cv_openssldir="${STAGING_TARGET_DIR}/usr" \
  22. ac_cv_openssl_linker_option="" \
  23. tor_cv_time_t_signed=yes \
  24. tor_cv_null_is_zero=yes \
  25. tor_cv_unaligned_ok=yes
  26. CONFIGURE_ARGS+= --disable-gcc-hardening
  27. tor-install:
  28. ${INSTALL_DIR} ${IDIR_TOR}/usr/bin ${IDIR_TOR}/etc/tor
  29. ${INSTALL_DATA} ./files/torrc ${IDIR_TOR}/etc/tor/
  30. ${CP} ${WRKINST}/usr/bin/tor ${IDIR_TOR}/usr/bin/
  31. include ${TOPDIR}/mk/pkg-bottom.mk