View | Details | Raw Unified | Return to bug 101612
Collapse All | Expand All

(-)./alephone/Makefile (-5 / +5 lines)
Lines 16-33 Link Here
16
COMMENT=	The open source version of Bungie's Marathon game
16
COMMENT=	The open source version of Bungie's Marathon game
17
17
18
BUILD_DEPENDS=	${LOCALBASE}/include/boost/function.hpp:${PORTSDIR}/devel/boost
18
BUILD_DEPENDS=	${LOCALBASE}/include/boost/function.hpp:${PORTSDIR}/devel/boost
19
LIB_DEPENDS=	speex.3:${PORTSDIR}/audio/speex \
19
LIB_DEPENDS=	speex.3:${PORTSDIR}/audio/speex
20
		lua.5:${PORTSDIR}/lang/lua50
21
20
22
USE_X_PREFIX=	yes
21
USE_X_PREFIX=	yes
22
USE_GL=		yes
23
USE_GNOME=	gnometarget
23
USE_GNOME=	gnometarget
24
USE_LUA=	5.0
24
USE_SDL=	image net sdl sound
25
USE_SDL=	image net sdl sound
25
USE_GL=		yes
26
GNU_CONFIGURE=	yes
26
GNU_CONFIGURE=	yes
27
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
27
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
28
		
28
		
29
CPPFLAGS=	-I${LOCALBASE}/include -I${X11BASE}/include
29
CPPFLAGS=	-I${LOCALBASE}/include -I${X11BASE}/include -I${LUA_INCDIR}
30
LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib
30
LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib -L${LUA_LIBDIR}
31
31
32
.include <bsd.port.pre.mk>
32
.include <bsd.port.pre.mk>
33
33
(-)./enigma/Makefile (-8 / +10 lines)
Lines 15-35 Link Here
15
MAINTAINER=	anholt@FreeBSD.org
15
MAINTAINER=	anholt@FreeBSD.org
16
COMMENT=	Enigma is a reimplementation of Oxyd, a puzzle game
16
COMMENT=	Enigma is a reimplementation of Oxyd, a puzzle game
17
17
18
BUILD_DEPENDS=	${LOCALBASE}/bin/tolua:${PORTSDIR}/lang/tolua4
18
LIB_DEPENDS=	zipios.0:${PORTSDIR}/archivers/zipios++
19
LIB_DEPENDS=	zipios.0:${PORTSDIR}/archivers/zipios++ \
20
		lua.4:${PORTSDIR}/lang/lua4
21
19
22
USE_GCC=	3.4
20
USE_GCC=	3.4
23
24
GNU_CONFIGURE=	yes
25
USE_XLIB=	yes
26
USE_GMAKE=	yes
21
USE_GMAKE=	yes
27
USE_GETTEXT=	yes
22
USE_GETTEXT=	yes
23
USE_LUA=	4.0
24
LUA_COMPS=	lua tolua
28
USE_SDL=	gfx image mixer sdl ttf
25
USE_SDL=	gfx image mixer sdl ttf
26
USE_XLIB=	yes
27
GNU_CONFIGURE=	yes
29
CONFIGURE_ARGS=	--target="" \
28
CONFIGURE_ARGS=	--target="" \
30
		--with-libintl-prefix="${LOCALBASE}"
29
		--with-libintl-prefix="${LOCALBASE}"
31
CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
30
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \
32
		CXXFLAGS="${PTHREAD_CFLAGS} -I${X11BASE}/include"
31
		LDFLAGS="${LDFLAGS}"
32
CPPFLAGS=	-I${LOCALBASE}/include -I${LUA_INCDIR}
33
CXXFLAGS=	-I${X11BASE}/include ${PTHREAD_CFLAGS}
34
LDFLAGS=	-L${LOCALBASE}/lib -L${LUA_LIBDIR} ${PTHREAD_LIBS}
33
35
34
MAN6=		enigma.6
36
MAN6=		enigma.6
35
37
(-)./fillets-ng/Makefile (-3 / +4 lines)
Lines 19-33 Link Here
19
MAINTAINER=	amdmi3@mail.ru
19
MAINTAINER=	amdmi3@mail.ru
20
COMMENT=	A wonderful puzzle game
20
COMMENT=	A wonderful puzzle game
21
21
22
LIB_DEPENDS=	lua.5:${PORTSDIR}/lang/lua50
23
24
USE_SDL=	sdl mixer image ttf
22
USE_SDL=	sdl mixer image ttf
23
USE_LUA=	5.0
25
USE_GMAKE=	yes
24
USE_GMAKE=	yes
26
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
27
26
28
CONFIGURE_ENV=		SDL_CONFIG="${SDL_CONFIG}"
27
CONFIGURE_ENV=		CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
29
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
28
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
30
CONFIGURE_ARGS=		--datadir="${DATADIR}" --with-lua="${LOCALBASE}"
29
CONFIGURE_ARGS=		--datadir="${DATADIR}" --with-lua="${LOCALBASE}"
30
CPPFLAGS=	-I${LUA_INCDIR}
31
LDFLAGS=	-L${LUA_LIBDIR}
31
32
32
OPTIONS=	FRIBIDI		"Enable fribidi support"	off
33
OPTIONS=	FRIBIDI		"Enable fribidi support"	off
33
34
(-)./imapfilter/Makefile (-15 / +19 lines)
Lines 13-47 Link Here
13
MAINTAINER=	stefan@FreeBSD.org
13
MAINTAINER=	stefan@FreeBSD.org
14
COMMENT=	IMAP mail filtering utility
14
COMMENT=	IMAP mail filtering utility
15
15
16
BUILD_DEPENDS=	${LOCALBASE}/include/lua.hpp:${PORTSDIR}/lang/lua
17
18
USE_BZIP2=	yes
16
USE_BZIP2=	yes
17
USE_LUA=	5.1
19
USE_OPENSSL=	yes
18
USE_OPENSSL=	yes
20
HAS_CONFIGURE=	yes
19
HAS_CONFIGURE=	yes
21
CONFIGURE_ARGS=	-d ${PREFIX} -s ${DATADIR}
20
CONFIGURE_ARGS=	-d ${PREFIX} -s ${DATADIR}
21
CPPFLAGS=	-I${LOCALBASE}/include -I${LUA_INCDIR}
22
LDFLAGS=	-L${LOCALBASE}/lib -L${LUA_LIBDIR}
22
23
23
MAN1=		imapfilter.1
24
MAN1=		imapfilter.1
24
MAN5=		imapfilter_config.5
25
MAN5=		imapfilter_config.5
25
PORTDOCS=	LICENSE NEWS README
26
PORTDOCS=	LICENSE NEWS README
26
PLIST_FILES=	bin/imapfilter \
27
PLIST_FILES=	bin/imapfilter \
27
		${DATADIR:S%${PREFIX}/%%}/interface.lua \
28
		%%DATADIR%%/interface.lua \
28
		${DATADIR:S%${PREFIX}/%%}/auxiliary.lua \
29
		%%DATADIR%%/auxiliary.lua \
29
		${EXAMPLESDIR:S%${PREFIX}/%%}/sample.config.lua \
30
		%%EXAMPLESDIR%%/sample.config.lua \
30
		${EXAMPLESDIR:S%${PREFIX}/%%}/sample.extend.lua
31
		%%EXAMPLESDIR%%/sample.extend.lua
