blob: 02bd95d299ade98b17e0ed2bddfb181ee00fa4f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Created by: Dmitri Goutnik <dg@syrec.org>
# $FreeBSD$
PORTNAME= encryptpad
DISTVERSIONPREFIX= v
DISTVERSION= 0.5.0.0
PORTREVISION= 2
CATEGORIES= editors security
MAINTAINER= dmgk@FreeBSD.org
COMMENT= Minimalist secure text editor and binary encryptor
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/license.txt
LIB_DEPENDS= libbotan-2.so:security/botan2
USES= compiler:c++11-lang desktop-file-utils gl gmake pkgconfig \
python:build qt:5 shared-mime-info shebangfix
USE_GITHUB= yes
GH_ACCOUNT= evpo
GH_PROJECT= EncryptPad
USE_GL= gl
USE_QT= core gui widgets buildtools_build qmake_build
BINARY_ALIAS= python=${PYTHON_CMD}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc64
CONFIGURE_ARGS= --cpu="${ARCH}"
.endif
.include <bsd.port.pre.mk>
post-patch:
.if ${CHOSEN_COMPILER_TYPE} == gcc
${REINPLACE_CMD} -e 's/freebsd-clang/freebsd-g++/' \
${WRKSRC}/build/Makefile.qt_ui
.endif
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./configure.py ${CONFIGURE_ARGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/release/* ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/encryptpad.desktop \
${STAGEDIR}${PREFIX}/share/applications
@${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages
${INSTALL_DATA} ${WRKSRC}/encryptpad.xml \
${STAGEDIR}${PREFIX}/share/mime/packages
.for sz in 16 32 128 256 512
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${sz}x${sz}/apps
${INSTALL_DATA} ${WRKSRC}/images/icns.iconset/icon_${sz}x${sz}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${sz}x${sz}/apps/encryptpad.png
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}/${DOCSDIR}
.include <bsd.port.post.mk>
|