head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2013.01.05.23.50.23;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309973
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309973 | mandree | 2013-01-05 23:24:51 +0000 (Sat, 05 Jan 2013) | 27 lines
## SVN ##
## SVN ## Add new port lang/lua52.
## SVN ##
## SVN ## Lua is a programming language originally designed for extending applications,
## SVN ## but also frequently used as a general-purpose, stand-alone language. Lua
## SVN ## combines simple procedural syntax (similar to Pascal) with powerful data
## SVN ## description constructs based on associative arrays and extensible semantics.
## SVN ## Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
## SVN ## management with garbage collection, making it ideal for configuration,
## SVN ## scripting, and rapid prototyping.
## SVN ##
## SVN ## A fundamental concept in the design of Lua is to provide meta-mechanisms for
## SVN ## implementing features, instead of providing a host of features directly in
## SVN ## the language. For example, although Lua is not a pure object-oriented
## SVN ## language, it does provide meta-mechanisms for implementing classes and
## SVN ## inheritance. Lua's meta-mechanisms bring an economy of concepts and keep the
## SVN ## language small, while allowing the semantics to be extended in unconventional
## SVN ## ways. Extensible semantics is a distinguishing feature of Lua.
## SVN ##
## SVN ## Lua is implemented as a small library of C functions, written in ANSI C, and
## SVN ## compiles unmodified in all known platforms. The implementation goals are
## SVN ## simplicity, efficiency, portability, and low embedding cost.
## SVN ##
## SVN ## WWW: http://www.lua.org/
## SVN ##
## SVN ## PR:		ports/174437
## SVN ## Submitted by:	Green Dog <fiziologus@@gmail.com>
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@--- Makefile.orig	2012-12-14 18:29:11.000000000 +0400
+++ Makefile	2012-12-14 18:45:06.000000000 +0400
@@@@ -10,13 +10,13 @@@@
 # so take care if INSTALL_TOP is not an absolute path. See the local target.
 # You may want to make INSTALL_LMOD and INSTALL_CMOD consistent with
 # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h.
-INSTALL_TOP= /usr/local
-INSTALL_BIN= $(INSTALL_TOP)/bin
-INSTALL_INC= $(INSTALL_TOP)/include
-INSTALL_LIB= $(INSTALL_TOP)/lib
+INSTALL_TOP= %%LUA_PREFIX%%
+INSTALL_BIN= %%LUA_BINDIR%%
+INSTALL_INC= %%LUA_INCDIR%%
+INSTALL_LIB= %%LUA_LIBDIR%%
 INSTALL_MAN= $(INSTALL_TOP)/man/man1
-INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
-INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
+INSTALL_LMOD= %%LUA_MODSHAREDIR%%
+INSTALL_CMOD= %%LUA_MODLIBDIR%%
 
 # How to install. If your install program does not support "-p", then
 # you may have to run ranlib on the installed liblua.a.
@@@@ -41,8 +41,8 @@@@
 # What to install.
 TO_BIN= lua luac
 TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
-TO_LIB= liblua.a
-TO_MAN= lua.1 luac.1
+TO_LIB= liblua.a liblua-5.2.so.1
+TO_MAN= lua-5.2.1 luac-5.2.1
 
 # Lua version and release.
 V= 5.2
@@@@ -61,8 +61,8 @@@@
 	cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
 	cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
 	cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
-	cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
-	cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
+	cd src && mv liblua.so liblua-$V.so.%%LUA_VER_SH%% && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
+	cd doc && mv lua.1 lua-$V.1 && mv luac.1 luac-$V.1 && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
 
 uninstall:
 	cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)
@
