blob: 968e24991eb0a7fe0610b7b3ae5d7e1310f5ece9 (
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
|
# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$
PORTNAME= BitcoinArmory
PORTVERSION= 0.93.3
DISTVERSIONPREFIX= v
PORTREVISION= 8
CATEGORIES= finance
MAINTAINER= yuri@FreeBSD.org
COMMENT= Desktop bitcoin management system
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
DEPRECATED= Qt4 has been EOL since december 2015
EXPIRATION_DATE= 2019-03-15
BROKEN_aarch64= fails to compile: c++: language not recognized: 'ar'
BROKEN_armv6= fails to compile: c++: language not recognized: 'ar'
BROKEN_armv7= fails to compile: c++: language not recognized: 'ar'
BUILD_DEPENDS= ${LOCALBASE}/bin/swig3.0:devel/swig30 \
${LOCALBASE}/bin/pyrcc4:textproc/py-qt4-xml@${PY_FLAVOR} \
${LOCALBASE}/bin/rsync:net/rsync
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twisted>=14.0.0:devel/py-twisted@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}psutil>1.2.1:sysutils/py-psutil@${PY_FLAVOR} \
${LOCALBASE}/bin/bitcoind:net-p2p/bitcoin-daemon
USE_GITHUB= yes
GH_ACCOUNT= etotheipi
USES= compiler:c++11-lang compiler:c++11-lib gmake pyqt:4 python:2.7 shebangfix
USE_PYQT= core_run gui_run
SHEBANG_FILES= ArmoryQt.py extras/extractKeysFromWallet.py
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CXXFLAGS+= -DCRYPTOPP_DISABLE_ASM -fPIC
MAKE_ENV+= PYTHON_CONFIG=${PYTHON_CMD}-config
MAKE_ARGS+= CXXFLAGS="${CXXFLAGS}"
INSTALLS_ICONS= yes
ICON_SIZES= 24x24 32x32 64x64
# When CRYPTOPP_DISABLE_ASM isn't needed any more, i386 amd64 should
# be made work through ASM code, and the other archs will still
# have CRYPTOPP_DISABLE_ASM
post-patch:
@${REINPLACE_CMD} 's/python-config/$${PYTHON_CONFIG}/' ${WRKSRC}/cppForSwig/Makefile
@${REINPLACE_CMD} 's/O_DSYNC/O_SYNC/' ${WRKSRC}/cppForSwig/mdb/mdb.c
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/armory/_CppBlockUtils.so
@${SED} -i.bak -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${STAGEDIR}/${LOCALBASE}/bin/armory && \
${RM} ${STAGEDIR}/${LOCALBASE}/bin/armory.bak
@${REINPLACE_CMD} 's|Exec=/usr/bin/armory|Exec=${LOCALBASE}/bin/armory|' ${STAGEDIR}/${LOCALBASE}/share/applications/*.desktop
.for s in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
${MV} ${STAGEDIR}/${PREFIX}/share/armory/img/armory_icon_${s}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/armoryicon.png
.endfor
.include <bsd.port.mk>
|