freebsd-ports/security/veracrypt/Makefile
Loïc Bartoletti 4c1a399966 x11-toolkits/wxgtk30: Update to 3.0.5.1
Changelog:
  - https://raw.githubusercontent.com/wxWidgets/wxWidgets/v3.0.5/docs/changes.txt

PR:	 246218
Approved by:	tcberner (mentor)
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D24808
2020-05-17 05:55:12 +00:00

50 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= veracrypt
PORTVERSION= 1.24
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME:S/v/V/:S/c/C/}%20${PORTVERSION}-Update3/
DISTNAME= ${PORTNAME:S/v/V/:S/c/C/}_${PORTVERSION}-Update3_Source
MAINTAINER= acm@FreeBSD.org
COMMENT= Open-source disk encryption software based on Truecrypt
BUILD_DEPENDS= yasm:devel/yasm
RUN_DEPENDS= ${LOCALBASE}/bin/sudo:security/sudo
LICENSE_FILE= ${DOCSDIR}/LICENSE
USES= compiler:c++11-lang desktop-file-utils fuse gmake iconv pkgconfig tar:bz2
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' -e \
's|Icon=veracrypt|Icon=VeraCrypt-16x16|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/
cd ${WRKSRC}/src/Resources/Icons && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/pixmaps "-name *\.xpm"
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>