aboutsummaryrefslogtreecommitdiffstats
path: root/misc/urh/Makefile
blob: d1bc15c0a9296191e21295654d85f16a1a7e44a9 (plain) (blame)
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
# $FreeBSD$

PORTNAME=   urh
DISTVERSION=    2.2.0
CATEGORIES= misc hamradio python
MASTER_SITES=   CHEESESHOP

MAINTAINER= yuri@FreeBSD.org
COMMENT=    Universal Radio Hacker: investigate wireless protocols like a boss

LICENSE=    GPLv2

BUILD_DEPENDS=  ${PYNUMPY}
LIB_DEPENDS=    libomp.so:devel/openmp
RUN_DEPENDS=    ${PYNUMPY} \
        ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \
        ${PYTHON_PKGNAMEPREFIX}pyzmq>0:net/py-pyzmq@${PY_FLAVOR}

USES=       fortran python:3.4+ localbase pyqt:5
USE_PYQT=   core gui test widgets
USE_PYTHON= distutils cython autoplist

PLIST_FILES=    bin/urh.shadow

post-install:
    @${MV} ${STAGEDIR}${PREFIX}/bin/urh ${STAGEDIR}${PREFIX}/bin/urh.shadow
    @(echo "#!/bin/sh"; \
      echo ""; \
      echo "LD_PRELOAD=${PREFIX}/lib/gcc6/libgcc_s.so ${PREFIX}/bin/urh.shadow \"$$@\"" \
    ) > ${STAGEDIR}${PREFIX}/bin/urh
    @${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/urh

.include <bsd.port.mk>