aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libnxt/Makefile
blob: b5859d1199f6c6a29ce9f0265a62edd6f2b396f7 (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
# Created by: Jason Bacon <bacon11@tds.net>
# $FreeBSD$

PORTNAME=   libnxt
PORTVERSION=    0.3
CATEGORIES= devel
MASTER_SITES=   GOOGLE_CODE \
        http://personalpages.tds.net/~jwbacon/Ports/distfiles/

MAINTAINER= jwbacon@tds.net
COMMENT=    Lego NXT library

BUILD_DEPENDS=  scons:${PORTSDIR}/devel/scons \
        python:${PORTSDIR}/lang/python

SUB_FILES=  pkg-message
USE_LDCONFIG=   yes

do-build:
    (cd ${WRKSRC}; scons)

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/include/libnxt
    ${INSTALL_PROGRAM} ${WRKSRC}/fwflash ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/fwexec ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/libnxt.a ${STAGEDIR}${PREFIX}/lib
    @${MKDIR} ${STAGEDIR}${PREFIX}/include/libnxt
.for file in ${WRKSRC}/*.h
    ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/include/libnxt
.endfor

.include <bsd.port.mk>