You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/plugins/apps/tor.mk

27 lines
832 B

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := tor
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.2.6.10
$(PKG)_CHECKSUM := 0542c0efe43b86619337862fa7eb02c7a74cb23a79d587090628a5f0f1224b8d
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://torproject.org/dist/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libevent openssl zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://torproject.org/download/download' | \
$(SED) -n 's,.*tor-\([0-9][^"]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && \
LIBS="`'$(TARGET)-pkg-config' --libs-only-l openssl`" \
./configure \
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_DOCS)
endef
$(PKG)_BUILD_SHARED =