blob: 8ddf6713e4c47a61eaca7ed72e9858a207c6ba92 (
plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# $NetBSD: Makefile,v 1.40 2009/01/20 16:30:39 sketch Exp $
DISTNAME= lua-${LUA_VERSION}
CATEGORIES= lang
MASTER_SITES= ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
ftp://ftp.gwdg.de/pub/languages/lua/ \
ftp://ftp.u-aizu.ac.jp/pub/lang/lua/ \
ftp://ftp.chg.ru/pub/lang/lua/ \
http://www.lua.org/ftp/ \
http://www.tecgraf.puc-rio.br/lua/ftp/ \
http://ftp.gwdg.de/pub/languages/lua/ \
http://mirrors.sunsite.dk/lua/ \
http://ftp.chg.ru/pub/lang/lua/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.lua.org/
COMMENT= Powerful light-weight language for extending applications
.include "../../lang/lua/version.mk"
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_LIBTOOL= yes
USE_TOOLS+= gmake
MAKE_ENV+= DLLIB=${BUILDLINK_LDADD.dl:Q}
MAKE_ENV+= INSTALL_DATA=${INSTALL_DATA:Q}
CFLAGS+= -DLUA_ROOT=\"${PREFIX}/\"
DOCDIR= ${PREFIX}/share/doc/lua
EGDIR= ${PREFIX}/share/examples/lua
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "FreeBSD"
BUILD_TARGET= freebsd
.elif !empty(OPSYS:M*BSD*) || ${OPSYS} == "DragonFly"
BUILD_TARGET= bsd
.elif ${OPSYS} == "Linux"
BUILD_TARGET= linux
.elif ${OPSYS} == "Darwin"
BUILD_TARGET= macosx
.elif ${OPSYS} == "SunOS"
BUILD_TARGET= solaris
.elif ${OPSYS} == "AIX"
BUILD_TARGET= aix
.else
BUILD_TARGET= generic
.endif
PKGCONFIG_OVERRIDE= ${WRKSRC}/etc/lua.pc
SUBST_CLASSES+= pc-prefix
SUBST_FILES.pc-prefix+= ${WRKSRC}/etc/lua.pc
SUBST_SED.pc-prefix+= -e "s,/usr/local,${PREFIX},"
SUBST_STAGE.pc-prefix= post-build
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
set -e; \
cd ${WRKSRC}; for f in README COPYRIGHT HISTORY; do \
${INSTALL_DATA} "$$f" ${DESTDIR}${DOCDIR}; \
done
set -e; \
cd ${WRKSRC}/doc; for f in *.html *.gif; do \
${INSTALL_DATA} "$$f" ${DESTDIR}${DOCDIR}; \
done
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
set -e; \
cd ${WRKSRC}/test; for f in README *.lua; do \
${INSTALL_DATA} "$$f" ${DESTDIR}${EGDIR}; \
done
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}/etc
set -e; \
cd ${WRKSRC}/etc; for f in README *.c *.ico *.lua; do \
${INSTALL_DATA} "$$f" ${DESTDIR}${EGDIR}/etc; \
done
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/pkgconfig
${INSTALL_DATA} ${WRKSRC}/etc/lua.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|