aboutsummaryrefslogtreecommitdiffstats
path: root/devel/luabind/Makefile
blob: 0ab4e467c8fc6cdda477a128f83f948f9a6bab63 (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
39
40
41
42
43
44
45
46
# New ports collection makefile for:    luabind
# Date created:     06 Jun 2007
# Whom:         Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#

PORTNAME=   luabind
PORTVERSION=    0.7
CATEGORIES= devel
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Library that helps you create bindings between C++ and Lua

BUILD_DEPENDS=  ${LOCALBASE}/include/boost/python/detail/is_xxx.hpp:${PORTSDIR}/devel/boost-python-libs
RUN_DEPENDS=    ${LOCALBASE}/include/boost/python/detail/is_xxx.hpp:${PORTSDIR}/devel/boost-python-libs

USE_ZIP=    yes
USE_LUA=    5.0
USE_GMAKE=  yes

MAKE_ENV=   BOOST_ROOT="${LOCALBASE}/include"

WRKSRC=     ${WRKDIR}/${PORTNAME}

BUILD_WRKSRC=   ${WRKSRC}/src

MAKEFILE=   makefile

PORTDOCS=   *

post-patch:
    ${MKDIR} ${WRKSRC}/lib
    @${FIND} ${WRKSRC}/luabind -name "*.orig" -delete

do-install:
    ${INSTALL_DATA} ${WRKSRC}/lib/libluabind.a ${PREFIX}/lib
    (cd ${WRKSRC} && ${COPYTREE_SHARE} luabind ${PREFIX}/include)

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif

.include <bsd.port.mk>