aboutsummaryrefslogtreecommitdiffstats
path: root/lang/tolua++50/Makefile
blob: 0507685c55cbd7e728cb5ab5604bebdaea871837 (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
# New ports collection makefile for:    tolua++
# Date created:         18 Jan 2006
# Whom:                 aaron@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   tolua++
PORTVERSION=    1.0.92
PORTREVISION=   2
PKGNAMESUFFIX=  50
CATEGORIES= lang devel
MASTER_SITES=   http://www.codenix.com/~tolua/ \
        http://mirror.amdmi3.ru/distfiles/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    An extended version of tolua, a tool to integrate C/C++ code with Lua

USE_BZIP2=  yes
USE_LUA=    5.0
USE_SCONS=  yes
SCONS_ARGS= prefix=${PREFIX} SONAME="libtolua++-${LUA_VER}.so"

CFLAGS+=    -I${LUA_INCDIR}
LDFLAGS+=   -L${LUA_LIBDIR}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua++ ${LUA_BINDIR}
    ${LN} -sf ${LUA_SUBDIR}/tolua++ ${PREFIX}/bin/tolua++-${LUA_VER}
    ${INSTALL_DATA} ${WRKSRC}/include/tolua++.h ${LUA_INCDIR}
    ${INSTALL_DATA} ${WRKSRC}/lib/libtolua++.a ${LUA_LIBDIR}
    ${INSTALL_DATA} ${WRKSRC}/lib/libtolua++.so ${LUA_LIBDIR}
    ${INSTALL_DATA} ${WRKSRC}/lib/libtolua++.so ${PREFIX}/lib/libtolua++-${LUA_VER}.so

.include <bsd.port.mk>