aboutsummaryrefslogtreecommitdiffstats
path: root/devel/roboctl/Makefile
blob: 82bc196baeaa62647a7f9cf062f98cb10d59e426 (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
34
35
36
37
38
# Created by: Jason Bacon <bacon4000@gmail.com>
# $FreeBSD$

PORTNAME=   roboctl
PORTVERSION=    0.3.8
CATEGORIES= devel
MASTER_SITES=   http://acadix.biz/Ports/distfiles/

MAINTAINER= bacon4000@gmail.com
COMMENT=    API and tools for communicating with Lego and Vex robots

BROKEN=     unfetchable
LICENSE=    GPLv3

BUILD_DEPENDS=  ${LOCALBASE}/lib/libgamepad.a:${PORTSDIR}/devel/libgamepad

MAKE_ENV=   EXTRALIBS=-lbluetooth
MAKE_FLAGS+=    PREFIX=${STAGEDIR}${PREFIX} \
        MANPREFIX=${STAGEDIR}${PREFIX}
MAKE_JOBS_UNSAFE=   yes

USES=       tar:xz

OPTIONS_DEFINE= CUTECOM
CUTECOM_DESC=   Install cutecom for Vex debugging

CUTECOM_RUN_DEPENDS=    cutecom:${PORTSDIR}/comms/cutecom

pre-build:
    (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} depend)

post-install:
    (cd ${WRKSRC}/Commands/NXTRemote; ${MAKE})
    ${INSTALL_PROGRAM} ${WRKSRC}/Commands/NXTRemote/nxtremote ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/Scripts/lego_bluetooth_config ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/Commands/NXTRemote/nxtremote.1 ${STAGEDIR}${MANPREFIX}/man/man1

.include <bsd.port.mk>