1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs multilib wxwidgets
9 DESCRIPTION="Free open-source disk encryption software"
10 HOMEPAGE="http://www.truecrypt.org/"
11 #SRC_URI="TrueCrypt ${PV} Source.tar.gz"
17 LICENSE="truecrypt-collective-1.4"
19 KEYWORDS="~amd64 ~x86"
21 RESTRICT="mirror fetch bindist"
27 S="${WORKDIR}/${P}-source"
30 einfo "Please download tar.gz source from:"
31 einfo "http://www.truecrypt.org/downloads2.php"
32 einfo "Then put the file in ${DISTDIR}/${MY_P}"
33 einfo "Please download RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki) 2.20"
35 einfo "ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11.h"
36 einfo "ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h"
37 einfo "ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h"
38 einfo "Then put files in ${DISTDIR}"
44 need-wxwidgets unicode
46 need-wxwidgets base-unicode
54 epatch "${FILESDIR}/${PN}-6.1-64bit.patch"
55 epatch "${FILESDIR}/${PN}-6.1-bool.patch"
56 epatch "${FILESDIR}/${PN}-6.1-external-wx.patch"
61 use amd64 && EXTRA="${EXTRA} USE64BIT=1"
62 use X || EXTRA="${EXTRA} NOGUI=1"
63 if has_version '<sys-libs/glibc-2.7'; then
64 if [ "$(gcc-version)" = "4.3" ]; then
65 elog "You are trying to compile ${P} using >=sys-devel/gcc-4.3 and <sys-libs/glibc-2.7"
66 elog "In this case compiling will failed if not -O0 optimization flag used."
67 elog "Therefore ${P} will compliling with -O0 flag."
68 elog "Otherwise you could install >=sys-libs/glibc-2.7 or use <sys-devel/gcc-4.3"
69 CFLAGS="${CFLAGS} -O0"
70 CXXFLAGS="${CXXFLAGS} -O0"
75 PKCS11_INC="${DISTDIR}" \
82 RANLIB="$(tc-getRANLIB)" \
83 EXTRA_CFLAGS="${CFLAGS}" \
84 EXTRA_CXXFLAGS="${CXXFLAGS}" \
85 EXTRA_LDFLAGS="${LDFLAGS}" \
86 WX_CONFIG="${WX_CONFIG}" \
92 "${S}/Main/truecrypt" --text --test
97 dodoc Readme.txt 'Release/Setup Files/TrueCrypt User Guide.pdf'
98 insinto "/$(get_libdir)/rcscripts/addons"
99 newins "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh"
103 elog "potential legal problems - use at own risk"
104 elog "http://lists.freedesktop.org/archives/distributions/2008-October/000276.html"