aboutsummaryrefslogtreecommitdiffstats
path: root/lang/lua/Makefile
blob: 2c78b9f28e77f03455b763b2356fd969d21bbd37 (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
# New ports collection makefile for:    lua
# Version required:             3.1
# Date created:             27 June 1999
# Whom:                 Richard Kiss <richard@homemail.com>
#
# $Id: Makefile,v 1.1.1.1 1999/07/06 01:28:27 cpiazza Exp $
#

DISTNAME=   lua-3.1
CATEGORIES= lang
MASTER_SITES=   ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
        ftp://csg.uwaterloo.ca/pub/lhf/lua/ \
        ftp://ftp.cdrom.com/pub/languages/lua/ \
        ftp://ftp.ntua.gr/pub/lang/lua/ \
        ftp://ftp.uni-trier.de/pub/languages/lua/ \
        ftp://ftp.gwdg.de/pub/languages/lua/

MAINTAINER= richard@homemail.com

MAN1=       luac.1
WRKSRC=         ${WRKDIR}/lua

do-install:
    @ ${MKDIR} ${PREFIX}/share/doc/lua
    @ ${INSTALL_PROGRAM} ${WRKSRC}/bin/lua ${PREFIX}/bin
    @ ${INSTALL_PROGRAM} ${WRKSRC}/bin/luac ${PREFIX}/bin
    @ ${INSTALL_MAN} ${WRKSRC}/doc/luac.man ${PREFIX}/man/man1/luac.1
    @ ${INSTALL_DATA} ${WRKSRC}/doc/idx.html ${PREFIX}/share/doc/lua
    @ ${INSTALL_DATA} ${WRKSRC}/doc/index.html ${PREFIX}/share/doc/lua
    @ ${INSTALL_DATA} ${WRKSRC}/doc/luac.html ${PREFIX}/share/doc/lua
    @ ${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${PREFIX}/share/doc/lua
    @ ${INSTALL_DATA} ${WRKSRC}/include/lua.h ${PREFIX}/include
    @ ${INSTALL_DATA} ${WRKSRC}/include/luadebug.h ${PREFIX}/include
    @ ${INSTALL_DATA} ${WRKSRC}/include/lualib.h ${PREFIX}/include
    @ ${INSTALL_DATA} ${WRKSRC}/include/lauxlib.h ${PREFIX}/include
    @ ${INSTALL_DATA} ${WRKSRC}/lib/liblua.a ${PREFIX}/lib
    @ ${INSTALL_DATA} ${WRKSRC}/lib/liblualib.a ${PREFIX}/lib

post-install:
    @strip ${PREFIX}/bin/lua
    @strip ${PREFIX}/bin/luac

.include <bsd.port.mk>