Xavier Beaudouin ee5c766cba */*: Introduction USES=sudo
A new uses 'sudo' has been added to transperently depends of the
proper flavor of sudo 'default' or 'sssd' depending on the default
version set by the user.

If you prefere to use 'sssd' flavor of sudo, add the following
to your make.conf:

        DEFAULT_VERSIONS+=sudo=sssd

All sudo consummer ports has benn updated to USES=sudo

Reviewed by:    0mp
Approved by:    mat
Sponsored by:   Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D52160
2025-11-11 04:16:23 +01:00

53 lines
1.7 KiB
Makefile

PORTNAME= veracrypt
PORTVERSION= 1.26.24
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME:S/v/V/:S/c/C/}%20${PORTVERSION}/Source%20Code
DISTNAME= ${PORTNAME:S/v/V/:S/c/C/}_${PORTVERSION}_Source
MAINTAINER= acm@FreeBSD.org
COMMENT= Open-source disk encryption software based on Truecrypt
WWW= https://www.veracrypt.fr/
BUILD_DEPENDS= yasm:devel/yasm
LIB_DEPENDS= libpcsclite.so:devel/pcsc-lite
LICENSE_FILE= ${DOCSDIR}/LICENSE
USES= compiler:c++11-lang cpe desktop-file-utils fuse gmake iconv pkgconfig sudo tar:bz2
CPE_VENDOR= idrix
USE_CXXSTD= c++11
USE_WX= 3.0+
NO_WRKSUBDIR= yes
BUILD_WRKSRC= ${WRKSRC}/src
ALL_TARGET= #
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
MAKE_ENV+= LFLAGS=-Wl,-z,notext
.endif
post-patch:
${REINPLACE_CMD} -e 's|wx-config|${WX_CONFIG}|g' ${WRKSRC}/src/Makefile
${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin|g' ${WRKSRC}/src/Setup/FreeBSD/veracrypt.desktop
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/Main/veracrypt ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/src/Setup/FreeBSD/veracrypt.desktop ${STAGEDIR}${PREFIX}/share/applications/
. for RESO in 128 16 256 48
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${RESO}x${RESO}/apps
${INSTALL_DATA} ${WRKSRC}/src/Resources/Icons/VeraCrypt-${RESO}x${RESO}.xpm ${STAGEDIR}${PREFIX}/share/icons/hicolor/${RESO}x${RESO}/apps/${PORTNAME}.xpm
. endfor
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/License.txt ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/html
.include <bsd.port.post.mk>