31
PLIST_DIRS=	${DATADIR:S%${PREFIX}/%%} ${EXAMPLESDIR:S%${PREFIX}/%%}
32
PLIST_DIRS=	%%DATADIR%% %%EXAMPLESDIR%%
32
33
33
post-patch:
34
post-patch:
34
	${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/configure
35
	@${REINPLACE_CMD} -Ee \
35
	${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/configure
36
		's|^(incdirs=).*|\1"${CPPFLAGS}"| ; \
37
		 s|^(libdirs=).*|\1"${LDFLAGS}"| ; \
38
		 s|^(mycflags=).*|\1"${CFLAGS}"| ; \
39
		 s|-llualib||' \
40
		${WRKSRC}/configure
36
41
37
post-install:
42
post-install:
38
	${STRIP_CMD} ${PREFIX}/bin/imapfilter
43
	${STRIP_CMD} ${PREFIX}/bin/imapfilter
39
	@${MKDIR} ${DATADIR}
44
	@${MKDIR} ${DATADIR} ${EXAMPLESDIR}
40
	cd ${WRKSRC} && ${INSTALL_DATA} interface.lua \
45
	cd ${WRKSRC} && \
41
		auxiliary.lua ${DATADIR}
46
		${INSTALL_DATA} interface.lua auxiliary.lua ${DATADIR} && \
42
	@${MKDIR} ${EXAMPLESDIR}
47
		${INSTALL_DATA} sample.config.lua sample.extend.lua \
43
	cd ${WRKSRC} && ${INSTALL_DATA} sample.config.lua \
48
			${EXAMPLESDIR}
44
		sample.extend.lua ${EXAMPLESDIR}
45
.if !defined(NOPORTDOCS)
49
.if !defined(NOPORTDOCS)
46
	@${MKDIR} ${DOCSDIR}
50
	@${MKDIR} ${DOCSDIR}
47
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
51
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
(-)./imapfilter/files/patch-configure (-73 lines)
Removed Link Here
1
--- configure.orig	Thu Mar  9 23:58:22 2006
2
+++ configure	Fri May 26 21:52:12 2006
3
@@ -2,7 +2,7 @@
4
 
5
 # Default values
6
 
7
-destdir="/usr/local"
8
+destdir="%%PREFIX%%"
9
 bindir="$destdir/bin"
10
 sharedir="$destdir/share/imapfilter"
11
 mandir="$destdir/man"
12
@@ -10,13 +10,13 @@
13
 ssltls="yes"
14
 crammd5="yes"
15
 
16
-incdirs="-I/usr/local/include"
17
-libdirs="-L/usr/local/lib"
18
+incdirs="-I%%LOCALBASE%%/include"
19
+libdirs="-L%%LOCALBASE%%/lib"
20
 
21
 mycflags="-Wall -O"
22
 myldflags=""
23
 
24
-libs="-lm -llua -llualib"
25
+libs="-lm -llua"
26
 libssl="-lssl"
27
 libcrypto="-lcrypto"
28
 
29
@@ -145,16 +145,16 @@
30
 SHAREDIR = $sharedir
31
 MANDIR = $mandir
32
 
33
+INST_BIN = \$(BSD_INSTALL_PROGRAM)
34
+INST_DOC = \$(BSD_INSTALL_MAN)
35
+
36
 INCDIRS = $incdirs
37
 LIBDIRS = $libdirs
38
 
39
-MYCFLAGS = $mycflags
40
-MYLDFLAGS = $myldflags
41
-
42
 DEFS = $defs
43
 
44
-CFLAGS = \$(MYCFLAGS) \$(DEFS) \$(INCDIRS)
45
-LDFLAGS = \$(MYLDFLAGS) \$(LIBDIRS)
46
+CFLAGS += \$(DEFS) \$(INCDIRS)
47
+LDFLAGS += \$(LIBDIRS)
48
 
49
 LIBS = $libs
50
 
51
@@ -184,19 +184,9 @@
52
 imapfilter.o: version.h
53
 
54
 install: \$(BIN)
55
-	if test ! -d \$(BINDIR); then mkdir -p \$(BINDIR); fi
56
-	cp -f \$(BIN) \$(BINDIR) && chmod 0755 \$(BINDIR)/\$(BIN)
57
-	if test ! -d \$(SHAREDIR); then mkdir -p \$(SHAREDIR); fi
58
-	cp -f \$(INTERFACE_LUA) \$(SHAREDIR) && \\
59
-		chmod 0644 \$(SHAREDIR)/\$(INTERFACE_LUA)
60
-	cp -f \$(AUXILIARY_LUA) \$(SHAREDIR) && \\
61
-		chmod 0644 \$(SHAREDIR)/\$(AUXILIARY_LUA)
62
-	if test ! -d \$(MANDIR)/man1; then mkdir -p \$(MANDIR)/man1; fi
63
-	cp -f \$(MAN_BIN) \$(MANDIR)/man1 && \\
64
-		chmod 0644 \$(MANDIR)/man1/\$(MAN_BIN)
65
-	if test ! -d \$(MANDIR)/man5; then mkdir -p \$(MANDIR)/man5; fi
66
-	cp -f \$(MAN_CONFIG) \$(MANDIR)/man5 && \\
67
-		chmod 0644 \$(MANDIR)/man5/\$(MAN_CONFIG)
68
+	\$(INST_BIN) \$(BIN) \$(BINDIR)
69
+	\$(INST_DOC) \$(MAN_BIN) \$(MANDIR)/man1
70
+	\$(INST_DOC) \$(MAN_CONFIG) \$(MANDIR)/man5
71
 
72
 deinstall:
73
 	rm -f \$(BINDIR)/\$(BIN) \$(SHAREDIR)/\$(INTERFACE_LUA) \\
(-)./ion-2/Makefile (-4 / +3 lines)
Lines 15-29 Link Here
15
MAINTAINER=	anthony.ginepro@laposte.net
15
MAINTAINER=	anthony.ginepro@laposte.net
16
COMMENT=	Ion is a tiling tabbed window manager
16
COMMENT=	Ion is a tiling tabbed window manager
17
17
18
LIB_DEPENDS=	lua.5:${PORTSDIR}/lang/lua50
19
20
CONFLICTS=	ion-2002* ion-devel-* pwm-*
18
CONFLICTS=	ion-2002* ion-devel-* pwm-*
21
19
22
GNU_CONFIGURE=	yes
23
USE_AUTOTOOLS=	libtool:15 libltdl:15
24
USE_X_PREFIX=	yes
20
USE_X_PREFIX=	yes
21
USE_AUTOTOOLS=	libtool:15 libltdl:15
22
USE_LUA=	5.0
25
USE_GMAKE=	yes
23
USE_GMAKE=	yes
26
MAKE_ENV=	DEFINES="${IONDEFINES}"
24
MAKE_ENV=	DEFINES="${IONDEFINES}"
25
GNU_CONFIGURE=	yes
27
26
28
.if !defined(WITH_MULTIBYTE)
27
.if !defined(WITH_MULTIBYTE)
29
IONDEFINES+=	-DCF_NO_MB_SUPPORT
28
IONDEFINES+=	-DCF_NO_MB_SUPPORT
(-)./ion-2/files/patch-rules.mk (-2 / +2 lines)
Lines 1-5 Link Here
1
--- rules.mk	Wed Apr  7 09:15:54 2004
1
--- ./rules.mk.orig	Thu Jul 29 00:10:32 2004
2
+++ rules.mk.bsd	Sun Apr 11 12:55:10 2004
2
+++ ./rules.mk	Mon Jul 17 21:50:19 2006
3
@@ -91,6 +91,7 @@
3
@@ -91,6 +91,7 @@
4
 module_install:
4
 module_install:
5
 	$(INSTALLDIR) $(MODULEDIR)
5
 	$(INSTALLDIR) $(MODULEDIR)
(-)./ion-2/files/patch-system.mk (-6 / +14 lines)
Lines 1-5 Link Here
1
--- system.mk.orig	Tue Jun  1 16:35:23 2004
1
--- ./system.mk.orig	Thu Jul 29 00:10:32 2004
2
+++ system.mk	Sat Jun  5 13:27:08 2004
2
+++ ./system.mk	Mon Jul 17 21:53:01 2006
3
@@ -7,7 +7,7 @@
3
@@ -7,7 +7,7 @@
4
 ## Installation paths
4
 ## Installation paths
5
 ##
5
 ##
Lines 33-47 Link Here
33
 
33
 
34
 # The following should do it if you have manually installed libtool 1.5 in
34
 # The following should do it if you have manually installed libtool 1.5 in
35
 # $(LIBTOOLDIR).
35
 # $(LIBTOOLDIR).
36
@@ -72,7 +72,7 @@
36
@@ -72,11 +72,11 @@
37
 
37
 
38
 # If you have installed Lua 5.0 from the official tarball without changing
38
 # If you have installed Lua 5.0 from the official tarball without changing
39
 # paths, this should do it.
39
 # paths, this should do it.
40
-LUA_DIR=/usr/local
40
-LUA_DIR=/usr/local
41
-LUA_LIBS = -L$(LUA_DIR)/lib -R$(LUA_DIR)/lib -llua -llualib
42
-LUA_INCLUDES = -I$(LUA_DIR)/include
43
-LUA=$(LUA_DIR)/bin/lua
44
-LUAC=$(LUA_DIR)/bin/luac
41
+LUA_DIR=$(LOCALBASE)
45
+LUA_DIR=$(LOCALBASE)
42
 LUA_LIBS = -L$(LUA_DIR)/lib -R$(LUA_DIR)/lib -llua -llualib
46
+LUA_LIBS = -L$(LUA_LIBDIR) -R$(LUA_LIBDIR) -llua -llualib
43
 LUA_INCLUDES = -I$(LUA_DIR)/include
47
+LUA_INCLUDES = -I$(LUA_INCDIR)
44
 LUA=$(LUA_DIR)/bin/lua
48
+LUA=$(LUA_BINDIR)/lua
49
+LUAC=$(LUA_BINDIR)/luac
50
 
51
 # If you are using the Debian packages, the following settings should be
52
 # what you want.
45
@@ -90,7 +90,7 @@
53
@@ -90,7 +90,7 @@
46
 ## X libraries, includes and options
54
 ## X libraries, includes and options
47
 ##
55
 ##
(-)./ion-3ds/Makefile (-1 / +1 lines)
Lines 13-24 Link Here
13
MAINTAINER=	ed@fxq.nl
13
MAINTAINER=	ed@fxq.nl
14
COMMENT=	The development version of the Ion window manager
14
COMMENT=	The development version of the Ion window manager
15
15
16
BUILD_DEPENDS=	${LOCALBASE}/include/lua.hpp:${PORTSDIR}/lang/lua
17
RUN_DEPENDS=	run-mailcap:${PORTSDIR}/misc/mime-support
16
RUN_DEPENDS=	run-mailcap:${PORTSDIR}/misc/mime-support
18
17
19
USE_X_PREFIX=	yes
18
USE_X_PREFIX=	yes
20
USE_GETTEXT=	yes
19
USE_GETTEXT=	yes
21
USE_GMAKE=	yes
20
USE_GMAKE=	yes
21
USE_LUA=	5.1
22
MAKE_ENV=	DEFINES="${IONDEFINES}"
22
MAKE_ENV=	DEFINES="${IONDEFINES}"
23
23
24
.if !defined(WITH_XINERAMA)
24
.if !defined(WITH_XINERAMA)
(-)./ion-3ds/files/patch-system.mk (-6 / +14 lines)
Lines 1-5 Link Here
1
--- system.mk.orig	Thu May 18 16:06:53 2006
1
--- ./system.mk.orig	Wed May 24 13:23:51 2006
2
+++ system.mk	Fri May 19 13:19:25 2006
2
+++ ./system.mk	Mon Jul 17 18:15:24 2006
3
@@ -7,7 +7,7 @@
3
@@ -7,7 +7,7 @@
4
 ## Installation paths
4
 ## Installation paths
5
 ##
5
 ##
Lines 27-41 Link Here
27
 
27
 
28
 
28
 
29
 ##
29
 ##
30
@@ -56,7 +56,7 @@
30
@@ -56,11 +56,11 @@
31
 
31
 
32
 # If you have installed Lua 5.1 from the official tarball without changing
32
 # If you have installed Lua 5.1 from the official tarball without changing
33
 # paths, this should do it.
33
 # paths, this should do it.
34
-LUA_DIR=/usr/local
34
-LUA_DIR=/usr/local
35
-LUA_LIBS = -L$(LUA_DIR)/lib -llua
36
-LUA_INCLUDES = -I$(LUA_DIR)/include
37
-LUA=$(LUA_DIR)/bin/lua
38
-LUAC=$(LUA_DIR)/bin/luac
35
+LUA_DIR=$(LOCALBASE)
39
+LUA_DIR=$(LOCALBASE)
36
 LUA_LIBS = -L$(LUA_DIR)/lib -llua
40
+LUA_LIBS = -L$(LUA_LIBDIR) -llua
37
 LUA_INCLUDES = -I$(LUA_DIR)/include
41
+LUA_INCLUDES = -I$(LUA_INCDIR)
38
 LUA=$(LUA_DIR)/bin/lua
42
+LUA=$(LUA_BINDIR)/lua
43
+LUAC=$(LUA_BINDIR)/luac
44
 
45
 # If you are using the Debian packages, the following settings should be
46
 # what you want.
39
@@ -74,7 +74,7 @@
47
@@ -74,7 +74,7 @@
40
 ## X libraries, includes and options
48
 ## X libraries, includes and options
41
 ##
49
 ##
(-)./lua/Makefile (-10 / +48 lines)
Lines 19-38 Link Here
19
MAINTAINER=	him@richardkiss.com
19
MAINTAINER=	him@richardkiss.com
20
COMMENT=	Small, compilable scripting language providing easy access to C code
20
COMMENT=	Small, compilable scripting language providing easy access to C code
21
21
22
MAN1=		lua.1 luac.1
22
USE_LUA=	5.1
23
23
LUA_COMPS=	# only define variables
24
MAKE_ARGS=	bsd
24
ALL_TARGET=	bsd
25
25
26
CONFLICTS=	lua-4* lua-5.0*
26
MAN1=		lua-${LUA_VER}.1 luac-${LUA_VER}.1
27
DOCSDIR=	${PREFIX}/share/doc/${LUA_SUBDIR}
28
LATEST_LINK=	${LUA_SUBDIR}
29
30
LUA_BIN=	lua luac
31
LUA_INC=	lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
32
LUA_MAN=	${LUA_BIN:S/$/.1/}
27
33
28
post-patch:
34
post-patch:
29
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile
35
	@${REINPLACE_CMD} -Ee \
30
36
		 's|^(CC=).*|\1 ${CC}| ; \
31
post-install:
37
		 s|^(CFLAGS=)|\1 ${CFLAGS}| ; \
38
		 s|/usr/local|${PREFIX}|' \
39
		 ${WRKSRC}/Makefile ${WRKSRC}/src/Makefile
40
41
post-build:
42
	@${RM} -f ${WRKSRC}/test/lua ${WRKSRC}/test/luac
43
44
do-install:
45
# Programs.
46
	${MKDIR} ${LUA_BINDIR}
47
.for f in ${LUA_BIN}
48
	${INSTALL_PROGRAM} ${WRKSRC}/src/${f} ${LUA_BINDIR}
49
	${LN} -sf ${LUA_SUBDIR}/${f} ${PREFIX}/bin/${f}-${LUA_VER}
50
.endfor
51
# Include files.
52
	${MKDIR} ${LUA_INCDIR}
53
.for f in ${LUA_INC}
54
	${INSTALL_DATA} ${WRKSRC}/src/${f} ${LUA_INCDIR}
55
.endfor
56
# Libraries.
57
	${MKDIR} ${LUA_LIBDIR}
58
	${INSTALL_DATA} ${WRKSRC}/src/liblua.a ${LUA_LIBDIR}
59
# Manual pages.
60
.for f in ${LUA_MAN}
61
	${INSTALL_MAN} ${WRKSRC}/doc/${f} \
62
		${PREFIX}/man/man1/${f:C/.1$//}-${LUA_VER}.1
63
.endfor
64
# Documentation.
32
.if !defined(NOPORTDOCS)
65
.if !defined(NOPORTDOCS)
33
	@${MKDIR} ${DOCSDIR}
66
	${MKDIR} ${DOCSDIR}
34
	@cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.css *.gif ${DOCSDIR}
67
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
68
	cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
69
	${CP} -r ${WRKSRC}/etc ${WRKSRC}/test ${DOCSDIR}
35
.endif
70
.endif
71
# Module directories.
72
	${MKDIR} ${LUA_MODLIBDIR}
73
	${MKDIR} ${LUA_MODSHAREDIR}
36
74
37
.if ${MACHINE_ARCH:L} == "amd64"
75
.if ${MACHINE_ARCH:L} == "amd64"
38
CFLAGS+=	-fPIC
76
CFLAGS+=	-fPIC
(-)./lua/pkg-plist (-22 / +59 lines)
Lines 1-22 Link Here
1
@exec mkdir -p %D/lib/lua/5.1
1
@exec mkdir -p %D/share/lua/%%LUA_VER%%
2
@exec mkdir -p %D/share/lua/5.1
2
@exec mkdir -p %D/lib/lua/%%LUA_VER%%
3
%%DOCSDIR%%/contents.html
3
bin/lua-%%LUA_VER%%
4
%%DOCSDIR%%/logo.gif
4
%%LUA_BINDIR%%/lua
5
%%DOCSDIR%%/lua.css
5
%%LUA_BINDIR%%/luac
6
%%DOCSDIR%%/lua.html
6
bin/luac-%%LUA_VER%%
7
%%DOCSDIR%%/luac.html
7
%%LUA_INCDIR%%/lauxlib.h
8
%%DOCSDIR%%/manual.html
8
%%LUA_INCDIR%%/lua.h
9
%%DOCSDIR%%/readme.html
9
%%LUA_INCDIR%%/lua.hpp
10
bin/lua
10
%%LUA_INCDIR%%/luaconf.h
11
bin/luac
11
%%LUA_INCDIR%%/lualib.h
12
include/lauxlib.h
12
%%LUA_LIBDIR%%/liblua.a
13
include/lua.h
13
%%PORTDOCS%%%%DOCSDIR%%/README
14
include/lua.hpp
14
%%PORTDOCS%%%%DOCSDIR%%/contents.html
15
include/luaconf.h
15
%%PORTDOCS%%%%DOCSDIR%%/etc/Makefile
16
include/lualib.h
16
%%PORTDOCS%%%%DOCSDIR%%/etc/README
17
lib/liblua.a
17
%%PORTDOCS%%%%DOCSDIR%%/etc/all.c
18
@dirrm %%DOCSDIR%%
18
%%PORTDOCS%%%%DOCSDIR%%/etc/lua.hpp
19
@dirrm share/lua/5.1
19
%%PORTDOCS%%%%DOCSDIR%%/etc/lua.ico
20
@dirrm share/lua
20
%%PORTDOCS%%%%DOCSDIR%%/etc/lua.pc
21
@dirrm lib/lua/5.1
21
%%PORTDOCS%%%%DOCSDIR%%/etc/luavs.bat
22
@dirrm lib/lua
22
%%PORTDOCS%%%%DOCSDIR%%/etc/min.c
23
%%PORTDOCS%%%%DOCSDIR%%/etc/noparser.c
24
%%PORTDOCS%%%%DOCSDIR%%/etc/strict.lua
25
%%PORTDOCS%%%%DOCSDIR%%/logo.gif
26
%%PORTDOCS%%%%DOCSDIR%%/lua.html
27
%%PORTDOCS%%%%DOCSDIR%%/luac.html
28
%%PORTDOCS%%%%DOCSDIR%%/manual.html
29
%%PORTDOCS%%%%DOCSDIR%%/readme.html
30
%%PORTDOCS%%%%DOCSDIR%%/test/README
31
%%PORTDOCS%%%%DOCSDIR%%/test/bisect.lua
32
%%PORTDOCS%%%%DOCSDIR%%/test/cf.lua
33
%%PORTDOCS%%%%DOCSDIR%%/test/echo.lua
34
%%PORTDOCS%%%%DOCSDIR%%/test/env.lua
35
%%PORTDOCS%%%%DOCSDIR%%/test/factorial.lua
36
%%PORTDOCS%%%%DOCSDIR%%/test/fib.lua
37
%%PORTDOCS%%%%DOCSDIR%%/test/fibfor.lua
38
%%PORTDOCS%%%%DOCSDIR%%/test/globals.lua
39
%%PORTDOCS%%%%DOCSDIR%%/test/hello.lua
40
%%PORTDOCS%%%%DOCSDIR%%/test/life.lua
41
%%PORTDOCS%%%%DOCSDIR%%/test/luac.lua
42
%%PORTDOCS%%%%DOCSDIR%%/test/printf.lua
43
%%PORTDOCS%%%%DOCSDIR%%/test/readonly.lua
44
%%PORTDOCS%%%%DOCSDIR%%/test/sieve.lua
45
%%PORTDOCS%%%%DOCSDIR%%/test/sort.lua
46
%%PORTDOCS%%%%DOCSDIR%%/test/table.lua
47
%%PORTDOCS%%%%DOCSDIR%%/test/trace-calls.lua
48
%%PORTDOCS%%%%DOCSDIR%%/test/trace-globals.lua
49
%%PORTDOCS%%%%DOCSDIR%%/test/xd.lua
50
@dirrm share/lua/%%LUA_VER%%
51
@dirrmtry share/lua
52
%%PORTDOCS%%@dirrm %%DOCSDIR%%/test
53
%%PORTDOCS%%@dirrm %%DOCSDIR%%/etc
54
%%PORTDOCS%%@dirrm %%DOCSDIR%%
55
@dirrm %%LUA_LIBDIR%%
56
@dirrm lib/lua/%%LUA_VER%%
57
@dirrmtry lib/lua
58
@dirrm %%LUA_INCDIR%%
59
@dirrm %%LUA_BINDIR%%
(-)./lua4/Makefile (-30 / +64 lines)
Lines 17-56 Link Here
17
MAINTAINER=	him@richardkiss.com
17
MAINTAINER=	him@richardkiss.com
18
COMMENT=	Small, compilable scripting language providing easy access to C code
18
COMMENT=	Small, compilable scripting language providing easy access to C code
19
19
20
LATEST_LINK=	lua4
20
USE_LDCONFIG=	yes
21
MAN1=		luac.1
21
USE_LUA=	4.0
22
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
22
LUA_COMPS=	# only define variables
23
ALL_TARGET=	all so
23
ALL_TARGET=	all so
24
INSTALLS_SHLIB=	YES
25
24
26
CONFLICTS=	lua-5*
25
MAN1=		lua-${LUA_VER}.1 luac-${LUA_VER}.1
26
DOCSDIR=	${PREFIX}/share/doc/${LUA_SUBDIR}
27
LATEST_LINK=	${LUA_SUBDIR}
27
28
28
do-install:
29
LUA_BIN=	lua luac
29
	@ ${MKDIR} ${PREFIX}/share/doc/lua
30
LUA_LIB=	lua lualib
30
	@ ${INSTALL_PROGRAM} ${WRKSRC}/bin/lua ${PREFIX}/bin
31
LUA_MAN=	${LUA_BIN:S/$/.1/}
31
	@ ${INSTALL_PROGRAM} ${WRKSRC}/bin/luac ${PREFIX}/bin
32
32
	@ ${INSTALL_MAN} ${WRKSRC}/doc/luac.1 ${PREFIX}/man/man1/luac.1
33
.include <bsd.port.pre.mk>
33
	@ ${INSTALL_DATA} ${WRKSRC}/doc/idx.html ${PREFIX}/share/doc/lua
34
	@ ${INSTALL_DATA} ${WRKSRC}/doc/index.html ${PREFIX}/share/doc/lua
35
	@ ${INSTALL_DATA} ${WRKSRC}/doc/luac.html ${PREFIX}/share/doc/lua
36
	@ ${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${PREFIX}/share/doc/lua
37
	@ ${INSTALL_DATA} ${WRKSRC}/include/lua.h ${PREFIX}/include
38
	@ ${INSTALL_DATA} ${WRKSRC}/include/luadebug.h ${PREFIX}/include
39
	@ ${INSTALL_DATA} ${WRKSRC}/include/lualib.h ${PREFIX}/include
40
	@ ${INSTALL_DATA} ${WRKSRC}/include/lauxlib.h ${PREFIX}/include
41
	@ ${INSTALL_DATA} ${WRKSRC}/lib/liblua.a ${PREFIX}/lib
42
	@ ${INSTALL_DATA} ${WRKSRC}/lib/liblua.so.4.0 ${PREFIX}/lib/liblua.so.4
43
	@ ${LN} -s ${PREFIX}/lib/liblua.so.4 ${PREFIX}/lib/liblua.so
44
	@ ${INSTALL_DATA} ${WRKSRC}/lib/liblualib.a ${PREFIX}/lib
45
	@ ${INSTALL_DATA} ${WRKSRC}/lib/liblualib.so.4.0 ${PREFIX}/lib/liblualib.so.4
46
	@ ${LN} -s ${PREFIX}/lib/liblualib.so.4 ${PREFIX}/lib/liblualib.so
47
48
post-install:
49
	@${STRIP_CMD} ${PREFIX}/bin/lua
50
	@${STRIP_CMD} ${PREFIX}/bin/luac
51
34
52
.if ${MACHINE_ARCH:L} == "amd64"
35
.if ${ARCH} == "amd64"
53
CFLAGS+=	-fPIC
36
CFLAGS+=	-fPIC
54
.endif
37
.endif
55
38
56
.include <bsd.port.mk>
39
post-patch:
40
	@${REINPLACE_CMD} -Ee \
41
		's|^#(POPEN=.*)|\1|; \
42
		 s|^(CC=).*|\1 ${CC}|; \
43
		 s|^(CFLAGS=) -O2 (.*)|\1 ${CFLAGS} \2|; \
44
		 s|^(V=)[[:digit:]]\.0|\1 ${LUA_VER}|' \
45
		${WRKSRC}/config
46
	@${REINPLACE_CMD} -Ee 's|(ld -o lib/(liblua(lib)?)\.so\.\$$V)|\1 -soname=\2-${LUA_VER}.so.${LUA_VER_SH}|' \
47
		${WRKSRC}/${MAKEFILE}
48
49
post-build:
50
	@${RM} -f ${WRKSRC}/test/lua ${WRKSRC}/test/luac
51
52
do-install:
53
# Programs.
54
	${MKDIR} ${LUA_BINDIR}
55
.for f in ${LUA_BIN}
56
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} ${LUA_BINDIR}
57
	${LN} -sf ${LUA_SUBDIR}/${f} ${PREFIX}/bin/${f}-${LUA_VER}
58
.endfor
59
# Include files.
60
	${MKDIR} ${LUA_INCDIR}
61
	${INSTALL_DATA} ${WRKSRC}/include/*.h ${LUA_INCDIR}
62
# Libraries.
63
	${MKDIR} ${LUA_LIBDIR}
64
.for f in ${LUA_LIB}
65
	${INSTALL_PROGRAM} ${WRKSRC}/lib/lib${f}.a ${LUA_LIBDIR}
66
	${INSTALL_PROGRAM} ${WRKSRC}/lib/lib${f}.so \
67
		${LUA_LIBDIR}/lib${f}-${LUA_VER}.so.${LUA_VER_SH}
68
	@${LN} -sf lib${f}-${LUA_VER}.so.${LUA_VER_SH} ${LUA_LIBDIR}/lib${f}.so
69
	@${LN} -sf ${LUA_SUBDIR}/lib${f}-${LUA_VER}.so.${LUA_VER_SH} \
70
		${PREFIX}/lib
71
	@${LN} -sf lib${f}-${LUA_VER}.so.${LUA_VER_SH} \
72
		${PREFIX}/lib/lib${f}-${LUA_VER}.so
73
.endfor
74
# Manual pages.
75
.for f in ${LUA_MAN}
76
	${INSTALL_MAN} ${WRKSRC}/doc/${f} \
77
		${PREFIX}/man/man1/${f:C/.1$//}-${LUA_VER}.1
78
.endfor
79
# Documentation.
80
.if !defined(NOPORTDOCS)
81
	${MKDIR} ${DOCSDIR}
82
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
83
	cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
84
	${CP} -r ${WRKSRC}/etc ${WRKSRC}/test ${DOCSDIR}
85
.endif
86
# Module directories.
87
	${MKDIR} ${LUA_MODSHAREDIR}
88
	${MKDIR} ${LUA_MODLIBDIR}
89
90
.include <bsd.port.post.mk>
(-)./lua4/pkg-plist (-12 / +72 lines)
Lines 1-17 Link Here
1
bin/lua
1
@exec mkdir -p %D/share/lua/%%LUA_VER%%
2
bin/luac
2
@exec mkdir -p %D/lib/lua/%%LUA_VER%%
3
include/lauxlib.h
3
bin/lua-%%LUA_VER%%
4
include/lua.h
4
%%LUA_BINDIR%%/lua
5
include/luadebug.h
5
%%LUA_BINDIR%%/luac
6
include/lualib.h
6
bin/luac-%%LUA_VER%%
7
lib/liblua.a
7
%%LUA_INCDIR%%/lauxlib.h
8
lib/liblua.so
8
%%LUA_INCDIR%%/lua.h
9
lib/liblua.so.4
9
%%LUA_INCDIR%%/luadebug.h
10
lib/liblualib.a
10
%%LUA_INCDIR%%/lualib.h
11
lib/liblualib.so
11
lib/liblua-%%LUA_VER%%.so
12
lib/liblualib.so.4
12
lib/liblua-%%LUA_VER%%.so.%%LUA_VER_SH%%
13
lib/liblualib-%%LUA_VER%%.so
14
lib/liblualib-%%LUA_VER%%.so.0
15
%%LUA_LIBDIR%%/liblua-%%LUA_VER%%.so.%%LUA_VER_SH%%
16
%%LUA_LIBDIR%%/liblua.a
17
%%LUA_LIBDIR%%/liblua.so
18
%%LUA_LIBDIR%%/liblualib-%%LUA_VER%%.so.%%LUA_VER_SH%%
19
%%LUA_LIBDIR%%/liblualib.a
20
%%LUA_LIBDIR%%/liblualib.so
21
%%PORTDOCS%%%%DOCSDIR%%/etc/Makefile
22
%%PORTDOCS%%%%DOCSDIR%%/etc/README
23
%%PORTDOCS%%%%DOCSDIR%%/etc/bin2c.c
24
%%PORTDOCS%%%%DOCSDIR%%/etc/def.lua
25
%%PORTDOCS%%%%DOCSDIR%%/etc/lua.ico
26
%%PORTDOCS%%%%DOCSDIR%%/etc/lua.magic
27
%%PORTDOCS%%%%DOCSDIR%%/etc/lua.xpm
28
%%PORTDOCS%%%%DOCSDIR%%/etc/min.c
29
%%PORTDOCS%%%%DOCSDIR%%/etc/setfallback.lua
30
%%PORTDOCS%%%%DOCSDIR%%/etc/stdcall.lua
31
%%PORTDOCS%%%%DOCSDIR%%/etc/trace.c
32
%%PORTDOCS%%%%DOCSDIR%%/README
13
%%PORTDOCS%%%%DOCSDIR%%/idx.html
33
%%PORTDOCS%%%%DOCSDIR%%/idx.html
14
%%PORTDOCS%%%%DOCSDIR%%/index.html
34
%%PORTDOCS%%%%DOCSDIR%%/index.html
35
%%PORTDOCS%%%%DOCSDIR%%/logo.gif
36
%%PORTDOCS%%%%DOCSDIR%%/lua.html
15
%%PORTDOCS%%%%DOCSDIR%%/luac.html
37
%%PORTDOCS%%%%DOCSDIR%%/luac.html
16
%%PORTDOCS%%%%DOCSDIR%%/manual.html
38
%%PORTDOCS%%%%DOCSDIR%%/manual.html
39
%%PORTDOCS%%%%DOCSDIR%%/readme.html
40
%%PORTDOCS%%%%DOCSDIR%%/test/README
41
%%PORTDOCS%%%%DOCSDIR%%/test/bisect.lua
42
%%PORTDOCS%%%%DOCSDIR%%/test/cf-for.lua
43
%%PORTDOCS%%%%DOCSDIR%%/test/cf.lua
44
%%PORTDOCS%%%%DOCSDIR%%/test/examples/ps/hilbert.lua
45
%%PORTDOCS%%%%DOCSDIR%%/test/examples/ps/ps.lua
46
%%PORTDOCS%%%%DOCSDIR%%/test/examples/www/README
47
%%PORTDOCS%%%%DOCSDIR%%/test/examples/www/db.lua
48
%%PORTDOCS%%%%DOCSDIR%%/test/examples/www/staff.lua
49
%%PORTDOCS%%%%DOCSDIR%%/test/examples/www/template.html
50
%%PORTDOCS%%%%DOCSDIR%%/test/factorial.lua
51
%%PORTDOCS%%%%DOCSDIR%%/test/fib.lua
52
%%PORTDOCS%%%%DOCSDIR%%/test/globals.lua
53
%%PORTDOCS%%%%DOCSDIR%%/test/hello.lua
54
%%PORTDOCS%%%%DOCSDIR%%/test/life.lua
55
%%PORTDOCS%%%%DOCSDIR%%/test/lisp.lua
56
%%PORTDOCS%%%%DOCSDIR%%/test/old.lua
57
%%PORTDOCS%%%%DOCSDIR%%/test/qp.lua
58
%%PORTDOCS%%%%DOCSDIR%%/test/save.lua
59
%%PORTDOCS%%%%DOCSDIR%%/test/sort.lua
60
%%PORTDOCS%%%%DOCSDIR%%/test/table.lua
61
%%PORTDOCS%%%%DOCSDIR%%/test/trace-calls.lua
62
%%PORTDOCS%%%%DOCSDIR%%/test/trace-globals.lua
63
%%PORTDOCS%%%%DOCSDIR%%/test/undefined.lua
64
%%PORTDOCS%%%%DOCSDIR%%/test/webform.lua
65
@dirrm share/lua/%%LUA_VER%%
66
@dirrmtry share/lua
67
%%PORTDOCS%%@dirrm %%DOCSDIR%%/test/examples/www
68
%%PORTDOCS%%@dirrm %%DOCSDIR%%/test/examples/ps
69
%%PORTDOCS%%@dirrm %%DOCSDIR%%/test/examples
70
%%PORTDOCS%%@dirrm %%DOCSDIR%%/test
71
%%PORTDOCS%%@dirrm %%DOCSDIR%%/etc
17
%%PORTDOCS%%@dirrm %%DOCSDIR%%
72
%%PORTDOCS%%@dirrm %%DOCSDIR%%
73
@dirrm %%LUA_LIBDIR%%
74
@dirrm lib/lua/%%LUA_VER%%
75
@dirrmtry lib/lua
76
@dirrm %%LUA_INCDIR%%
77
@dirrm %%LUA_BINDIR%%
(-)./lua4/files/patch-aa (-19 lines)
Removed Link Here
1
--- config	Mon Nov  6 12:28:20 2000
2
+++ config.new	Tue Jan  2 15:51:57 2001
3
@@ -28,7 +28,6 @@
4
 # ------------------------------------------------------------------ C compiler
5
 
6
 # You need an ANSI C compiler. gcc is a popular one.
7
-CC= gcc
8
 WARN= -ansi -pedantic -Wall
9
 
10
 # On IRIX, cc is a good ANSI compiler.
11
@@ -93,7 +93,7 @@
12
 INCS= -I$(INC) $(EXTRA_INCS)
13
 DEFS= $(COMPAT) $(NUMBER) $(OLD_ANSI) $(EXTRA_DEFS)
14
 
15
-CFLAGS= -O2 $(WARN) $(INCS) $(DEFS)
16
+CFLAGS+= $(WARN) $(INCS) $(DEFS)
17
 
18
 V=4.0
19
 
(-)./lua50/Makefile (-25 / +65 lines)
Lines 19-54 Link Here
19
MAINTAINER=	him@richardkiss.com
19
MAINTAINER=	him@richardkiss.com
20
COMMENT=	Small, compilable scripting language providing easy access to C code
20
COMMENT=	Small, compilable scripting language providing easy access to C code
21
21
22
LATEST_LINK=	lua50
22
USE_LDCONFIG=	yes
23
MAN1=		lua.1 luac.1
23
USE_LUA=	5.0
24
LUA_COMPS=	# only define variables
24
ALL_TARGET=	all so
25
ALL_TARGET=	all so
25
INSTALL_TARGET=	install soinstall
26
INSTALLS_SHLIB=	YES
27
26
28
CONFLICTS=	lua-4* lua-5.1*
27
MAN1=		lua-${LUA_VER}.1 luac-${LUA_VER}.1
28
DOCSDIR=	${PREFIX}/share/doc/${LUA_SUBDIR}
29
LATEST_LINK=	${LUA_SUBDIR}
29
30
30
do-configure:
31
LUA_BIN=	lua luac
31
	${REINPLACE_CMD} \
32
LUA_LIB=	lua lualib
32
		-e 's|^\(MYCFLAGS=\).*$$|\1 ${CFLAGS}|' \
33
LUA_MAN=	${LUA_BIN:S/$/.1/}
33
		-e 's|^\(LOADLIB=\).*$$|\1 -DUSE_DLOPEN=1|' \
34
		-e 's|^\(CC=\).*$$|\1 ${CC}|' \
35
		-e 's|^\(STRIP=\).*$$|\1 ${STRIP_CMD}|' \
36
		-e 's|^\(INSTALL_ROOT=\).*$$|\1 ${PREFIX}|' \
37
		-e 's|^\(INSTALL_EXEC=\).*$$|\1 ${INSTALL_PROGRAM}|' \
38
		-e 's|^\(INSTALL_DATA=\).*$$|\1 ${INSTALL_DATA}|' \
39
		-e 's|^#\(USERCONF.*READLINE.*\)$$|\1|' \
40
		-e 's|^\(EXTRA_LIBS=\).*$$|\1 -lm -lreadline -lhistory -lncurses|' \
41
		-e 's|V=5.0|V=5|' \
42
		${WRKSRC}/config
43
34
44
post-install:
35
.include <bsd.port.pre.mk>
45
.if !defined(NOPORTDOCS)
46
	@${MKDIR} ${DOCSDIR}
47
	@cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
48
.endif
49
36
50
.if ${MACHINE_ARCH:L} == "amd64"
37
.if ${ARCH} == "amd64"
51
CFLAGS+=	-fPIC
38
CFLAGS+=	-fPIC
52
.endif
39
.endif
53
40
54
.include <bsd.port.mk>
41
post-patch:
42
	@${REINPLACE_CMD} -Ee \
43
		's|^(MYCFLAGS=).*|\1 ${CFLAGS}|; \
44
		 s|^(LOADLIB=).*|\1 -DUSE_DLOPEN=1|; \
45
		 s|^(CC=).*|\1 ${CC}|; \
46
		 s|^#(USERCONF.*READLINE.*)|\1|; \
47
		 s|^(EXTRA_LIBS=).*|\1 -lm -lreadline -lhistory -lncurses|; \
48
		 s|^(V=[[:digit:]])\.0|\1|' \
49
		${WRKSRC}/config
50
	@${REINPLACE_CMD} -Ee 's|(ld -o lib/(liblua(lib)?)\.so\.\$$V)|\1 -soname=\2-${LUA_VER}.so.${LUA_VER_SH}|' \
51
		${WRKSRC}/${MAKEFILE}
52
53
post-build:
54
	@${RM} -f ${WRKSRC}/test/lua ${WRKSRC}/test/luac
55
56
do-install:
57
# Programs.
58
	${MKDIR} ${LUA_BINDIR}
59
.for f in ${LUA_BIN}
60
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} ${LUA_BINDIR}
61
	${LN} -sf ${LUA_SUBDIR}/${f} ${PREFIX}/bin/${f}-${LUA_VER}
62
.endfor
63
# Include files.
64
	${MKDIR} ${LUA_INCDIR}
65
	${INSTALL_DATA} ${WRKSRC}/include/*.h ${LUA_INCDIR}
66
# Libraries.
67
	${MKDIR} ${LUA_LIBDIR}
68
.for f in ${LUA_LIB}
69
	${INSTALL_PROGRAM} ${WRKSRC}/lib/lib${f}.a ${LUA_LIBDIR}
70
	${INSTALL_PROGRAM} ${WRKSRC}/lib/lib${f}.so \
71
		${LUA_LIBDIR}/lib${f}-${LUA_VER}.so.${LUA_VER_SH}
72
	@${LN} -sf lib${f}-${LUA_VER}.so.${LUA_VER_SH} ${LUA_LIBDIR}/lib${f}.so
73
	@${LN} -sf ${LUA_SUBDIR}/lib${f}-${LUA_VER}.so.${LUA_VER_SH} \
74
		${PREFIX}/lib
75
	@${LN} -sf lib${f}-${LUA_VER}.so.${LUA_VER_SH} \
76
		${PREFIX}/lib/lib${f}-${LUA_VER}.so
77
.endfor
78
# Manual pages.
79
.for f in ${LUA_MAN}
80
	${INSTALL_MAN} ${WRKSRC}/doc/${f} \
81
		${PREFIX}/man/man1/${f:C/.1$//}-${LUA_VER}.1
82
.endfor
83
# Documentation.
84
.if !defined(NOPORTDOCS)
85
	${MKDIR} ${DOCSDIR}
86
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
87
	cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
88
	${CP} -r ${WRKSRC}/etc ${WRKSRC}/test ${DOCSDIR}
89
.endif
90
# Module directories.
91
	${MKDIR} ${LUA_MODLIBDIR}
92
	${MKDIR} ${LUA_MODSHAREDIR}
93
94
.include <bsd.port.post.mk>
(-)./lua50/pkg-plist (-18 / +71 lines)
Lines 1-18 Link Here
1
bin/lua
1
@exec mkdir -p %D/share/lua/%%LUA_VER%%
2
bin/luac
2
@exec mkdir -p %D/lib/lua/%%LUA_VER%%
3
include/lauxlib.h
3
bin/lua-%%LUA_VER%%
4
include/lua.h
4
%%LUA_BINDIR%%/lua
5
include/lualib.h
5
%%LUA_BINDIR%%/luac
6
lib/liblua.a
6
bin/luac-%%LUA_VER%%
7
lib/liblua.so
7
%%LUA_INCDIR%%/lauxlib.h
8
lib/liblua.so.5
8
%%LUA_INCDIR%%/lua.h
9
lib/liblualib.a
9
%%LUA_INCDIR%%/lualib.h
10
lib/liblualib.so
10
lib/liblua-%%LUA_VER%%.so
11
lib/liblualib.so.5
11
lib/liblua-%%LUA_VER%%.so.%%LUA_VER_SH%%
12
%%DOCSDIR%%/contents.html
12
lib/liblualib-%%LUA_VER%%.so
13
%%DOCSDIR%%/logo.gif
13
lib/liblualib-%%LUA_VER%%.so.%%LUA_VER_SH%%
14
%%DOCSDIR%%/lua.html
14
%%LUA_LIBDIR%%/liblua-%%LUA_VER%%.so.%%LUA_VER_SH%%
15
%%DOCSDIR%%/luac.html
15
%%LUA_LIBDIR%%/liblua.a
16
%%DOCSDIR%%/manual.html
16
%%LUA_LIBDIR%%/liblua.so
17
%%DOCSDIR%%/readme.html
17
%%LUA_LIBDIR%%/liblualib-%%LUA_VER%%.so.%%LUA_VER_SH%%
18
@dirrm %%DOCSDIR%%
18
%%LUA_LIBDIR%%/liblualib.a
19
%%LUA_LIBDIR%%/liblualib.so
20
%%PORTDOCS%%%%DOCSDIR%%/README
21
%%PORTDOCS%%%%DOCSDIR%%/contents.html
22
%%PORTDOCS%%%%DOCSDIR%%/etc/Makefile
23
%%PORTDOCS%%%%DOCSDIR%%/etc/README
24
%%PORTDOCS%%%%DOCSDIR%%/etc/bin2c.c
25
%%PORTDOCS%%%%DOCSDIR%%/etc/compat.lua
26
%%PORTDOCS%%%%DOCSDIR%%/etc/doall.lua
27
%%PORTDOCS%%%%DOCSDIR%%/etc/lua.ico
28
%%PORTDOCS%%%%DOCSDIR%%/etc/lua.magic
29
%%PORTDOCS%%%%DOCSDIR%%/etc/lua.xpm
30
%%PORTDOCS%%%%DOCSDIR%%/etc/luser_number.h
31
%%PORTDOCS%%%%DOCSDIR%%/etc/luser_tests.h
32
%%PORTDOCS%%%%DOCSDIR%%/etc/min.c
33
%%PORTDOCS%%%%DOCSDIR%%/etc/noparser.c
34
%%PORTDOCS%%%%DOCSDIR%%/etc/saconfig.c
35
%%PORTDOCS%%%%DOCSDIR%%/etc/trace.c
36
%%PORTDOCS%%%%DOCSDIR%%/logo.gif
37
%%PORTDOCS%%%%DOCSDIR%%/lua.html
38
%%PORTDOCS%%%%DOCSDIR%%/luac.html
39
%%PORTDOCS%%%%DOCSDIR%%/manual.html
40
%%PORTDOCS%%%%DOCSDIR%%/readme.html
41
%%PORTDOCS%%%%DOCSDIR%%/test/README
42
%%PORTDOCS%%%%DOCSDIR%%/test/bisect.lua
43
%%PORTDOCS%%%%DOCSDIR%%/test/cf.lua
44
%%PORTDOCS%%%%DOCSDIR%%/test/echo.lua
45
%%PORTDOCS%%%%DOCSDIR%%/test/env.lua
46
%%PORTDOCS%%%%DOCSDIR%%/test/factorial.lua
47
%%PORTDOCS%%%%DOCSDIR%%/test/fib.lua
48
%%PORTDOCS%%%%DOCSDIR%%/test/fibfor.lua
49
%%PORTDOCS%%%%DOCSDIR%%/test/globals.lua
50
%%PORTDOCS%%%%DOCSDIR%%/test/hello.lua
51
%%PORTDOCS%%%%DOCSDIR%%/test/life.lua
52
%%PORTDOCS%%%%DOCSDIR%%/test/luac.lua
53
%%PORTDOCS%%%%DOCSDIR%%/test/printf.lua
54
%%PORTDOCS%%%%DOCSDIR%%/test/readonly.lua
55
%%PORTDOCS%%%%DOCSDIR%%/test/sieve.lua
56
%%PORTDOCS%%%%DOCSDIR%%/test/sort.lua
57
%%PORTDOCS%%%%DOCSDIR%%/test/table.lua
58
%%PORTDOCS%%%%DOCSDIR%%/test/trace-calls.lua
59
%%PORTDOCS%%%%DOCSDIR%%/test/trace-globals.lua
60
%%PORTDOCS%%%%DOCSDIR%%/test/undefined.lua
61
%%PORTDOCS%%%%DOCSDIR%%/test/xd.lua
62
@dirrm share/lua/%%LUA_VER%%
63
@dirrmtry share/lua
64
%%PORTDOCS%%@dirrm %%DOCSDIR%%/test
65
%%PORTDOCS%%@dirrm %%DOCSDIR%%/etc
66
%%PORTDOCS%%@dirrm %%DOCSDIR%%
67
@dirrm %%LUA_LIBDIR%%
68
@dirrm lib/lua/%%LUA_VER%%
69
@dirrmtry lib/lua
70
@dirrm %%LUA_INCDIR%%
71
@dirrm %%LUA_BINDIR%%
(-)./lua50-app/Makefile (-11 / +9 lines)
Lines 9-32 Link Here
9
PORTVERSION=	1.70
9
PORTVERSION=	1.70
10
CATEGORIES=	devel
10
CATEGORIES=	devel
11
MASTER_SITES=	http://cvs.bsdinstaller.org/cgi-bin/cvsweb.cgi/installer/src/lib/lua/app/
11
MASTER_SITES=	http://cvs.bsdinstaller.org/cgi-bin/cvsweb.cgi/installer/src/lib/lua/app/
12
PKGNAMEPREFIX=	lua50-
12
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
13
DISTFILES=	app.lua?rev=${PORTVERSION}
13
DISTFILES=	app.lua?rev=${PORTVERSION}
14
EXTRACT_ONLY=
14
EXTRACT_ONLY=	#
15
15
16
MAINTAINER=	andrew+ports@fubar.geek.nz
16
MAINTAINER=	andrew+ports@fubar.geek.nz
17
COMMENT=	App framework for Lua 5.0.x
17
COMMENT=	App framework for Lua 5.0.x
18
18
19
BUILD_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50
19
USE_LUA=	5.0
20
RUN_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \
20
LUA_COMPS=	filename posix pty
21
		${LOCALBASE}/share/lua/5.0/posix.lua:${PORTSDIR}/devel/lua50-posix \
22
		${LOCALBASE}/share/lua/5.0/filename.lua:${PORTSDIR}/devel/lua50-filename \
23
		${LOCALBASE}/share/lua/5.0/pty.lua:${PORTSDIR}/devel/lua50-pty
24
25
NO_WRKSUBDIR=	yes
26
NO_BUILD=	yes
21
NO_BUILD=	yes
22
NO_WRKSUBDIR=	yes
23
24
PLIST_FILES=	%%LUA_MODSHAREDIR%%/app.lua
27
25
28
do-install:
26
do-install:
29
	${MKDIR} ${PREFIX}/share/lua/5.0
27
	${INSTALL_DATA} ${DISTDIR}/${DISTFILES} \
30
	${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${PREFIX}/share/lua/5.0/${DISTFILES:C/\?.*$//}
28
		${LUA_MODSHAREDIR}/${DISTFILES:C/\?.*$//}
31
29
32
.include <bsd.port.mk>
30
.include <bsd.port.mk>
(-)./lua50-app/pkg-plist (-3 lines)
Removed Link Here
1
share/lua/5.0/app.lua
2
@dirrmtry share/lua/5.0
3
@dirrmtry share/lua
(-)./lua50-compat51/Makefile (-10 / +10 lines)
Lines 5-35 Link Here
5
# $FreeBSD: ports/devel/lua50-compat51/Makefile,v 1.3 2006/05/03 13:25:04 pav Exp $
5
# $FreeBSD: ports/devel/lua50-compat51/Makefile,v 1.3 2006/05/03 13:25:04 pav Exp $
6
#
6
#
7
7
8
PORTNAME=	lua50-compat51
8
PORTNAME=	compat
9
PORTVERSION=	${CVER}.${CREV}
9
PORTVERSION=	${CVER}.${CREV}
10
CATEGORIES=	devel
10
CATEGORIES=	devel
11
MASTER_SITES=	http://luaforge.net/frs/download.php/1410/
11
MASTER_SITES=	http://luaforge.net/frs/download.php/1410/
12
DISTNAME=	compat-${CVER}${CREV}.tar.gz
12
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
13
13
14
MAINTAINER=	andrew+ports@fubar.geek.nz
14
MAINTAINER=	andrew+ports@fubar.geek.nz
15
COMMENT=	Lua 5.1 package compatibility layer for Lua 5.0.x
15
COMMENT=	Lua 5.1 package compatibility layer for Lua 5.0.x
16
16
17
BUILD_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50
17
USE_LUA=	5.0
18
WRKSRC=		${WRKDIR}/compat-${CVER}${CREV}
18
19
19
CONFLICTS=	luasocket-2.0
20
MAKE_ENV=	CVER="${CVER}"
21
PLIST_FILES=	%%LUA_MODSHAREDIR%%/compat-${CVER}.lua \
22
		%%LUA_MODLIBDIR%%/lcompat-${CVER}.so
20
23
21
# Update these values when there is a new release
24
# Update these values when there is a new release.
22
CVER=		5.1
25
CVER=		5.1
23
CREV=		r5
26
CREV=		r5
24
27
25
WRKSRC=		${WRKDIR}/compat-${CVER}${CREV}
26
LIBDIR=		${PREFIX}/lib
27
28
post-extract:
28
post-extract:
29
	@${CP} ${FILESDIR}/Makefile ${WRKSRC}
29
	@${CP} ${FILESDIR}/Makefile ${WRKSRC}
30
30
31
do-install:
31
do-install:
32
	${MKDIR} ${PREFIX}/share/lua/5.0
32
	${INSTALL_DATA} ${WRKSRC}/compat-${CVER}.lua ${LUA_MODSHAREDIR}
33
	${INSTALL_DATA} ${WRKSRC}/compat-5.1.lua ${PREFIX}/share/lua/5.0
33
	${INSTALL_PROGRAM} ${WRKSRC}/lcompat-${CVER}.so ${LUA_MODLIBDIR}
34
34
35
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)./lua50-compat51/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (compat-5.1r5.tar.gz.tar.gz) = 30d50d173ab236e96c4b969347163eb7
1
MD5 (compat-5.1.r5.tar.gz) = 30d50d173ab236e96c4b969347163eb7
2
SHA256 (compat-5.1r5.tar.gz.tar.gz) = 93262ad793552c338b825e6b67c903063aa07625952ef643d126ae60949c8ab6
2
SHA256 (compat-5.1.r5.tar.gz) = 93262ad793552c338b825e6b67c903063aa07625952ef643d126ae60949c8ab6
3
SIZE (compat-5.1r5.tar.gz.tar.gz) = 2977
3
SIZE (compat-5.1.r5.tar.gz) = 2977
(-)./lua50-compat51/pkg-plist (-3 lines)
Removed Link Here
1
share/lua/5.0/compat-5.1.lua
2
@dirrmtry share/lua/5.0
3
@dirrmtry share/lua
(-)./lua50-compat51/files/Makefile (-3 / +4 lines)
Lines 1-9 Link Here
1
# $FreeBSD: ports/devel/lua50-compat51/files/Makefile,v 1.1 2006/04/15 16:54:49 pav Exp $
1
# $FreeBSD: ports/devel/lua50-compat51/files/Makefile,v 1.1 2006/04/15 16:54:49 pav Exp $
2
2
3
LIB=		lua-compat-5.1
3
SHLIB=		compat-${CVER}
4
SHLIB_NAME=	lcompat-${CVER}.so
4
5
5
SRCS=		compat-5.1.c
6
SRCS=		compat-${CVER}.c
6
7
7
CFLAGS+=	-I${PREFIX}/include
8
CFLAGS+=	-I${LUA_INCDIR}
8
9
9
.include <bsd.lib.mk>
10
.include <bsd.lib.mk>
(-)./lua50-dfui/Makefile (-12 / +11 lines)
Lines 10-38 Link Here
10
CATEGORIES=	devel
10
CATEGORIES=	devel
11
MASTER_SITES=	${MASTER_SITE_LOCAL}
11
MASTER_SITES=	${MASTER_SITE_LOCAL}
12
MASTER_SITE_SUBDIR=	philip
12
MASTER_SITE_SUBDIR=	philip
13
PKGNAMEPREFIX=	lua50-
13
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
14
DISTNAME=	lua-dfui-0.1.20050901
14
DISTNAME=	lua-dfui-0.1.20050901
15
15
16
MAINTAINER=	andrew+ports@fubar.geek.nz
16
MAINTAINER=	andrew+ports@fubar.geek.nz
17
COMMENT=	DFUI binding for Lua 5.0.x
17
COMMENT=	DFUI binding for Lua 5.0.x
18
18
19
BUILD_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \
19
BUILD_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:extract
20
		${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:extract
21
LIB_DEPENDS=	dfui4.4:${PORTSDIR}/devel/libdfui
20
LIB_DEPENDS=	dfui4.4:${PORTSDIR}/devel/libdfui
22
RUN_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \
23
		${LOCALBASE}/share/lua/5.0/compat-5.1.lua:${PORTSDIR}/devel/lua50-compat51 \
24
		${LOCALBASE}/share/lua/5.0/posix.lua:${PORTSDIR}/devel/lua50-posix
25
21
26
USE_BZIP2=	yes
22
USE_BZIP2=	yes
23
USE_LUA=	5.0
24
LUA_COMPS=	compat51 posix
27
WRKSRC=		${WRKDIR}/lua-dfui-${PORTVERSION}
25
WRKSRC=		${WRKDIR}/lua-dfui-${PORTVERSION}
28
26
29
COMPAT_SRC=	`(cd ${PORTSDIR}/devel/lua50-compat51 && make -V WRKSRC)`
27
COMPAT_SRC=	`(cd ${PORTSDIR}/devel/lua50-compat51 && ${MAKE} -V WRKSRC)`
30
MAKE_ENV=	COMPAT=${COMPAT_SRC}
28
MAKE_ENV=	COMPAT="${COMPAT_SRC}"
29
30
PLIST_FILES=	%%LUA_MODLIBDIR%%/ldfui.so \
31
		%%LUA_MODSHAREDIR%%/dfui.lua
31
32
32
do-install:
33
do-install:
33
	${MKDIR} ${PREFIX}/lib/lua/5.0
34
	${INSTALL_PROGRAM} ${WRKSRC}/ldfui.so ${LUA_MODLIBDIR}
34
	${INSTALL_PROGRAM} ${WRKSRC}/ldfui.so ${PREFIX}/lib/lua/5.0
35
	${INSTALL_DATA} ${WRKSRC}/dfui.lua ${LUA_MODSHAREDIR}
35
	${MKDIR} ${PREFIX}/share/lua/5.0
36
	${INSTALL_DATA} ${WRKSRC}/dfui.lua ${PREFIX}/share/lua/5.0
37
36
38
.include <bsd.port.mk>
37
.include <bsd.port.mk>
(-)./lua50-dfui/pkg-plist (-6 lines)
Removed Link Here
1
lib/lua/5.0/ldfui.so
2
share/lua/5.0/dfui.lua
3
@dirrmtry lib/lua/5.0
4
@dirrmtry lib/lua
5
@dirrmtry share/lua/5.0
6
@dirrmtry share/lua
(-)./lua50-dfui/files/patch-Makefile (-5 / +5 lines)
Lines 1-5 Link Here
1
--- Makefile.orig	Tue Apr 18 13:49:53 2006
1
--- Makefile.orig	Mon Apr 17 21:40:11 2006
2
+++ Makefile	Tue Apr 18 13:54:23 2006
2
+++ Makefile	Mon Aug  7 13:22:22 2006
3
@@ -1,11 +1,6 @@
3
@@ -1,11 +1,6 @@
4
 # Makefile for luadfui.
4
 # Makefile for luadfui.
5
 # $Id: Makefile,v 1.13 2005/08/26 22:44:37 cpressey Exp $
5
 # $Id: Makefile,v 1.13 2005/08/26 22:44:37 cpressey Exp $
Lines 18-30 Link Here
18
 CFLAGS+=	${WARNS} -fPIC
18
 CFLAGS+=	${WARNS} -fPIC
19
-CFLAGS+=	-I${LUA}/include -I${COMPAT} -I../../libdfui
19
-CFLAGS+=	-I${LUA}/include -I${COMPAT} -I../../libdfui
20
-CFLAGS+=	-I/usr/local/include -I/usr/pkg/include
20
-CFLAGS+=	-I/usr/local/include -I/usr/pkg/include
21
+CFLAGS+=	-I${COMPAT} -I${PREFIX}/include/dfui4
21
+CFLAGS+=	-I${COMPAT} -I${LOCALBASE}/include/dfui4
22
+CFLAGS+=	-I${PREFIX}/include
22
+CFLAGS+=	-I${LUA_INCDIR}
23
 CFLAGS+=	${EXTRA_CFLAGS}
23
 CFLAGS+=	${EXTRA_CFLAGS}
24
-LDFLAGS+=	-L../../libdfui -L../../libaura -L${LUA}/lib/
24
-LDFLAGS+=	-L../../libdfui -L../../libaura -L${LUA}/lib/
25
-LDFLAGS+=	-L/usr/local/lib -L/usr/pkg/lib
25
-LDFLAGS+=	-L/usr/local/lib -L/usr/pkg/lib
26
-LDFLAGS+=	-ldfui -laura -lm -llua50 -llualib50
26
-LDFLAGS+=	-ldfui -laura -lm -llua50 -llualib50
27
+LDFLAGS+=	-L${PREFIX}/lib
27
+LDFLAGS+=	-L${LOCALBASE}/lib -L${LUA_LIBDIR}
28
+LDFLAGS+=	-ldfui4 -laura3 -lm -llua -llualib
28
+LDFLAGS+=	-ldfui4 -laura3 -lm -llua -llualib
29
 
29
 
30
 all: ${LIB}
30
 all: ${LIB}
(-)./lua50-filename/Makefile (-7 / +9 lines)
Lines 5-27 Link Here
5
# $FreeBSD: ports/devel/lua50-filename/Makefile,v 1.2 2006/05/03 13:25:04 pav Exp $
5
# $FreeBSD: ports/devel/lua50-filename/Makefile,v 1.2 2006/05/03 13:25:04 pav Exp $
6
#
6
#
7
7
8
PORTNAME=	lua50-filename
8
PORTNAME=	filename
9
PORTVERSION=	1.2
9
PORTVERSION=	1.2
10
CATEGORIES=	devel
10
CATEGORIES=	devel
11
MASTER_SITES=	http://cvs.bsdinstaller.org/cgi-bin/cvsweb.cgi/installer/src/lib/lua/filename/
11
MASTER_SITES=	http://cvs.bsdinstaller.org/cgi-bin/cvsweb.cgi/installer/src/lib/lua/filename/
12
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
12
DISTFILES=	filename.lua?rev=${PORTVERSION}
13
DISTFILES=	filename.lua?rev=${PORTVERSION}
13
EXTRACT_ONLY=
14
EXTRACT_ONLY=	#
14
15
15
MAINTAINER=	andrew+ports@fubar.geek.nz
16
MAINTAINER=	andrew+ports@fubar.geek.nz
16
COMMENT=	Filename-manipulating functions for Lua 5.0.x
17
COMMENT=	Filename-manipulating functions for Lua 5.0.x
17
18
18
RUN_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50
19
USE_LUA=	5.0
19
20
NO_WRKSUBDIR=	yes
21
NO_BUILD=	yes
20
NO_BUILD=	yes
21
NO_WRKSUBDIR=	yes
22
23
PLIST_FILES=	%%LUA_MODSHAREDIR%%/filename.lua
22
24
23
do-install:
25
do-install:
24
	${MKDIR} ${PREFIX}/share/lua/5.0
26
	${INSTALL_DATA} ${DISTDIR}/${DISTFILES} \
25
	${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${PREFIX}/share/lua/5.0/${DISTFILES:C/\?.*$//}
27
		${LUA_MODSHAREDIR}/${DISTFILES:C/\?.*$//}
26
28
27
.include <bsd.port.mk>
29
.include <bsd.port.mk>
(-)./lua50-filename/pkg-descr (-3 / +3 lines)
Lines 1-3 Link Here
1
Package of routines for manipulating filenames.
1
Package of routines for manipulating filenames. Also contains convenience
2
Also contains convenience functions for querying the
2
functions for querying the status of files in the filesystem named by those
3
status of files in the filesystem named by those filenames.
3
filenames.
(-)./lua50-filename/pkg-plist (-3 lines)
Removed Link Here
1
share/lua/5.0/filename.lua
2
@dirrmtry share/lua/5.0
3
@dirrmtry share/lua
(-)./lua50-gettext/Makefile (-11 / +7 lines)
Lines 9-30 Link Here
9
PORTVERSION=	1.5
9
PORTVERSION=	1.5
10
CATEGORIES=	devel
10
CATEGORIES=	devel
11
MASTER_SITES=	http://cvs.bsdinstaller.org/cgi-bin/cvsweb.cgi/installer/src/lib/lua/gettext/
11
MASTER_SITES=	http://cvs.bsdinstaller.org/cgi-bin/cvsweb.cgi/installer/src/lib/lua/gettext/
12
PKGNAMEPREFIX=	lua50-
12
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
13
DISTFILES=	lua_gettext.c?rev=${CVER} gettext.lua?rev=${LVER}
13
DISTFILES=	lua_gettext.c?rev=${CVER} gettext.lua?rev=${LVER}
14
14
15
MAINTAINER=	andrew+ports@fubar.geek.nz
15
MAINTAINER=	andrew+ports@fubar.geek.nz
16
COMMENT=	Gettext ibinding for Lua 5.0.x
16
COMMENT=	Gettext ibinding for Lua 5.0.x
17
17
18
BUILD_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50
18
USE_LUA=	5.0
19
RUN_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50
20
21
USE_GETTEXT=	yes
19
USE_GETTEXT=	yes
22
20
23
LIBDIR=		${PREFIX}/lib/lua/5.0
24
25
CVER=		1.15
21
CVER=		1.15
26
LVER=		${PORTVERSION}
22
LVER=		${PORTVERSION}
27
23
24
PLIST_FILES=	%%LUA_MODSHAREDIR%%/gettext.lua \
25
		%%LUA_MODLIBDIR%%/lgettext.so
26
28
do-extract:
27
do-extract:
29
	${MKDIR} ${WRKSRC}
28
	${MKDIR} ${WRKSRC}
30
.for file in ${DISTFILES}
29
.for file in ${DISTFILES}
Lines 33-42 Link Here
33
	${CP} ${FILESDIR}/Makefile ${WRKSRC}
32
	${CP} ${FILESDIR}/Makefile ${WRKSRC}
34
33
35
do-install:
34
do-install:
36
	${MKDIR} ${PREFIX}/lib/lua/5.0
35
	${INSTALL_DATA} ${WRKSRC}/gettext.lua ${LUA_MODSHAREDIR}
37
	${MKDIR} ${PREFIX}/share/lua/5.0
36
	${INSTALL_PROGRAM} ${WRKSRC}/lgettext.so ${LUA_MODLIBDIR}
38
	${INSTALL_DATA} ${WRKSRC}/gettext.lua ${PREFIX}/share/lua/5.0/
39
	${MKDIR} ${PREFIX}/lib/lua/5.0
40
	${INSTALL_PROGRAM} ${WRKSRC}/lgettext.so ${PREFIX}/lib/lua/5.0/
41
37
42
.include <bsd.port.mk>
38
.include <bsd.port.mk>
(-)./lua50-gettext/pkg-plist (-6 lines)
Removed Link Here
1
lib/lua/5.0/lgettext.so
2
share/lua/5.0/gettext.lua
3
@dirrmtry lib/lua/5.0
4
@dirrmtry lib/lua
5
@dirrmtry share/lua/5.0
6
@dirrmtry share/lua
(-)./lua50-gettext/files/Makefile (-2 / +2 lines)
Lines 5-11 Link Here
5
5
6
SRCS=		lua_gettext.c
6
SRCS=		lua_gettext.c
7
7
8
CFLAGS+=	-I${PREFIX}/include
8
CFLAGS+=	-I${LOCALBASE}/include -I${LUA_INCDIR}
9
LDFLAGS+=	-L${PREFIX}/lib -lintl
9
LDFLAGS+=	-L${LOCALBASE}/lib -lintl
10
10
11
.include <bsd.lib.mk>
11
.include <bsd.lib.mk>
(-)./lua50-posix/Makefile (-7 / +8 lines)
Lines 5-27 Link Here
5
# $FreeBSD: ports/devel/lua50-posix/Makefile,v 1.3 2006/05/14 12:36:19 pav Exp $
5
# $FreeBSD: ports/devel/lua50-posix/Makefile,v 1.3 2006/05/14 12:36:19 pav Exp $
6
#
6
#
7
7
8
PORTNAME=	lua50-posix
8
PORTNAME=	posix
9
PORTVERSION=	5.0
9
PORTVERSION=	5.0
10
CATEGORIES=	devel
10
CATEGORIES=	devel
11
MASTER_SITES=	http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.0/
11
MASTER_SITES=	http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.0/
12
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
12
DISTFILES=	lposix.tar.gz
13
DISTFILES=	lposix.tar.gz
13
14
14
MAINTAINER=	andrew+ports@fubar.geek.nz
15
MAINTAINER=	andrew+ports@fubar.geek.nz
15
COMMENT=	A POSIX layer for Lua
16
COMMENT=	A POSIX layer for Lua
16
17
17
BUILD_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50
18
USE_LUA=	5.0
18
19
WRKSRC=		${WRKDIR}/posix
19
WRKSRC=		${WRKDIR}/posix
20
20
21
PLIST_FILES=	%%LUA_MODSHAREDIR%%/posix.lua \
22
		%%LUA_MODLIBDIR%%/lposix.so
23
21
do-install:
24
do-install:
22
	@ ${MKDIR} ${PREFIX}/share/lua/5.0
25
	@${INSTALL_DATA} ${WRKSRC}/posix.lua ${LUA_MODSHAREDIR}
23
	@ ${INSTALL_DATA} ${WRKSRC}/posix.lua ${PREFIX}/share/lua/5.0
26
	@${INSTALL_PROGRAM} ${WRKSRC}/lposix.so ${LUA_MODLIBDIR}
24
	@ ${MKDIR} ${PREFIX}/lib/lua/5.0
25
	@ ${INSTALL_PROGRAM} ${WRKSRC}/lposix.so ${PREFIX}/lib/lua/5.0
26
27
27
.include <bsd.port.mk>
28
.include <bsd.port.mk>
(-)./lua50-posix/pkg-plist (-6 lines)
Removed Link Here
1
share/lua/5.0/posix.lua
2
lib/lua/5.0/lposix.so
3
@dirrmtry share/lua/5.0
4
@dirrmtry share/lua
5
@dirrmtry lib/lua/5.0
6
@dirrmtry lib/lua
(-)./lua50-posix/files/patch-Makefile (-7 / +17 lines)
Lines 1-20 Link Here
1
--- Makefile.orig	Mon Mar 27 12:25:04 2006
1
--- Makefile.orig	Wed Nov  5 21:26:49 2003
2
+++ Makefile	Mon Mar 27 12:43:24 2006
2
+++ Makefile	Mon Aug  7 00:38:38 2006
3
@@ -1,7 +1,7 @@
3
@@ -1,13 +1,13 @@
4
 # makefile for POSIX library for Lua
4
 # makefile for POSIX library for Lua
5
 
5
 
6
 # change these to reflect your Lua installation
6
 # change these to reflect your Lua installation
7
-LUA= /tmp/lhf/lua-5.0
7
-LUA= /tmp/lhf/lua-5.0
8
-LUAINC= $(LUA)/include
9
-LUALIB= $(LUA)/lib
10
-LUABIN= $(LUA)/bin
8
+LUA= ${PREFIX}
11
+LUA= ${PREFIX}
9
 LUAINC= $(LUA)/include
12
+LUAINC= $(LUA_INCDIR)
10
 LUALIB= $(LUA)/lib
13
+LUALIB= $(LUA_LIBDIR)
11
 LUABIN= $(LUA)/bin
14
+LUABIN= $(LUA_BINDIR)
15
 
16
 # no need to change anything below here
17
-CFLAGS= -fPIC $(INCS) $(WARN) -O2 $G
18
+CFLAGS+= -fPIC $(INCS) $(WARN) -O2 $G
19
 WARN= -pedantic -Wall
20
 INCS= -I$(LUAINC)
21
 
12
@@ -21,7 +21,7 @@
22
@@ -21,7 +21,7 @@
13
 all:	test
23
 all:	test
14
 
24
 
15
 test:	$T
25
 test:	$T
16
-	$(LUABIN)/lua -l$(MYNAME) test.lua
26
-	$(LUABIN)/lua -l$(MYNAME) test.lua
17
+	LD_PRELOAD=${PREFIX}/lib/liblua.so:${PREFIX}/lib/liblualib.so $(LUABIN)/lua -l$(MYNAME) test.lua
27
+	LD_PRELOAD=${LUA_LIBDIR}/liblua.so:${LUA_LIBDIR}/liblualib.so $(LUABIN)/lua -l$(MYNAME) test.lua
18
 
28
 
19
 $T:	$(OBJS)
29
 $T:	$(OBJS)
20
 	$(CC) -o $@ -shared $(OBJS)
30
 	$(CC) -o $@ -shared $(OBJS)
(-)./lua50-pty/Makefile (-13 / +10 lines)
Lines 10-27 Link Here
10
CATEGORIES=	devel
10
CATEGORIES=	devel
11
MASTER_SITES=	${MASTER_SITE_LOCAL}
11
MASTER_SITES=	${MASTER_SITE_LOCAL}
12
MASTER_SITE_SUBDIR= philip
12
MASTER_SITE_SUBDIR= philip
13
PKGNAMEPREFIX=	lua50-
13
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
14
DISTFILES=	pty.lua?rev=1.2 pty.c?rev=1.25
14
DISTFILES=	pty.lua?rev=1.2 pty.c?rev=1.25
15
15
16
MAINTAINER=	andrew+ports@fubar.geek.nz
16
MAINTAINER=	andrew+ports@fubar.geek.nz
17
COMMENT=	Pty (pseudo-terminal) bindings for Lua 5.0.x
17
COMMENT=	Pty (pseudo-terminal) bindings for Lua 5.0.x
18
18
19
BUILD_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \
19
USE_LUA=	5.0
20
		${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:extract
20
LUA_COMPS=	lua compat51
21
RUN_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \
22
		${LOCALBASE}/share/lua/5.0/compat-5.1.lua:${PORTSDIR}/devel/lua50-compat51
23
21
24
COMPAT_SRC=	`(cd ${PORTSDIR}/devel/lua50-compat51 && make -V WRKSRC)`
22
COMPAT_SRC!=	`(cd ${PORTSDIR}/devel/lua50-compat51 && ${MAKE} -V WRKSRC)`
23
MAKE_ENV=	COMPATDIR="${COMPAT_SRC}"
24
25
PLIST_FILES=	%%LUA_MODSHAREDIR%%/pty.lua \
26
		%%LUA_MODLIBDIR%%/lpty.so
25
27
26
do-extract:
28
do-extract:
27
	@${MKDIR} ${WRKSRC}
29
	@${MKDIR} ${WRKSRC}
Lines 30-42 Link Here
30
.endfor
32
.endfor
31
	@${CP} ${FILESDIR}/Makefile ${WRKSRC}
33
	@${CP} ${FILESDIR}/Makefile ${WRKSRC}
32
34
33
post-patch:
34
	@${REINPLACE_CMD} -e "s|%%COMPATDIR%%|${COMPAT_SRC}|" ${WRKSRC}/Makefile
35
36
do-install:
35
do-install:
37
	${MKDIR} ${PREFIX}/lib/lua/5.0
36
	${INSTALL_PROGRAM} ${WRKSRC}/lpty.so ${LUA_MODLIBDIR}
38
	${INSTALL_PROGRAM} ${WRKSRC}/lpty.so ${PREFIX}/lib/lua/5.0
37
	${INSTALL_DATA} ${WRKSRC}/pty.lua ${LUA_MODSHAREDIR}
39
	${MKDIR} ${PREFIX}/share/lua/5.0
40
	${INSTALL_DATA} ${WRKSRC}/pty.lua ${PREFIX}/share/lua/5.0
41
38
42
.include <bsd.port.mk>
39
.include <bsd.port.mk>
(-)./lua50-pty/pkg-plist (-6 lines)
Removed Link Here
1
lib/lua/5.0/lpty.so
2
share/lua/5.0/pty.lua
3
@dirrmtry lib/lua/5.0
4
@dirrmtry lib/lua
5
@dirrmtry share/lua/5.0
6
@dirrmtry share/lua
(-)./lua50-pty/files/Makefile (-2 / +2 lines)
Lines 3-11 Link Here
3
SHLIB=		pty
3
SHLIB=		pty
4
SHLIB_NAME=	lpty.so
4
SHLIB_NAME=	lpty.so
5
5
6
SRCS=		pty.c %%COMPATDIR%%/compat-5.1.c
6
SRCS=		pty.c ${COMPATDIR}/compat-5.1.c
7
7
8
CFLAGS+=	-I${PREFIX}/include
8
CFLAGS+=	-I${LUA_INCDIR}
9
LDFLAGS+=	-L/usr/lib -lutil
9
LDFLAGS+=	-L/usr/lib -lutil
10
10
11
.include <bsd.lib.mk>
11
.include <bsd.lib.mk>
(-)./luasocket/Makefile (-22 / +9 lines)
Lines 14-48 Link Here
14
MAINTAINER=	andrew+ports@fubar.geek.nz
14
MAINTAINER=	andrew+ports@fubar.geek.nz
15
COMMENT=	IPv4 Sockets support for the Lua language
15
COMMENT=	IPv4 Sockets support for the Lua language
16
16
17
BUILD_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50
17
BUILD_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:extract
18
RUN_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \
19
		${LOCALBASE}/share/lua/5.0/compat-5.1.lua:${PORTSDIR}/devel/lua50-compat51
20
18
21
USE_GMAKE=	yes
19
USE_GMAKE=	yes
20
USE_LUA=	5.0
21
LUA_COMPS=	lua compat51
22
23
COMPAT_SRC=	`(cd ${PORTSDIR}/devel/lua50-compat51 && ${MAKE} -V WRKSRC)`
24
MAKE_ENV=	COMPATDIR="${COMPAT_SRC}"
22
25
23
post-extract:
26
post-extract:
24
	@ ${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile
27
	@${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile
25
	@ ${RM} ${WRKSRC}/src/compat-5.1r4/compat-5.1.o
26
28
27
post-install:
29
post-install:
28
.if !defined(NOPORTDOCS)
30
.if !defined(NOPORTDOCS)
29
	@${MKDIR} ${PREFIX}/share/doc/luasocket
31
	@${MKDIR} ${DOCSDIR}
30
	@${INSTALL_DATA} ${WRKSRC}/doc/dns.html ${DOCSDIR}
32
	@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
31
	@${INSTALL_DATA} ${WRKSRC}/doc/ftp.html ${DOCSDIR}
32
	@${INSTALL_DATA} ${WRKSRC}/doc/home.html ${DOCSDIR}
33
	@${INSTALL_DATA} ${WRKSRC}/doc/http.html ${DOCSDIR}
34
	@${INSTALL_DATA} ${WRKSRC}/doc/installation.html ${DOCSDIR}
35
	@${INSTALL_DATA} ${WRKSRC}/doc/introduction.html ${DOCSDIR}
36
	@${INSTALL_DATA} ${WRKSRC}/doc/ltn12.html ${DOCSDIR}
37
	@${INSTALL_DATA} ${WRKSRC}/doc/luasocket.png ${DOCSDIR}
38
	@${INSTALL_DATA} ${WRKSRC}/doc/mime.html ${DOCSDIR}
39
	@${INSTALL_DATA} ${WRKSRC}/doc/reference.css ${DOCSDIR}
40
	@${INSTALL_DATA} ${WRKSRC}/doc/reference.html ${DOCSDIR}
41
	@${INSTALL_DATA} ${WRKSRC}/doc/smtp.html ${DOCSDIR}
42
	@${INSTALL_DATA} ${WRKSRC}/doc/socket.html ${DOCSDIR}
43
	@${INSTALL_DATA} ${WRKSRC}/doc/tcp.html ${DOCSDIR}
44
	@${INSTALL_DATA} ${WRKSRC}/doc/udp.html ${DOCSDIR}
45
	@${INSTALL_DATA} ${WRKSRC}/doc/url.html ${DOCSDIR}
46
.endif
33
.endif
47
34
48
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)./luasocket/pkg-plist (-17 / +13 lines)
Lines 1-13 Link Here
1
share/lua/5.0/mime.lua
1
%%LUA_MODSHAREDIR%%/mime.lua
2
share/lua/5.0/socket.lua
2
%%LUA_MODSHAREDIR%%/socket.lua
3
share/lua/5.0/ltn12.lua
3
%%LUA_MODSHAREDIR%%/ltn12.lua
4
share/lua/5.0/socket/smtp.lua
4
%%LUA_MODSHAREDIR%%/socket/smtp.lua
5
share/lua/5.0/socket/ftp.lua
5
%%LUA_MODSHAREDIR%%/socket/ftp.lua
6
share/lua/5.0/socket/tp.lua
6
%%LUA_MODSHAREDIR%%/socket/tp.lua
7
share/lua/5.0/socket/url.lua
7
%%LUA_MODSHAREDIR%%/socket/url.lua
8
share/lua/5.0/socket/http.lua
8
%%LUA_MODSHAREDIR%%/socket/http.lua
9
lib/lua/5.0/socket/core.so
9
%%LUA_MODLIBDIR%%/socket/core.so
10
lib/lua/5.0/mime/core.so
10
%%LUA_MODLIBDIR%%/mime/core.so
11
%%PORTDOCS%%%%DOCSDIR%%/dns.html
11
%%PORTDOCS%%%%DOCSDIR%%/dns.html
12
%%PORTDOCS%%%%DOCSDIR%%/ftp.html
12
%%PORTDOCS%%%%DOCSDIR%%/ftp.html
13
%%PORTDOCS%%%%DOCSDIR%%/home.html
13
%%PORTDOCS%%%%DOCSDIR%%/home.html
Lines 25-34 Link Here
25
%%PORTDOCS%%%%DOCSDIR%%/udp.html
25
%%PORTDOCS%%%%DOCSDIR%%/udp.html
26
%%PORTDOCS%%%%DOCSDIR%%/url.html
26
%%PORTDOCS%%%%DOCSDIR%%/url.html
27
%%PORTDOCS%%@dirrm %%DOCSDIR%%
27
%%PORTDOCS%%@dirrm %%DOCSDIR%%
28
@dirrm share/lua/5.0/socket
28
@dirrm %%LUA_MODSHAREDIR%%/socket
29
@dirrmtry share/lua/5.0
29
@dirrm %%LUA_MODLIBDIR%%/socket
30
@dirrmtry share/lua
30
@dirrm %%LUA_MODLIBDIR%%/mime
31
@dirrm lib/lua/5.0/socket
32
@dirrm lib/lua/5.0/mime
33
@dirrmtry lib/lua/5.0
34
@dirrmtry lib/lua
(-)./luasocket/files/patch-config (-12 / +19 lines)
Lines 1-28 Link Here
1
--- config.orig	Fri Nov 25 09:29:38 2005
1
--- config.orig	Thu Nov 24 17:29:38 2005
2
+++ config	Mon Mar  6 19:46:29 2006
2
+++ config	Mon Aug  7 13:36:23 2006
3
@@ -15,8 +15,8 @@
3
@@ -15,42 +15,42 @@
4
 #------
4
 #------
5
 # Lua includes and libraries
5
 # Lua includes and libraries
6
 #
6
 #
7
-LUAINC=-Ilua-5.0.2/include
7
-LUAINC=-Ilua-5.0.2/include
8
-LUALIB=-Llua-5.0.2/lib
8
-LUALIB=-Llua-5.0.2/lib
9
+LUAINC=-I$(PREFIX)/include
9
+LUAINC=-I$(LUA_INCDIR)
10
+LUALIB=-L$(PREFIX)/lib
10
+LUALIB=-L$(LUA_LIBDIR)
11
 
11
 
12
 #------
12
 #------
13
 # Compat-5.1 directory
13
 # Compat-5.1 directory
14
@@ -27,8 +27,8 @@
14
 #
15
-COMPAT=compat-5.1r4
16
+COMPAT=${COMPATDIR}
17
 
18
 #------
15
 # Top of your Lua installation
19
 # Top of your Lua installation
16
 # Relative paths will be inside the src tree
20
 # Relative paths will be inside the src tree
17
 #
21
 #
18
-INSTALL_TOP_SHARE=share
22
-INSTALL_TOP_SHARE=share
19
-INSTALL_TOP_LIB=lib
23
-INSTALL_TOP_LIB=lib
20
+INSTALL_TOP_SHARE=${PREFIX}/share/lua/5.0
24
+INSTALL_TOP_SHARE=${LUA_MODSHAREDIR}
21
+INSTALL_TOP_LIB=${PREFIX}/lib/lua/5.0
25
+INSTALL_TOP_LIB=${LUA_MODLIBDIR}
22
 
26
 
23
 INSTALL_DATA=cp
27
-INSTALL_DATA=cp
24
 INSTALL_EXEC=cp
28
-INSTALL_EXEC=cp
25
@@ -37,20 +37,20 @@
29
+INSTALL_DATA=${BSD_INSTALL_DATA}
30
+INSTALL_EXEC=${BSD_INSTALL_PROGRAM}
31
 
32
 #------
26
 # Compiler and linker settings
33
 # Compiler and linker settings
27
 # for Mac OS X
34
 # for Mac OS X
28
 #
35
 #
Lines 48-54 Link Here
48
-#LD=gcc 
55
-#LD=gcc 
49
+CFLAGS+= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -fpic
56
+CFLAGS+= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -fpic
50
+LDFLAGS=-O -shared
57
+LDFLAGS=-O -shared
51
+LD=gcc 
58
+LD=${CC}
52
 
59
 
53
 #------
60
 #------
54
 # End of makefile configuration
61
 # End of makefile configuration
(-)./Mk/bsd.lua.mk (+420 lines)
Added Link Here
1
#-*- mode: makefile; tab-width: 4; -*-
2
# ex:ts=4
3
#
4
# $FreeBSD$
5
#
6
# bsd.lua.mk - Support for Lua based ports.
7
#
8
# Created by: Alejandro Pulver <alepulver@FreeBSD.org>
9
#
10
# Please view me with 4 column tabs!
11
#
12
# The following variables can be defined in a port that uses the Lua library,
13
# tolua, Ruby bindings or related components like .lua modules (with run
14
# and/or build dependencies). It can be used after and/or before
15
# bsd.port.pre.mk, but Ruby components will only work if Ruby variables (e.g.
16
# USE_RUBY) are defined before it (this is a bsd.ruby.mk limitation), at least
17
# it is manually included.
18
# USE_LUA		- Set to the list of Lua versions that can be used by the
19
#				  port. The syntax allows the following elements:
20
#				  - Single version (e.g. "4.0").
21
#				  - Range of versions (e.g. "5.0-5.1"). Must be ascending.
22
#				  - Partial range: single version and upper (e.g. "5.0+").
23
#				  - Partial range: single version and lower (e.g. "5.1-").
24
#				  Multiple elements can be specified separated by spaces.
25
# USE_LUA_NOT	- Set to the list of Lua versions that can't be used by the
26
#				  port. In other words, it removes some versions from USE_LUA.
27
#				  If the latter is not defined, it will have the value of all
28
#				  the possible versions. The syntax is like USE_LUA.
29
# LUA_COMPS		- Set to the list of Lua components the port uses. Several
30
#				  components can be specified separated by spaces. By default
31
#				  it will have the value of "lua". Suffixes in the form ":xxx"
32
#				  may be added to the components to determine the dependency
33
#				  type.
34
#				  The available components are:
35
#				  lua			- The Lua library.
36
#				  tolua			- The tolua library (vers 4.0-5.0).
37
#				  ruby			- The Ruby bindings for Lua (vers 4.0-5.0).
38
#				  app, compat51, dfui, filename, gettext, posix, pty and
39
#				  socket		- Modules for Lua 5.0.
40
#				  The available dependency types are:
41
#				  build			- Requires component for building.
42
#				  lib			- Requires component for building and running.
43
#				  run			- Requires component for running.
44
#				  If no suffix is present then "lib" will be used for "lua"
45
#				  4.0-5.0 and "ruby", "build" for lua 5.1 and "tolua" (they
46
#				  are static), all others default to "run".
47
# LUA_PREMK		- Define to determine version and define variables after
48
#				  <bsd.port.pre.mk> (in case the port needs to manually run
49
#				  the Lua program or the like).
50
# WANT_LUA		- Set to "yes" or a valid single version (no ranges, etc).
51
#				  In both cases it will detect the installed Lua components
52
#				  and add them to the variable HAVE_LUA. If a version is
53
#				  selected, HAVE_LUA will contain a list of components in the
54
#				  other case it will contain a list of "component-version"
55
#				  pairs (e.g. lua-4.0, tolua-5.1, etc).
56
#				  It has to be used before bsd.port.pre.mk.
57
# WANT_LUA_VER	- Set to the prefered Lua version for the port. It must be
58
#				  present in USE_LUA or missing in USE_LUA_NOT. This is
59
#				  overriden by the user variable WITH_LUA_VER if set. It can
60
#				  contain multiple versions in order of preference (last ones
61
#				  are tried first).
62
#
63
# The following variables are intended for the user and can be defined in
64
# make.conf.
65
# WITH_LUA_VER	- Define to the list of prefered versions in reverse order.
66
#
67
# The following variables are defined by this file, to be read from the port.
68
# HAVE_LUA		- The list of Lua components installed, if WANT_LUA was
69
#				  defined. The components will have version suffix if it was
70
#				  set to "yes".
71
# LUA_VER		- The Lua version that is going to be used (e.g. "5.1").
72
# LUA_VER_SH	- The Lua shared library major version (e.g. "1").
73
# LUA_VER_STR	- The Lua version without the dots (e.g. "51").
74
# LUA_PREFIX	- The prefix where Lua (and components) is installed.
75
# LUA_SUBDIR	- The directory under bin/share/lib where Lua is installed.
76
# LUA_INCDIR	- The directory where Lua and tolua header files are installed.
77
# LUA_LIBDIR	- The directory where Lua and tolua libraries are installed.
78
# LUA_MODLIBDIR	- The directory where Lua modules (.lua) are installed.
79
# LUA_MODSHAREDIR	- The directory where Lua module libraries (.so) are
80
#					  installed.
81
# LUA_PKGNAMEPREFIX	- The package name prefix used by Lua modules.
82
#
83
# Examples:
84
# - A port that needs Lua 4.0 and tolua (also 4.0) libraries (lua for building
85
#   and running and tolua for building).
86
#	USE_LUA=	4.0
87
#	LUA_COMPS=	lua tolua
88
# - A port that needs Ruby bindings for Lua 5.0 for building and running.
89
#	USE_LUA=	5.0
90
#	LUA_COMPS=	ruby
91
# - A port that needs tolua 5.0 or 5.1 for building.
92
#	USE_LUA=	5.0 5.1
93
#	LUA_COMPS=	tolua
94
# - A port that needs Lua version 5.0 or higher for building and running.
95
#	USE_LUA=	5.0+
96
# - A port that needs Lua of any version other than 5.1 for building and
97
#   running.
98
#	USE_LUA_NOT=5.1
99
#
100
101
LUA_Include_MAINTAINER=	alepulver@FreeBSD.org
102
103
#
104
# Global definitions.
105
#
106
107
.if !defined(_LUA_Definitions_Done)
108
_LUA_Definitions_Done=	yes
109
110
# Common variables:
111
# _LUA_COMPS_ALL		- List of valid components.
112
# _LUA_DEP_TYPES_ALL	- List of valid dependency types.
113
# _LUA_VERS_ALL			- List of available Lua versions.
114
# _LUA_VERS_LISTS=		- Reverse lists preference order.
115
# _LUA_PLIST_ALL		- List of variables to be added to PLIST_SUB.
116
# _LUA_PLIST_DIR_ALL	- List of path variables (relative to ${LUA_PREFIX})
117
#						  to be added to PLIST_SUB.
118
#
119
120
_LUA_COMPS_ALL=			lua tolua ruby \
121
						app compat51 dfui filename gettext posix pty socket
122
_LUA_DEP_TYPES_ALL=		build lib run
123
_LUA_VERS_ALL=			4.0 5.0 5.1
124
_LUA_PLIST_ALL=			LUA_VER LUA_VER_SH LUA_VER_STR LUA_PREFIX LUA_SUBDIR
125
_LUA_PLIST_DIR_ALL=		LUA_BINDIR LUA_INCDIR LUA_LIBDIR \
126
						LUA_MODLIBDIR LUA_MODSHAREDIR
127
_LUA_VERS_LISTS=		WANT_LUA_VER WITH_LUA_VER
128
129
#
130
# Variables used to determine what is needed.
131
# _LUA_PORT_comp_ver	- Port directory.
132
# _LUA_LIB_comp_ver		- Name of the shared library (optional).
133
# _LUA_SHVER_comp_ver	- Shared library version (optional).
134
# _LUA_FILE_comp_ver	- File installed by that component.
135
# _LUA_DEPTYPE_comp_ver	- Default dependency type.
136
#
137
138
_LUA_PORT_lua_4.0=		lang/lua4
139
_LUA_DEPTYPE_lua_4.0=	lib
140
_LUA_PORT_tolua_4.0=	lang/tolua4
141
_LUA_PORT_ruby_4.0=		lang/ruby-lua4
142
143
_LUA_PORT_lua_5.0=		lang/lua50
144
_LUA_DEPTYPE_lua_5.0=	lib
145
_LUA_PORT_tolua_5.0=	lang/tolua
146
_LUA_PORT_ruby_5.0=		lang/ruby-lua
147
148
_LUA_PORT_app_5.0=		devel/lua50-app
149
_LUA_PORT_compat51_5.0=	devel/lua50-compat51
150
_LUA_FILE_compat51_5.0=	${LUA_MODSHAREDIR}/compat-5.1.lua
151
_LUA_PORT_dfui_5.0=		devel/lua50-dfui
152
_LUA_PORT_filename_5.0=	devel/lua50-filename
153
_LUA_PORT_gettext_5.0=	devel/lua50-gettext
154
_LUA_PORT_posix_5.0=	devel/lua50-posix
155
_LUA_PORT_pty_5.0=		devel/lua50-pty
156
_LUA_PORT_socket_5.0=	net/luasocket
157
158
_LUA_PORT_lua_5.1=		lang/lua
159
_LUA_DEPTYPE_lua_5.1=	build
160
161
.for comp in ${_LUA_COMPS_ALL}
162
_LUA_COMP=				${comp}
163
.	for ver in ${_LUA_VERS_ALL}
164
.		if ${_LUA_COMP} == "lua"
165
_LUA_LIB_${comp}_${ver}=	lua-${LUA_VER}.${LUA_VER_SH}
166
_LUA_SHVER_${comp}_${ver}=	${LUA_VER_SH}
167
_LUA_FILE_${comp}_${ver}=	${LUA_LIBDIR}/liblua.a
168
.		elif ${_LUA_COMP} == "tolua"
169
_LUA_FILE_${comp}_${ver}=	${LUA_LIBDIR}/libtolua.a
170
_LUA_DEPTYPE_${comp}_${ver}=build
171
.		elif ${_LUA_COMP} == "ruby"
172
_LUA_FILE_${comp}_${ver}=	${RUBY_SITEARCHLIBDIR}/lua-${LUA_VER}.so
173
_LUA_DEPTYPE_${comp}_${ver}=lib
174
.		else
175
.			if !defined(_LUA_FILE_${comp}_${ver})
176
_LUA_FILE_${comp}_${ver}=	${LUA_MODSHAREDIR}/${comp}.lua
177
.			endif
178
_LUA_DEPTYPE_${comp}_${ver}=run
179
.		endif
180
.	endfor
181
.endfor
182
183
.endif
184
185
#
186
# Check for present components.
187
#
188
189
.if defined(WANT_LUA) && !defined(AFTERPORTMK)
190
.	for __WANT_LUA in ${WANT_LUA}
191
# Check if WANT_LUA contains more than one word.
192
.		if defined(HAVE_LUA)
193
IGNORE?=				selected multiple values for WANT_LUA: ${WANT_LUA}
194
.		endif
195
HAVE_LUA=				#
196
# Check for all versions.
197
.		if ${WANT_LUA:L} == "yes"
198
.			for comp in ${_LUA_COMPS_ALL}
199
.				for ver in ${_LUA_VERS_ALL}
200
_LUA_COMP=				_LUA_FILE_${comp}_${ver}
201
.					if defined(${_LUA_COMP}) && exists(${${_LUA_COMP}})
202
HAVE_LUA+=				${comp}-${ver}
203
.					endif
204
.				endfor
205
.			endfor
206
# Check for a specific version.
207
.		elif ${_LUA_VERS_ALL:M${__WANT_LUA}} != ""
208
.			for comp in ${_LUA_COMPS_ALL}
209
.				if exists(${_LUA_FILE_${comp}_${__WANT_LUA}})
210
HAVE_LUA+=				${comp}
211
.				endif
212
.			endfor
213
.		else
214
IGNORE?=				selected an invalid value for WANT_LUA: ${__WANT_LUA}
215
.		endif
216
.	endfor
217
.endif		# WANT_LUA && !AFTERPORTMK
218
219
#
220
# Select Lua version.
221
#
222
223
.if !defined(_LUA_Version_Done) && (!defined(BEFOREPORTMK) || \
224
    (defined(LUA_PREMK) && !defined(AFTERPORTMK) && \
225
    (defined(USE_LUA) || defined(USE_LUA_NOT))))
226
_LUA_Version_Done=		yes
227
228
# Set defaults (if one isn't present).
229
230
USE_LUA?=				${_LUA_VERS_ALL}
231
USE_LUA_NOT?=			#
232
233
#
234
# Make lists of valid and invalid versions.
235
#
236
# The following variables are used:
237
# _LUA_VER_CHECK		- If the version is a single one, express in a range.
238
# _LUA_VER_MIN			- Lower version of the range.
239
# _LUA_VER_MAX			- Higher version of the range.
240
# _LUA_VER_LIST			- List of requested versions.
241
# _LUA_VER_NOT_LIST		- List of disallowed versions.
242
# _LUA_VER_FINAL		- List of requested version without disallowed ones.
243
#
244
245
.for list in VER VER_NOT
246
_LUA_${list}_LIST=		#
247
.	for ver in ${USE_LUA${list:C/VER//}}
248
_LUA_VER_CHECK:=		${ver:C/^([[:digit:]]+(\.[[:digit:]]+)*)$/\1-\1/}
249
_LUA_VER_MIN:=			${_LUA_VER_CHECK:C/([[:digit:]]+(\.[[:digit:]]+)*)[-+].*/\1/}
250
_LUA_VER_MAX:=			${_LUA_VER_CHECK:C/.*-([[:digit:]]+(\.[[:digit:]]+)*)/\1/}
251
# Minimum version not specified.
252
.		if ${_LUA_VER_MIN} == ${_LUA_VER_CHECK}
253
.			undef _LUA_VER_MIN
254
.			for v in ${_LUA_VERS_ALL}
255
_LUA_VER_MIN?=			${v}
256
.			endfor
257
.		endif
258
# Maximum version not specified.
259
.		if ${_LUA_VER_MAX} == ${_LUA_VER_CHECK}
260
.			for v in ${_LUA_VERS_ALL}
261
_LUA_VER_MAX=			${v}
262
.			endfor
263
.		endif
264
# Expand versions and add valid ones to each list.
265
.		for v in ${_LUA_VERS_ALL}
266
.			if ${_LUA_VER_MIN} <= ${v} && ${_LUA_VER_MAX} >= ${v} && \
267
			   ${_LUA_${list}_LIST:M${v}} == ""
268
_LUA_${list}_LIST+=		${v}
269
.			endif
270
.		endfor
271
.	endfor
272
.endfor
273
274
# Merge the lists into a single list of valid versions.
275
276
_LUA_VER_FINAL=			#
277
.for ver in ${_LUA_VER_LIST}
278
.	if ${_LUA_VER_NOT_LIST:M${ver}} == ""
279
_LUA_VER_FINAL+=		${ver}
280
.	endif
281
.endfor
282
283
# Check for a null version.
284
285
.if empty(_LUA_VER_FINAL)
286
IGNORE?=				selected a null or invalid Lua version
287
.endif
288
289
#
290
# Choose final version.
291
#
292
293
#
294
# Check for the following (in order):
295
# 1) WITH_LUA_VER		- User preference.
296
# 2) WANT_LUA_VER		- Port preference.
297
# 3) _LUA_VER_FINAL		- Available versions.
298
#
299
300
.for list in _LUA_VER_FINAL ${_LUA_LISTS_ORDER}
301
.	if defined(${list})
302
.		for ver in ${${list}}
303
.			if ${_LUA_VER_FINAL:M${ver}} != ""
304
_LUA_VER=				${ver}
305
.			endif
306
.		endfor
307
.	endif
308
.endfor
309
310
#
311
# Set variables.
312
#
313
314
# Version.
315
LUA_VER=				${_LUA_VER}
316
LUA_VER_SH?=			${LUA_VER:C/[[:digit:]]\.([[:digit:]])/\1/}
317
LUA_VER_STR?=			${LUA_VER:S/.//g}
318
319
# Paths.
320
LUA_PREFIX?=			${LOCALBASE}
321
LUA_SUBDIR?=			lua${LUA_VER_STR}
322
LUA_BINDIR?=			${LUA_PREFIX}/bin/${LUA_SUBDIR}
323
LUA_INCDIR?=			${LUA_PREFIX}/include/${LUA_SUBDIR}
324
LUA_LIBDIR?=			${LUA_PREFIX}/lib/${LUA_SUBDIR}
325
LUA_MODLIBDIR?=			${LUA_PREFIX}/lib/lua/${LUA_VER}
326
LUA_MODSHAREDIR?=		${LUA_PREFIX}/share/lua/${LUA_VER}
327
328
# Package name.
329
LUA_PKGNAMEPREFIX?=		lua${LUA_VER_STR}-
330
331
.endif		# !_LUA_Version_Done && (!BEFOREPORTMK || \
332
#			(LUA_PREMK && !AFTERPORTMK && (USE_LUA || USE_LUA_NOT)))
333
334
#
335
# Process components list and add dependencies, variables, etc.
336
#
337
338
.if !defined(BEFOREPORTMK)
339
340
#
341
# Component parsing.
342
#
343
# The variables used are:
344
# _LUA_COMP				- Component part.
345
# _LUA_DEP_TYPE			- Dependency type part.
346
# _LUA_COMP_NEW			- Component + dependency type.
347
# _LUA_COMPS_FINAL		- Final list of components with dependency types.
348
#
349
350
# Default components.
351
352
LUA_COMPS?=				lua
353
354
# Detect invalid and duplicated components.
355
356
_LUA_COMPS_FINAL=		#
357
.for comp in ${LUA_COMPS}
358
_LUA_COMP=				${comp:C/:([[:alpha:]]+)$//}
359
.	if ${_LUA_COMP} == ${comp}
360
_LUA_DEP_TYPE=			${_LUA_DEPTYPE_${comp}_${_LUA_VER}}
361
.	else
362
_LUA_DEP_TYPE=			${comp:C/.+:([[:alpha:]]+)$/\1/}
363
.	endif
364
_LUA_COMP_NEW=			${_LUA_COMP}_${_LUA_DEP_TYPE}
365
.	for __LUA_COMP in ${_LUA_COMP}
366
.		if ${_LUA_COMPS_ALL:M${__LUA_COMP}} == ""
367
IGNORE?=				selected an invalid Lua component: ${__LUA_COMP}
368
.		endif
369
.	endfor
370
.	for __LUA_DEP_TYPE in ${_LUA_DEP_TYPE}
371
.		if ${_LUA_DEP_TYPES_ALL:M${__LUA_DEP_TYPE}} == ""
372
IGNORE?=				selected an invalid Lua dependency type: ${__LUA_DEP_TYPE}
373
.		endif
374
.	endfor
375
.	if !defined(_LUA_PORT_${_LUA_COMP}_${_LUA_VER})
376
IGNORE?=				selected a Lua component (${_LUA_COMP}) which is not available for the selected version (${_LUA_VER})
377
.	endif
378
.	for newcomp in ${_LUA_COMP_NEW}
379
.		if ${_LUA_COMPS_FINAL:M${newcomp}} == ""
380
_LUA_COMPS_FINAL+=		${newcomp}
381
.		endif
382
.	endfor
383
.endfor
384
385
# Add dependencies.
386
#
387
# The variable used are:
388
# _LUA_COMP		-		- Component part.
389
# _LUA_DEP_TYPE			- Dependency type part.
390
391
.for comp in ${_LUA_COMPS_FINAL}
392
_LUA_DEP_TYPE=			${comp:C/.+_([[:alpha:]]+)$/\1/}
393
_LUA_COMP=				${comp:C/_([[:alpha:]]+)$//}
394
# XXX Need a .for loop here so the variable is expanded before the assignment.
395
.	for comp_part in ${_LUA_COMP}
396
.		if ${_LUA_DEP_TYPE} == "lib"
397
.			if defined(_LUA_LIB_${comp_part}_${_LUA_VER})
398
LIB_DEPENDS+=			${_LUA_LIB_${comp_part}_${_LUA_VER}}:${PORTSDIR}/${_LUA_PORT_${comp_part}_${_LUA_VER}}
399
.			else
400
BUILD_DEPENDS+=			${_LUA_FILE_${comp_part}_${_LUA_VER}}:${PORTSDIR}/${_LUA_PORT_${comp_part}_${_LUA_VER}}
401
RUN_DEPENDS+=			${_LUA_FILE_${comp_part}_${_LUA_VER}}:${PORTSDIR}/${_LUA_PORT_${comp_part}_${_LUA_VER}}
402
.			endif
403
.		else
404
${_LUA_DEP_TYPE:U}_DEPENDS+=	${_LUA_FILE_${comp_part}_${_LUA_VER}}:${PORTSDIR}/${_LUA_PORT_${comp_part}_${_LUA_VER}}
405
.		endif
406
.	endfor
407
.endfor
408
409
# Packaging list variables.
410
.for var in ${_LUA_PLIST_ALL}
411
PLIST_SUB+=				${var}="${${var}}"
412
.endfor
413
.for var in ${_LUA_PLIST_DIR_ALL}
414
PLIST_SUB+=				${var}="${${var}:S/${LUA_PREFIX}\///}"
415
.endfor
416
.for var in ${_LUA_PLIST_ALL} ${_LUA_PLIST_DIR_ALL}
417
MAKE_ENV+=				${var}="${${var}}"
418
.endfor
419
420
.endif	# ! BEFOREPORTMK
(-)./Mk/bsd.port.mk (+11 lines)
Lines 426-431 Link Here
426
#				  or http://www.FreeBSD.org/gnome/docs/porting.html
426
#				  or http://www.FreeBSD.org/gnome/docs/porting.html
427
#				  for more details.
427
#				  for more details.
428
##
428
##
429
# USE_LUA		- If set, this port uses the Lua library and related
430
#				  components. See bsd.lua.mk for more details.
431
##
429
# USE_KDEBASE_VER
432
# USE_KDEBASE_VER
430
#				- Set to 3 to use the KDE windowing system.
433
#				- Set to 3 to use the KDE windowing system.
431
#				  Implies inclusion of bsd.kde.mk.
434
#				  Implies inclusion of bsd.kde.mk.
Lines 1498-1503 Link Here
1498
.include "${PORTSDIR}/Mk/bsd.wx.mk"
1501
.include "${PORTSDIR}/Mk/bsd.wx.mk"
1499
.endif
1502
.endif
1500
1503
1504
.if defined(WANT_LUA) || defined(USE_LUA) || defined(USE_LUA_NOT)
1505
.include "${PORTSDIR}/Mk/bsd.lua.mk"
1506
.endif
1507
1501
.if defined(WANT_GSTREAMER) || defined(USE_GSTREAMER) || defined(USE_GSTREAMER80)
1508
.if defined(WANT_GSTREAMER) || defined(USE_GSTREAMER) || defined(USE_GSTREAMER80)
1502
.include "${PORTSDIR}/Mk/bsd.gstreamer.mk"
1509
.include "${PORTSDIR}/Mk/bsd.gstreamer.mk"
1503
.endif
1510
.endif
Lines 1999-2004 Link Here
1999
.include "${PORTSDIR}/Mk/bsd.wx.mk"
2006
.include "${PORTSDIR}/Mk/bsd.wx.mk"
2000
.endif
2007
.endif
2001
2008
2009
.if defined(USE_LUA) || defined(USE_LUA_NOT)
2010
.include "${PORTSDIR}/Mk/bsd.lua.mk"
2011
.endif
2012
2002
.if defined(USE_APACHE) || defined(APACHE_COMPAT)
2013
.if defined(USE_APACHE) || defined(APACHE_COMPAT)
2003
.include "${PORTSDIR}/Mk/bsd.apache.mk"
2014
.include "${PORTSDIR}/Mk/bsd.apache.mk"
2004
.endif
2015
.endif
(-)./ruby-lua4/Makefile (-5 / +10 lines)
Lines 11-38 Link Here
11
MASTER_SITES=	${MASTER_SITE_LOCAL}
11
MASTER_SITES=	${MASTER_SITE_LOCAL}
12
MASTER_SITE_SUBDIR=	knu
12
MASTER_SITE_SUBDIR=	knu
13
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
13
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
14
PKGNAMESUFFIX=	4
15
DISTNAME=	ruby${PORTNAME}-${PORTVERSION}
14
DISTNAME=	ruby${PORTNAME}-${PORTVERSION}
16
DIST_SUBDIR=	ruby
15
DIST_SUBDIR=	ruby
17
16
18
MAINTAINER=	ports@FreeBSD.org
17
MAINTAINER=	ports@FreeBSD.org
19
COMMENT=	A Ruby extension to make Lua script language as a class
18
COMMENT=	A Ruby extension to make Lua script language as a class
20
19
21
LIB_DEPENDS=	lua.4:${PORTSDIR}/lang/lua4
20
USE_LUA=	4.0
22
23
CONFLICTS=	${RUBY_PKGNAMEPREFIX}lua5-[0-9]*
24
25
USE_ZIP=	yes
21
USE_ZIP=	yes
26
22
27
USE_RUBY=	yes
23
USE_RUBY=	yes
28
USE_RUBY_EXTCONF=	yes
24
USE_RUBY_EXTCONF=	yes
29
RUBY_EXTCONF=	luaconf.rb
25
RUBY_EXTCONF=	luaconf.rb
26
RUBY_MODNAME=	${PORTNAME}-${LUA_VER}
30
27
31
NO_WRKSUBDIR=	yes
28
NO_WRKSUBDIR=	yes
32
INSTALL_TARGET=	site-install
29
INSTALL_TARGET=	site-install
33
30
34
EXAMPLES=	html_ssi_lua.rb test_*
31
EXAMPLES=	html_ssi_lua.rb test_*
35
32
33
post-patch:
34
	@${REINPLACE_CMD} -Ee 's/[[:<:]](lua(lib)?)[[:>:]]/\1-${LUA_VER}/' \
35
		${WRKSRC}/${RUBY_EXTCONF}
36
37
post-configure:
38
	@${REINPLACE_CMD} -Ee 's|^(CPPFLAGS =.*)|\1 -I${LUA_INCDIR}|' \
39
		${WRKSRC}/${MAKEFILE}
40
36
post-install:
41
post-install:
37
.if !defined(NOPORTDOCS)
42
.if !defined(NOPORTDOCS)
38
	${MKDIR} ${RUBY_MODEXAMPLESDIR}
43
	${MKDIR} ${RUBY_MODEXAMPLESDIR}
(-)./ruby-lua4/pkg-plist (-1 / +1 lines)
Lines 1-4 Link Here
1
%%RUBY_SITEARCHLIBDIR%%/lua.so
1
%%RUBY_SITEARCHLIBDIR%%/lua-%%LUA_VER%%.so
2
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rubylua.txt
2
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rubylua.txt
3
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
3
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
4
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html_ssi_lua.rb
4
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html_ssi_lua.rb
(-)./stratagus/Makefile (-35 / +25 lines)
Lines 16-47 Link Here
16
MAINTAINER=	tlp@liquidx.org
16
MAINTAINER=	tlp@liquidx.org
17
COMMENT=	Free cross-platform real-time strategy gaming engine
17
COMMENT=	Free cross-platform real-time strategy gaming engine
18
18
19
LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
19
LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png
20
		lua.5:${PORTSDIR}/lang/lua50
21
20
21
USE_GMAKE=	yes
22
USE_LUA=	5.0
22
USE_SDL=	yes
23
USE_SDL=	yes
23
USE_XLIB=	yes
24
USE_XLIB=	yes
24
USE_GMAKE=	yes
25
26
WRKSRC=		${WRKDIR}/stratagus-040702
27
28
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
26
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
27
CPPFLAGS=	-I${LOCALBASE}/include -I${X11BASE}/include -I${LUA_INCDIR}
28
LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib -L${LUA_LIBDIR}
29
WRKSRC=		${WRKDIR}/stratagus-040702
29
30
30
.if defined(WITH_OPENGL)
31
OPTIONS=	OPENGL "Enable OpenGL support" on \
31
CONFIGURE_ARGS+=	--with-opengl
32
		MIKMOD "Enable Mikmod support" off \
32
.endif
33
		VORBIS "Enable Ogg Vorbis support" off
33
34
.if defined(WITHOUT_VORBIS)
35
CONFIGURE_ARGS+=	--without-ogg
36
.else
37
LIB_DEPENDS+=	vorbisfile.4:${PORTSDIR}/audio/libvorbis
38
.endif
39
40
.if defined(WITHOUT_MIKMOD)
41
CONFIGURE_ARGS+=	--without-mikmod
42
.else
43
LIB_DEPENDS+=	mikmod.2:${PORTSDIR}/audio/libmikmod
44
.endif
45
34
46
PLIST_FILES=	bin/stratagus
35
PLIST_FILES=	bin/stratagus
47
36
Lines 51-70 Link Here
51
IGNORE=		does not run properly on FreeBSD 4.x
40
IGNORE=		does not run properly on FreeBSD 4.x
52
.endif
41
.endif
53
42
54
pre-everything::
43
.if defined(WITH_OPENGL)
55
	@${ECHO_MSG} ""
44
CONFIGURE_ARGS+=--with-opengl
56
	@${ECHO_MSG} "Stratagus has the following tunable option(s):"
45
.endif
57
	@${ECHO_MSG} ""
46
58
	@${ECHO_MSG} "	WITH_OPENGL=yes		Builds Stratagus with OpenGL"
47
.if defined(WITH_MIKMOD)
59
	@${ECHO_MSG} ""
48
LIB_DEPENDS+=	mikmod.2:${PORTSDIR}/audio/libmikmod
60
	@${ECHO_MSG} "	WITHOUT_VORBIS=yes	Turns off Ogg Vorbis support"
49
.else
61
	@${ECHO_MSG} "	WITHOUT_MIKMOD=yes	Turns off Mikmod support"
50
CONFIGURE_ARGS+=--without-mikmod
62
	@${ECHO_MSG} ""
51
.endif
63
52
64
post-configure:
53
.if defined(WITH_VORBIS)
65
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile
54
LIB_DEPENDS+=	vorbisfile.4:${PORTSDIR}/audio/libvorbis
66
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Rules.make
55
.else
67
	@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|' ${WRKSRC}/Rules.make
56
CONFIGURE_ARGS+=--without-ogg
57
.endif
68
58
69
post-install:
59
post-install:
70
	@${CAT} ${PKGMESSAGE}
60
	@${CAT} ${PKGMESSAGE}
(-)./stratagus/pkg-message (-6 / +6 lines)
Lines 1-9 Link Here
1
-------------------------------------------------------------------------------
1
------------------------------------------------------------------------------
2
NOTE: This is only the engine. If you wish to play a game that uses the 
2
NOTE: This is only the engine. If you wish to play a game that uses the
3
Stratagus engine, you must manually download the Stratagus game data. 
3
Stratagus engine, you must manually download the Stratagus game data.
4
4
5
You can use the 'games/wargus' port to extract data from a legal copy of 
5
You can use the 'games/wargus' port to extract data from a legal copy of
6
Warcraft 2 (original DOS version required, won't work with the battle.net 
6
Warcraft 2 (original DOS version required, won't work with the battle.net
7
edition).
7
edition).
8
8
9
For more information, please take a look at the following URL:
9
For more information, please take a look at the following URL:
Lines 11-14 Link Here
11
http://stratagus.sourceforge.net/games.shtml
11
http://stratagus.sourceforge.net/games.shtml
12
12
13
Enjoy!
13
Enjoy!
14
-------------------------------------------------------------------------------
14
------------------------------------------------------------------------------
(-)./stratagus/files/patch-Rules.make.in (+38 lines)
Added Link Here
1
--- ./Rules.make.in.orig	Thu Jul  1 22:38:08 2004
2
+++ ./Rules.make.in	Mon Jul 17 19:23:39 2006
3
@@ -10,17 +10,15 @@
4
 ##
5
 
6
 # Compile commands
7
-CC=gcc
8
 CCLD=$(CC)
9
 RM=rm -f
10
-MAKE=make
11
 
12
 # Prefix for 'make install'
13
 PREFIX=@PREFIX@
14
 
15
 # Use LUA support
16
-CCL		= -DUSE_LUA
17
-CCLLIB		= -lm
18
+CCL		= -DUSE_LUA -I$(LUA_INCDIR)
19
+CCLLIB		= -L$(LUA_LIBDIR) -lm
20
 
21
 # Video support
22
 VIDEO_CFLAGS = @VIDEO_CFLAGS@
23
@@ -49,13 +47,12 @@
24
 
25
 IFLAGS=	-I$(TOPDIR)/src/include $(XIFLAGS) -I$(TOPDIR)/src/movie/vp31/include
26
 
27
-CFLAGS=@EXTRA_CFLAGS@ @PROFILE_CFLAGS@ @DEBUG_CFLAGS@ $(IFLAGS) \
28
+CFLAGS=@CFLAGS@ @CPPFLAGS@ @EXTRA_CFLAGS@ @PROFILE_CFLAGS@ @DEBUG_CFLAGS@ $(IFLAGS) \
29
     -DUSE_HP_FOR_XP -DMAP_REGIONS \
30
     @PROFILE_CFLAGS@ @DEBUG_CFLAGS@ @VIDEO_CFLAGS@ @BZ2_CFLAGS@ \
31
     @OGG_CFLAGS@ @MAD_CFLAGS@ @FLAC_CFLAGS@ @CDAUDIO_CFLAGS@ \
32
     @MIKMOD_CFLAGS@ @LUA_CFLAGS@ $(CCL) \
33
-    $(COMP_CFLAGS) @PLATFORM@ \
34
-    -I/usr/local/include
35
+    $(COMP_CFLAGS) @PLATFORM@
36
 
37
 CTAGSFLAGS=-i defptvS -a -f 
38
 
(-)./stratagus/files/patch-aa (-11 lines)
Removed Link Here
1
--- Rules.make.in.orig	Thu Jul  1 00:03:00 2004
2
+++ Rules.make.in	Thu Jul  1 00:04:55 2004
3
@@ -55,7 +55,8 @@
4
     @OGG_CFLAGS@ @MAD_CFLAGS@ @FLAC_CFLAGS@ @CDAUDIO_CFLAGS@ \
5
     @MIKMOD_CFLAGS@ @LUA_CFLAGS@ $(CCL) \
6
     $(COMP_CFLAGS) @PLATFORM@ \
7
-    -I/usr/local/include
8
+    -I/usr/local/include \
9
+    -I/usr/X11R6/include
10
 
11
 CTAGSFLAGS=-i defptvS -a -f 
(-)./stratagus/files/patch-configure (-2 / +2 lines)
Lines 1-5 Link Here
1
--- configure.orig	Fri Jul  2 03:46:35 2004
1
--- ./configure.orig	Thu Jul  1 22:46:35 2004
2
+++ configure	Tue Nov  2 21:31:50 2004
2
+++ ./configure	Mon Jul 17 19:23:06 2006
3
@@ -3229,9 +3229,6 @@
3
@@ -3229,9 +3229,6 @@
4
 	VIDEO_LIBS="$VIDEO_LIBS -lwsock32 -lws2_32 -lmingwex -lgmon"
4
 	VIDEO_LIBS="$VIDEO_LIBS -lwsock32 -lws2_32 -lmingwex -lgmon"
5
     fi
5
     fi
(-)./ruby-xml-script/Makefile (-2 / +7 lines)
Lines 16-24 Link Here
16
MAINTAINER=	ports@FreeBSD.org
16
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	A Ruby module for scripting an XML stream using an ASP-like notation
17
COMMENT=	A Ruby module for scripting an XML stream using an ASP-like notation
18
18
19
RUN_DEPENDS=	${RUBY_SITEARCHLIBDIR}/js.so:${PORTSDIR}/lang/ruby-js \
19
RUN_DEPENDS=	${RUBY_SITEARCHLIBDIR}/js.so:${PORTSDIR}/lang/ruby-js
20
		${RUBY_SITEARCHLIBDIR}/lua.so:${PORTSDIR}/lang/ruby-lua4
21
20
21
USE_LUA=	4.0
22
LUA_COMPS=	ruby
22
USE_RUBY=	yes
23
USE_RUBY=	yes
23
USE_RUBY_SETUP=	yes
24
USE_RUBY_SETUP=	yes
24
25
Lines 28-33 Link Here
28
		README
29
		README
29
EXAMPLES=	tests/*
30
EXAMPLES=	tests/*
30
31
32
post-patch:
33
	@${REINPLACE_CMD} -Ee 's|(language/lua)|\1-${LUA_VER}|' \
34
		${WRKSRC}/lib/xml/script/lua/compiler.rb
35
31
post-install:
36
post-install:
32
.if !defined(NOPORTDOCS)
37
.if !defined(NOPORTDOCS)
33
	${MKDIR} ${RUBY_MODEXAMPLESDIR}
38
	${MKDIR} ${RUBY_MODEXAMPLESDIR}
(-)./tolua/Makefile (-7 / +6 lines)
Lines 15-29 Link Here
15
MAINTAINER=	edwin@mavetju.org
15
MAINTAINER=	edwin@mavetju.org
16
COMMENT=	toLua: accessing C/C++ code from Lua
16
COMMENT=	toLua: accessing C/C++ code from Lua
17
17
18
LIB_DEPENDS=	lua:${PORTSDIR}/lang/lua50
19
20
WRKSRC=		${WRKDIR}/${PORTNAME}-5.0
21
USE_GMAKE=	yes
18
USE_GMAKE=	yes
22
CONFLICTS=	tolua4-.*
19
USE_LUA=	5.0
20
WRKSRC=		${WRKDIR}/${PORTNAME}-5.0
23
21
24
do-install:
22
do-install:
25
	${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua ${PREFIX}/bin
23
	${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua ${LUA_BINDIR}
26
	${INSTALL_DATA} ${WRKSRC}/include/tolua.h ${PREFIX}/include
24
	${LN} -sf ${LUA_SUBDIR}/tolua ${PREFIX}/bin/tolua-${LUA_VER}
27
	${INSTALL_DATA} ${WRKSRC}/lib/libtolua.a ${PREFIX}/lib
25
	${INSTALL_DATA} ${WRKSRC}/include/tolua.h ${LUA_INCDIR}
26
	${INSTALL_DATA} ${WRKSRC}/lib/libtolua.a ${LUA_LIBDIR}
28
27
29
.include <bsd.port.mk>
28
.include <bsd.port.mk>
(-)./tolua/pkg-plist (-3 / +4 lines)
Lines 1-3 Link Here
1
bin/tolua
1
%%LUA_BINDIR%%/tolua
2
lib/libtolua.a
2
bin/tolua-%%LUA_VER%%
3
include/tolua.h
3
%%LUA_LIBDIR%%/libtolua.a
4
%%LUA_INCDIR%%/tolua.h
(-)./tolua++/Makefile (-3 / +2 lines)
Lines 15-25 Link Here
15
COMMENT=	An extended version of tolua, a tool to integrate C/C++ code with Lua
15
COMMENT=	An extended version of tolua, a tool to integrate C/C++ code with Lua
16
16
17
BUILD_DEPENDS=	${LOCALBASE}/bin/scons:${PORTSDIR}/devel/scons
17
BUILD_DEPENDS=	${LOCALBASE}/bin/scons:${PORTSDIR}/devel/scons
18
LIB_DEPENDS=	lua:${PORTSDIR}/lang/lua50
19
18
20
WRKSRC=		${WRKDIR}/tolua++-${PORTVERSION}
21
USE_BZIP2=	yes
19
USE_BZIP2=	yes
22
INSTALLS_SHLIB=	yes
20
USE_LDCONFIG=	yes
21
USE_LUA=	5.0
23
NO_BUILD=	yes
22
NO_BUILD=	yes
24
23
25
do-build:
24
do-build:
(-)./tolua4/Makefile (-8 / +17 lines)
Lines 6-12 Link Here
6
# $FreeBSD: ports/lang/tolua4/Makefile,v 1.1 2004/11/21 09:32:06 edwin Exp $
6
# $FreeBSD: ports/lang/tolua4/Makefile,v 1.1 2004/11/21 09:32:06 edwin Exp $
7
#
7
#
8
8
9
PORTNAME=	tolua4
9
PORTNAME=	tolua
10
PORTVERSION=	4.0a
10
PORTVERSION=	4.0a
11
CATEGORIES=	lang
11
CATEGORIES=	lang
12
MASTER_SITES=	ftp://ftp.tecgraf.puc-rio.br/pub/users/celes/tolua/ \
12
MASTER_SITES=	ftp://ftp.tecgraf.puc-rio.br/pub/users/celes/tolua/ \
Lines 16-30 Link Here
16
MAINTAINER=	edwin@mavetju.org
16
MAINTAINER=	edwin@mavetju.org
17
COMMENT=	toLua: accessing C/C++ code from Lua
17
COMMENT=	toLua: accessing C/C++ code from Lua
18
18
19
LIB_DEPENDS=	lua.4:${PORTSDIR}/lang/lua4
20
21
WRKSRC=		${WRKDIR}/tolua
22
USE_GMAKE=	yes
19
USE_GMAKE=	yes
23
CONFLICTS=	tolua-5.*
20
USE_LUA=	4.0
21
WRKSRC=		${WRKDIR}/tolua
22
23
LATEST_LINK=	${PORTNAME}${LUA_VER_STR}
24
25
post-patch:
26
	@${REINPLACE_CMD} -Ee \
27
		's|^(CC=).*|\1 ${CC}|; \
28
		 s|^(LUA=).*|\1 ${LOCALBASE}|; \
29
		 s|^(LUA(INC\|LIB)=.*)|\1/lua${LUA_VER_STR}|; \
30
		 s|^(CFLAGS)(=.*)|\1+\2|;' \
31
		${WRKSRC}/config
24
32
25
do-install:
33
do-install:
26
	${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua ${PREFIX}/bin
34
	${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua ${LUA_BINDIR}
27
	${INSTALL_DATA} ${WRKSRC}/include/tolua.h ${PREFIX}/include
35
	${LN} -sf ${LUA_SUBDIR}/tolua ${PREFIX}/bin/tolua-${LUA_VER}
28
	${INSTALL_DATA} ${WRKSRC}/lib/libtolua.a ${PREFIX}/lib
36
	${INSTALL_DATA} ${WRKSRC}/include/tolua.h ${LUA_INCDIR}
37
	${INSTALL_DATA} ${WRKSRC}/lib/libtolua.a ${LUA_LIBDIR}
29
38
30
.include <bsd.port.mk>
39
.include <bsd.port.mk>
(-)./tolua4/pkg-plist (-3 / +4 lines)
Lines 1-3 Link Here
1
bin/tolua
1
%%LUA_BINDIR%%/tolua
2
lib/libtolua.a
2
bin/tolua-%%LUA_VER%%
3
include/tolua.h
3
%%LUA_INCDIR%%/tolua.h
4
%%LUA_LIBDIR%%/libtolua.a
(-)./tolua4/files/patch-config (-26 lines)
Removed Link Here
1
--- config.orig	Sun Nov 21 20:12:01 2004
2
+++ config	Sun Nov 21 20:12:39 2004
3
@@ -3,7 +3,7 @@
4
 # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================
5
 
6
 # you need an ANSI C compiler. gcc is a popular one.
7
-CC= gcc
8
+#CC= gcc
9
 WARN= -ansi -Wall
10
 
11
 # on SGI's, cc is ANSI.
12
@@ -20,7 +20,7 @@
13
 AR= ar rcu
14
 
15
 # set lua path
16
-LUA=/usr/local/lua
17
+LUA=${LOCALBASE}
18
 LUAINC=$(LUA)/include
19
 LUALIB=$(LUA)/lib
20
 
21
@@ -29,4 +29,4 @@
22
 INC= -I$(LUAINC) -I$(TOLUA)/include
23
 LIB= -L$(LUALIB)
24
 
25
-CFLAGS= -O2 $(WARN) $(INC)
26
+CFLAGS+= -O2 $(WARN) $(INC)
(-)./verlihub-plugins/Makefile (-12 / +5 lines)
Lines 16-32 Link Here
16
COMMENT=        Plugins for the Verlihub Linux/Unix Direct Connect Hub Software
16
COMMENT=        Plugins for the Verlihub Linux/Unix Direct Connect Hub Software
17
17
18
BUILD_DEPENDS=	${LOCALBASE}/bin/verlihub:${PORTSDIR}/net-p2p/verlihub
18
BUILD_DEPENDS=	${LOCALBASE}/bin/verlihub:${PORTSDIR}/net-p2p/verlihub
19
LIB_DEPENDS=	lua.5:${PORTSDIR}/lang/lua50
20
19
21
WRKSRC=         ${WRKDIR}/vh_plugins-0.1
20
WRKSRC=         ${WRKDIR}/vh_plugins-0.1
22
21
23
USE_GMAKE=	yes
22
USE_GMAKE=	yes
23
USE_LUA=	5.0
24
USE_GCC=	3.3
24
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
25
INSTALLS_SHLIB=	yes
26
INSTALLS_SHLIB=	yes
26
LDCONFIG_DIRS=	%%PREFIX%%/include/verlihub
27
LDCONFIG_DIRS=	%%PREFIX%%/include/verlihub
27
CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/verlihub -I${LOCALBASE}/include/mysql"
28
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
28
29
CPPFLAGS=	-I${LOCALBASE}/include -I${LOCALBASE}/include/verlihub -I${LOCALBASE}/include/mysql -I${LUA_INCDIR}
29
DATADIR=	${PREFIX}/share/${PORTNAME}
30
LDFLAGS=	-L${LUA_LIBDIR}
30
31
31
post-install:
32
post-install:
32
	@${MKDIR} ${DATADIR}
33
	@${MKDIR} ${DATADIR}
Lines 45-58 Link Here
45
46
46
.include <bsd.port.pre.mk>
47
.include <bsd.port.pre.mk>
47
48
48
.if ${OSVERSION} < 502010
49
USE_GCC=	3.3
50
.endif
51
52
.if ${OSVERSION} > 502126
53
BROKEN=		Does not compile with gcc 3.4
54
.endif
55
56
.if ${PERL_LEVEL} < 500800
49
.if ${PERL_LEVEL} < 500800
57
IGNORE=		requires perl 5.8 or later. Install lang/perl5.8 and try again
50
IGNORE=		requires perl 5.8 or later. Install lang/perl5.8 and try again
58
.endif
51
.endif
(-)./xmoto/Makefile (-12 / +13 lines)
Lines 18-36 Link Here
18
LIB_DEPENDS=	vorbis.3:${PORTSDIR}/audio/libvorbis \
18
LIB_DEPENDS=	vorbis.3:${PORTSDIR}/audio/libvorbis \
19
		png.5:${PORTSDIR}/graphics/png \
19
		png.5:${PORTSDIR}/graphics/png \
20
		jpeg.9:${PORTSDIR}/graphics/jpeg
20
		jpeg.9:${PORTSDIR}/graphics/jpeg
21
BUILD_DEPENDS=	${X11BASE}/lib/libode.a:${PORTSDIR}/devel/ode \
21
BUILD_DEPENDS=	${X11BASE}/lib/libode.a:${PORTSDIR}/devel/ode
22
		${LOCALBASE}/include/lua.hpp:${PORTSDIR}/lang/lua
23
22
24
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
25
USE_GMAKE=	yes
24
USE_GMAKE=	yes
26
USE_GL=		yes
25
USE_GL=		yes
26
USE_LUA=	5.1
27
USE_SDL=	sdl mixer
27
USE_SDL=	sdl mixer
28
USE_DOS2UNIX=	src/*.cpp src/*.h
28
USE_DOS2UNIX=	src/*.cpp src/*.h
29
29
30
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
30
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
31
CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
31
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
32
		CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
32
CPPFLAGS=	-I${LOCALBASE}/include -I${X11BASE}/include -I${LUA_INCDIR}
33
		SDL_CONFIG="${SDL_CONFIG}"
33
LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib -L${LUA_LIBDIR}
34
34
35
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
35
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
36
36
Lines 45-57 Link Here
45
.endif
45
.endif
46
46
47
post-patch:
47
post-patch:
48
	@${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/src/VCommon.h
48
	@${REINPLACE_CMD} -e 's|SDL/||; s|endian.h|sys/endian.h|' \
49
	@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/image/tim_memory_crt.cpp
49
		${WRKSRC}/src/VCommon.h
50
	@${REINPLACE_CMD} -e 's|endian.h|sys/endian.h|' ${WRKSRC}/src/VCommon.h
50
	@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
51
	@${REINPLACE_CMD} -e '/LIBS/ s|\(-lSDL_mixer\)|\1 `${SDL_CONFIG} --libs`|' ${WRKSRC}/configure
51
		${WRKSRC}/src/image/tim_memory_crt.cpp
52
.if !defined(WITH_CURL)
52
	@${REINPLACE_CMD} -e \
53
	@${REINPLACE_CMD} -e 's|test $$ac_cv_lib_curl_curl_easy_init = yes|false|' ${WRKSRC}/configure
53
		'/LIBS/ s|\(-lSDL_mixer\)|`${SDL_CONFIG} --libs` \1| ; \
54
.endif
54
		 s|test $$ac_cv_lib_curl_curl_easy_init = yes|false|' \
55
		${WRKSRC}/configure
55
56
56
.if !defined(NOPORTDOCS)
57
.if !defined(NOPORTDOCS)
57
post-install:
58
post-install:
(-)./celestia/Makefile (-4 / +6 lines)
Lines 26-34 Link Here
26
USE_X_PREFIX=	yes
26
USE_X_PREFIX=	yes
27
27
28
CONFIGURE_ARGS=	--program-prefix=""
28
CONFIGURE_ARGS=	--program-prefix=""
29
CONFIGURE_ENV=	\
29
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
30
	LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -lm ${PTHREAD_LIBS}" \
30
CPPFLAGS=	-I${X11BASE}/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
31
	CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS}"
31
LDFLAGS=	-L${X11BASE}/lib -L${LOCALBASE}/lib -lm ${PTHREAD_LIBS}
32
32
33
UI_LIST=	glut gtk gnome
33
UI_LIST=	glut gtk gnome
34
CELESTIA_UI?=	glut
34
CELESTIA_UI?=	glut
Lines 77-84 Link Here
77
.endif
77
.endif
78
78
79
.if defined(WITH_LUA)
79
.if defined(WITH_LUA)
80
LIB_DEPENDS+=	lua.5:${PORTSDIR}/lang/lua50
80
USE_LUA=	5.0
81
CONFIGURE_ARGS+=	--with-lua
81
CONFIGURE_ARGS+=	--with-lua
82
CPPFLAGS+=	-I${LUA_INCDIR}
83
LDFLAGS+=	-L${LUA_LIBDIR}
82
.endif
84
.endif
83
85
84
pre-patch:
86
pre-patch:
(-)./elinks/Makefile (-1 / +3 lines)
Lines 74-81 Link Here
74
.endif
74
.endif
75
75
76
.if defined(WITH_LUASCRIPT)
76
.if defined(WITH_LUASCRIPT)
77
LIB_DEPENDS+=	lua:${PORTSDIR}/lang/lua50
77
USE_LUA=	5.0
78
CONFIGURE_ARGS+=	--with-lua
78
CONFIGURE_ARGS+=	--with-lua
79
CPPFLAGS+=	-I${LUA_INCDIR}
80
LDFLAGS+=	-L${LUA_LIBDIR}
79
.else
81
.else
80
CONFIGURE_ARGS+=	--without-lua
82
CONFIGURE_ARGS+=	--without-lua
81
.endif
83
.endif
(-)./lighttpd/Makefile (-2 / +2 lines)
Lines 64-72 Link Here
64
.endif
64
.endif
65
65
66
.if defined(WITH_CML)
66
.if defined(WITH_CML)
67
LIB_DEPENDS+=		lua.5:${PORTSDIR}/lang/lua50
67
USE_LUA=	5.0
68
CONFIGURE_ARGS+=	--with-lua
68
CONFIGURE_ARGS+=	--with-lua
69
CONFIGURE_ENV+=		CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L/${LOCALBASE}/lib
69
CONFIGURE_ENV+=		CPPFLAGS="-I${LUA_INCDIR}" LDFLAGS="-L${LUA_LIBDIR}"
70
.endif
70
.endif
71
71
72
SUB_LIST+=		REQUIRE="${_REQUIRE}"
72
SUB_LIST+=		REQUIRE="${_REQUIRE}"

Return to bug 101612