blob: 5012819dea342608d7ea2ad489cbf2245674b086 (
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
|
# $NetBSD: Makefile.common,v 1.1 2015/07/01 12:54:32 ryoon Exp $
# used by mail/thunderbird-enigmail/Makefile
# used by mail/seamonkey-enigmail/Makefile
DISTNAME= enigmail-1.8.2
CATEGORIES= mail security
MASTER_SITES= http://www.mozilla-enigmail.org/download/source/
HOMEPAGE= https://www.enigmail.net/
LICENSE= (mpl-1.1 OR gnu-gpl-v2 OR gnu-lgpl-v2.1) AND mpl-2.0
USE_TOOLS+= gmake perl sed unzip
# It doesn't work -- noted also here:
# https://aur.archlinux.org/packages/th/thunderbird-enigmail/PKGBUILD
MAKE_JOBS_SAFE= no
# Minimal requirements are here: https://www.enigmail.net/download/source.php
DEPENDS+= gnupg-[0-9]*:../../security/gnupg
DISTINFO_FILE= ${.CURDIR}/../../mail/thunderbird-enigmail/distinfo
PATCHDIR= ${.CURDIR}/../../mail/thunderbird-enigmail/patches
REPLACE_PERL+= config/getOsTarget.pl
REPLACE_PERL+= util/fixlang.pl
REPLACE_PERL+= util/make-lang-xpi.pl
REPLACE_PYTHON+= util/checkFiles.py
REPLACE_PYTHON+= util/header.py
REPLACE_PYTHON+= util/typelib.py
REPLACE_PYTHON+= util/header.py
REPLACE_PYTHON+= util/xpidl.py
REPLACE_PYTHON+= util/xpt.py
WRKSRC= ${WRKDIR}/enigmail
GNU_CONFIGURE= yes
XPIVER= ${PKGVERSION_NOREV:C/.[0-9]+$//}
ENIGMAILXPI= enigmail-${XPIVER}-${LOWER_OPSYS}-${MACHINE_GNU_ARCH}-gcc3.xpi
XPIFILE= ${WRKSRC}/build/${ENIGMAILXPI}
# Build instructions: https://www.enigmail.net/download/build_instructions.php
# Installation of extensions: http://kb.mozillazine.org/Installing_extensions
# Model installation: https://aur.archlinux.org/packages/th/thunderbird-enigmail/PKGBUILD
do-install:
${RUN} EMID=`${SED} -n '/.*<em:id>\\(.*\\)<\\/em:id>.*/{s//\\1/p;q}' \
${WRKSRC}/package/install.rdf` && \
${INSTALL_DATA_DIR} ${DESTDIR}${XPIDIR}/"$$EMID" && \
unzip -d ${DESTDIR}${XPIDIR}/"$$EMID" \
${XPIFILE}
.include "../../lang/python/application.mk"
|