aboutsummaryrefslogtreecommitdiffstats
path: root/devel/lua-filename/Makefile
blob: 67705b12aa8979d261fb062496d849cc292ac788 (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
# New ports collection makefile for:   lua50-filename
# Date created:        17 April 2006
# Whom:                Andrew Turner <andrew+ports@fubar.geek.nz>
#
# $FreeBSD$
#

PORTNAME=   filename
PORTVERSION=    1.2
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= philip
PKGNAMEPREFIX=  ${LUA_PKGNAMEPREFIX}
DISTFILES=  filename.lua?rev=${PORTVERSION}
EXTRACT_ONLY=   #

MAINTAINER= ports@FreeBSD.org
COMMENT=    Filename-manipulating functions for Lua 5

USE_LUA?=   5.1
LUA_COMPS=  lua posix
.if ${USE_LUA} == 5.0
LUA_COMPS+= compat51
.endif
NO_BUILD=   yes
NO_WRKSUBDIR=   yes

PLIST_FILES=    %%LUA_MODSHAREDIR%%/filename.lua

post-extract:
    ${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}/filename.lua

do-install:
    ${INSTALL_DATA} ${WRKDIR}/filename.lua \
        ${LUA_MODSHAREDIR}/${DISTFILES:C/\?.*$//}

.include <bsd.port.mk>