View | Details | Raw Unified | Return to bug 263819 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/Makefile (+1 lines)
Lines 748-753 Link Here
748
    SUBDIR += ftnchek
748
    SUBDIR += ftnchek
749
    SUBDIR += fuel
749
    SUBDIR += fuel
750
    SUBDIR += functionalplus
750
    SUBDIR += functionalplus
751
    SUBDIR += fungw
751
    SUBDIR += fuzzylite
752
    SUBDIR += fuzzylite
752
    SUBDIR += fxdiv
753
    SUBDIR += fxdiv
753
    SUBDIR += g-wrap
754
    SUBDIR += g-wrap
(-)b/devel/fungw/Makefile (+41 lines)
Added Link Here
1
PORTNAME=	fungw
2
DISTVERSION=	1.2.1
3
CATEGORIES=	devel
4
MASTER_SITES=	http://www.repo.hu/projects/fungw/releases/
5
6
MAINTAINER=	fuz@fuz.su
7
COMMENT=	Function gateway
8
9
LICENSE=	LGPL21+
10
LICENSE_FILE=	${WRKSRC}/COPYING
11
12
USES=		gmake tar:bz2
13
14
HAS_CONFIGURE=	yes
15
BINARY_ALIAS=	python=${PYTHON_CMD:Ufalse}
16
17
# unported extensions: estutter funlisp mawk mruby mujs picol python(2)
18
OPTIONS_DEFINE= DOCS DUKTAPE LUA PERL PYTHON3 TCL
19
OPTIONS_DEFAULT=	DUKTAPE LUA PERL PYTHON3 TCL
20
OPTIONS_SUB=	DUKTAPE LUA PERL PYTHON3 TCL
21
22
DUKTAPE_DESC=	Javascript support through Duktape
23
24
DUKTAPE_LIB_DEPENDS=	libduktape.so:lang/duktape-lib
25
LUA_USES=	lua:51
26
PERL_USES=	perl5
27
PYTHON3_USES=	python
28
TCL_USES=	tcl
29
30
pre-configure-DUKTAPE-on:
31
	${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
32
	    ${WRKSRC}/scconfig/src/scripts/find_duktape.c
33
34
pre-configure-LUA-on:
35
	${REINPLACE_CMD} \
36
	    -e 's,%%LUA_INCDIR%%,${LUA_INCDIR},' \
37
	    -e 's,%%LUA_LIBDIR%%,${LUA_LIBDIR},' \
38
	    -e 's,%%LUA_VER%%,${LUA_VER},' \
39
	    ${WRKSRC}/scconfig/src/scripts/find_lua.c
40
41
.include <bsd.port.mk>
(-)b/devel/fungw/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1651841856
2
SHA256 (fungw-1.2.1.tar.bz2) = f2599959a6b96957015b181629cc5035370f929d1ee08dec6447c3eb622fc925
3
SIZE (fungw-1.2.1.tar.bz2) = 336633
(-)b/devel/fungw/files/patch-Makefile (+63 lines)
Added Link Here
1
--- Makefile.orig	2022-05-06 13:41:39 UTC
2
+++ Makefile
3
@@ -1,36 +1,36 @@
4
 all:
5
-	cd libfungw && make all
6
-	cd libfungwbind && make all
7
-	cd regression && make all
8
-	cd doc && make all
9
+	cd libfungw && $(MAKE) all
10
+	cd libfungwbind && $(MAKE) all
11
+	cd regression && $(MAKE) all
12
+	cd doc && $(MAKE) all
13
 
14
 clean:
15
-	cd libfungw && make clean
16
-	cd libfungwbind && make clean
17
-	cd regression && make clean
18
-	cd doc && make clean
19
-	-cd src_3rd/genht && make clean
20
+	cd libfungw && $(MAKE) clean
21
+	cd libfungwbind && $(MAKE) clean
22
+	cd regression && $(MAKE) clean
23
+	cd doc && $(MAKE) clean
24
+	-cd src_3rd/genht && $(MAKE) clean
25
 
26
 distclean:
27
-	cd regression && make distclean
28
-	cd libfungw && make distclean
29
-	cd libfungwbind && make distclean
30
-	cd doc && make distclean
31
-	cd scconfig && make distclean
32
-	-cd src_3rd/genht && make clean
33
+	cd regression && $(MAKE) distclean
34
+	cd libfungw && $(MAKE) distclean
35
+	cd libfungwbind && $(MAKE) distclean
36
+	cd doc && $(MAKE) distclean
37
+	cd scconfig && $(MAKE) distclean
38
+	-cd src_3rd/genht && $(MAKE) clean
39
 
40
 install:
41
-	cd libfungw && make install
42
-	cd libfungwbind && make install
43
-	cd doc && make install
44
+	cd libfungw && $(MAKE) install
45
+	cd libfungwbind && $(MAKE) install
46
+	cd doc && $(MAKE) install
47
 
48
 
49
 linstall:
50
-	cd libfungw && make linstall
51
-	cd libfungwbind && make linstall
52
-	cd doc && make linstall
53
+	cd libfungw && $(MAKE) linstall
54
+	cd libfungwbind && $(MAKE) linstall
55
+	cd doc && $(MAKE) linstall
56
 
57
 uninstall:
58
-	cd libfungw && make uninstall
59
-	cd libfungwbind && make uninstall
60
-	cd doc && make uninstall
61
+	cd libfungw && $(MAKE) uninstall
62
+	cd libfungwbind && $(MAKE) uninstall
63
+	cd doc && $(MAKE) uninstall
(-)b/devel/fungw/files/patch-doc_Makefile.in (+18 lines)
Added Link Here
1
--- doc/Makefile.in.orig	2022-05-06 13:43:13 UTC
2
+++ doc/Makefile.in
3
@@ -32,12 +32,12 @@ install_:
4
 	$(INST) -d $(DOCS) $(DOCDIR)
5
 
6
 install:
7
-	make install_ "INST=$(SCCBOX) install -i" "MKDR=$(SCCBOX) mkdir -p -i"
8
+	$(MAKE) install_ "INST=$(SCCBOX) install -i" "MKDR=$(SCCBOX) mkdir -p -i"
9
 
10
 linstall:
11
-	make install_ "INST=$(SCCBOX) install -l -f -a" "MKDR=$(SCCBOX) mkdir -p -i"
12
+	$(MAKE) install_ "INST=$(SCCBOX) install -l -f -a" "MKDR=$(SCCBOX) mkdir -p -i"
13
 
14
 uninstall:
15
-	make install_ "INST=$(SCCBOX) install -u -f" "MKDR=$(SCCBOX) mkdir -u"
16
+	$(MAKE) install_ "INST=$(SCCBOX) install -u -f" "MKDR=$(SCCBOX) mkdir -u"
17
 
18
 ~]
(-)b/devel/fungw/files/patch-libfungw_Makefile.in (+25 lines)
Added Link Here
1
--- libfungw/Makefile.in.orig	2022-05-06 13:42:01 UTC
2
+++ libfungw/Makefile.in
3
@@ -96,16 +96,16 @@ install_link_:
4
 	$(SCCBOX) $(HOW) $(FUNGW_DYN_VER_XYZ) $(LIBDIR)/$(FUNGW_DYN_VER_XY)
5
 
6
 install:
7
-	make install_ "INST=$(SCCBOX) install -i" "MKDR=$(SCCBOX) mkdir -p -i"
8
-	make install_link_ "HOW=ln -f"
9
+	$(MAKE) install_ "INST=$(SCCBOX) install -i" "MKDR=$(SCCBOX) mkdir -p -i"
10
+	$(MAKE) install_link_ "HOW=ln -f"
11
 
12
 linstall:
13
-	make install_ "INST=$(SCCBOX) install -l -f -a" "MKDR=$(SCCBOX) mkdir -p -i"
14
-	make install_link_ "HOW=ln -f"
15
+	$(MAKE) install_ "INST=$(SCCBOX) install -l -f -a" "MKDR=$(SCCBOX) mkdir -p -i"
16
+	$(MAKE) install_link_ "HOW=ln -f"
17
 
18
 uninstall:
19
-	make install_link_ "HOW=install -u"
20
-	make install_ "INST=$(SCCBOX) install -u -f" "MKDR=$(SCCBOX) mkdir -u"
21
+	$(MAKE) install_link_ "HOW=install -u"
22
+	$(MAKE) install_ "INST=$(SCCBOX) install -u -f" "MKDR=$(SCCBOX) mkdir -u"
23
 
24
 dep:
25
 	echo "### Generated file, do not edit, run make dep ###" > Makefile.dep
(-)b/devel/fungw/files/patch-libfungwbind_Makefile.in (+20 lines)
Added Link Here
1
--- libfungwbind/Makefile.in.orig	2022-05-06 13:42:28 UTC
2
+++ libfungwbind/Makefile.in
3
@@ -2,7 +2,7 @@ print {# Generated by ./configure - DO NOT EDIT\n\n}
4
 foreach /local/fungw/task in {all clean install linstall uninstall}
5
 	print [~~/local/fungw/task~:~] {\n}
6
 	foreach /local/fungw/n in /local/fungw/bindings_all
7
-		print	[~	cd ~/local/fungw/n~ && make ~/local/fungw/task~~] {\n}
8
+		print	[~	cd ~/local/fungw/n~ && $(MAKE) ~/local/fungw/task~~] {\n}
9
 	end
10
 	print {\n}
11
 end
12
@@ -10,7 +10,7 @@ end
13
 
14
 print {distclean:\n}
15
 foreach /local/fungw/n in /local/fungw/bindings_all
16
-	print	[~	cd ~/local/fungw/n~ && make distclean~] {\n}
17
+	print	[~	cd ~/local/fungw/n~ && $(MAKE) distclean~] {\n}
18
 end
19
 print {	rm libfungwbind.mak Makefile\n}
20
 
(-)b/devel/fungw/files/patch-libfungwbind_Plugin.tmpasm (+25 lines)
Added Link Here
1
--- libfungwbind/Plugin.tmpasm.orig	2022-05-06 14:46:15 UTC
2
+++ libfungwbind/Plugin.tmpasm
3
@@ -99,16 +99,16 @@ install_link: $(LIBA) $(LIBSO)
4
 	$(SCCBOX) install $(IOP) --relative $(LIBDIR)/lib$(LIBSO_XYZ) $(LIBDIR)/lib$(LIBSO_X)
5
 
6
 install:
7
-	make install_ IOP="-i"
8
-	make install_link IOP="-l"
9
+	$(MAKE) install_ IOP="-i"
10
+	$(MAKE) install_link IOP="-l"
11
 
12
 linstall:
13
-	make install_ IOP="-l"
14
-	make install_link IOP="-l"
15
+	$(MAKE) install_ IOP="-l"
16
+	$(MAKE) install_link IOP="-l"
17
 
18
 uninstall:
19
-	make install_link IOP="-u"
20
-	make install_ IOP="-u"
21
+	$(MAKE) install_link IOP="-u"
22
+	$(MAKE) install_ IOP="-u"
23
 ~]
24
 
25
 redir /local/fungw/mod_mak
(-)b/devel/fungw/files/patch-regression_Makefile.in (+11 lines)
Added Link Here
1
--- regression/Makefile.in.orig	2022-05-06 13:43:42 UTC
2
+++ regression/Makefile.in
3
@@ -24,7 +24,7 @@ test_script: test_script.o hello.o $(LIB_FGW) $(ENGINE
4
 multicall: multicall.o $(LIB_FGW) $(ENGINES) $(LIBS)
5
 
6
 ../src_3rd/genht/genht_std.a:
7
-	cd ../src_3rd/genht && make genht_std.a
8
+	cd ../src_3rd/genht && $(MAKE) genht_std.a
9
 
10
 test.o: test.c
11
 
(-)b/devel/fungw/files/patch-scconfig_src_scripts_find__duktape.c (+11 lines)
Added Link Here
1
--- scconfig/src/scripts/find_duktape.c.orig	2022-05-06 14:34:12 UTC
2
+++ scconfig/src/scripts/find_duktape.c
3
@@ -44,7 +44,7 @@ int find_script_duktape(const char *name, int logdepth
4
 	logdepth++;
5
 
6
 	/* Look at the standard place */
7
-	if (try_icl(logdepth, "libs/script/duktape", test_c, NULL, NULL, "-lduktape -lm")) return 0;
8
+	if (try_icl(logdepth, "libs/script/duktape", test_c, NULL, "-I%%LOCALBASE%%/include", "-L%%LOCALBASE%%/lib -lduktape -lm")) return 0;
9
 
10
 	return try_fail(logdepth, "libs/script/duktape");
11
 }
(-)b/devel/fungw/files/patch-scconfig_src_scripts_find__lua.c (+11 lines)
Added Link Here
1
--- scconfig/src/scripts/find_lua.c.orig	2022-05-06 14:29:08 UTC
2
+++ scconfig/src/scripts/find_lua.c
3
@@ -48,7 +48,7 @@ int find_script_lua(const char *name, int logdepth, in
4
 
5
 	/* Look at some standard places */
6
 	/* TODO: do we need -ldl? */
7
-	if (try_icl(logdepth, "libs/script/lua", test_c, NULL, NULL, "-llua -llualib -lm")) return 0;
8
+	if (try_icl(logdepth, "libs/script/lua", test_c, NULL, "-I%%LUA_INCDIR%%", "-L%%LUA_LIBDIR%% -llua-%%LUA_VER%%")) return 0;
9
 
10
 	/* lualib doesn't exist in lua 5.1.1 */
11
 	if (try_icl(logdepth, "libs/script/lua", test_c, NULL, NULL, "-llua -lm")) return 0;
(-)b/devel/fungw/files/patch-scconfig_src_scripts_find__python.c (+19 lines)
Added Link Here
1
--- scconfig/src/scripts/find_python.c.orig	2019-01-09 06:46:09 UTC
2
+++ scconfig/src/scripts/find_python.c
3
@@ -43,13 +43,13 @@ static int find_script_python_(const char *name, int l
4
 
5
 	char *inc_py =
6
 		NL "import distutils.sysconfig;"
7
-		NL "print '-I' + distutils.sysconfig.get_python_inc().replace('\\\\','/')"
8
+		NL "print ('-I' + distutils.sysconfig.get_python_inc().replace('\\\\','/'))"
9
 		NL;
10
 	char *lib_py =
11
 		NL "import distutils.sysconfig;"
12
-		NL "print '-L' + distutils.sysconfig.PREFIX.replace('\\\\','/') + '/libs',;"
13
+		NL "print ('-L' + distutils.sysconfig.PREFIX.replace('\\\\','/') + '/lib')"
14
 		NL "import sys;"
15
-		NL "print '-lpython' + str(sys.version_info[0]) + str(sys.version_info[1])"
16
+		NL "print ('-lpython' + str(sys.version_info[0]) + '.' + str(sys.version_info[1]))"
17
 		NL;
18
 
19
 
(-)b/devel/fungw/files/patch-src__3rd_genht_Makefile (+17 lines)
Added Link Here
1
--- src_3rd/genht/Makefile.orig	2022-05-06 14:45:50 UTC
2
+++ src_3rd/genht/Makefile
3
@@ -78,12 +78,12 @@ uninstall:
4
 	rm $(LIBDIR)/$(LIBSO) $(LIBDIR)/$(LIBA) $(LIBDIR)/$(LIBSO1)
5
 
6
 install:
7
-	make install_ CP="cp"
8
+	$(MAKE) install_ CP="cp"
9
 	-@rm $(LIBDIR)/$(LIBSO1) 2>/dev/null
10
 	ln -s $(LIBSO) $(LIBDIR)/$(LIBSO1)
11
 
12
 linstall:
13
-	make install_ CP="ln -s"
14
+	$(MAKE) install_ CP="ln -s"
15
 	-@rm $(LIBDIR)/$(LIBSO1) 2>/dev/null
16
 	ln -s $(LIBSO) $(LIBDIR)/$(LIBSO1)
17
 
(-)b/devel/fungw/pkg-descr (+22 lines)
Added Link Here
1
Fungw is a tiny, portable library written in C (C89) that manages
2
dynamic function calls across different programming languages.  For
3
this, fungw provides:
4
5
 - a simplistic scalar data type abstraction, supporting the most common types
6
 - semi-automatic conversion between data types
7
 - contexts that can host objects; objects can host named functions
8
 - a set of optional language bindings to the most popular scripting languages
9
10
The main use of fungw is to provide the host application a framework
11
where dynamic parts of the code (e.g. plugins) can register their calls,
12
allowing app-plugin, plugin-app, and plugin-plugin calls.
13
14
The second main use is doing all this in a language-agnostic way: any
15
part of the code can be implemented in any of the numerous supported
16
scripting languages (such as awk or lua).  The caller of a function
17
doesn't need to know what language the function is implemented in.
18
19
The main property of fungw is simplicity.  The only API between objects
20
is the plain old function call mechanism.
21
22
WWW: http://repo.hu/projects/fungw/
(-)b/devel/fungw/pkg-plist (-1 / +83 lines)
Added Link Here
0
- 
1
include/libfungw/fungw.h
2
include/libfungw/fungw_conv.h
3
include/libfungw/scconfig_hooks.h
4
lib/libfungw.so
5
lib/libfungw.so.1
6
lib/libfungw.so.1.2
7
lib/libfungw.so.1.2.1
8
lib/libfungw_c.a
9
lib/libfungw_c.so.1
10
lib/libfungw_c.so.1.2
11
lib/libfungw_c.so.1.2.1
12
lib/libfungw_cli.a
13
lib/libfungw_cli.so.1
14
lib/libfungw_cli.so.1.2
15
lib/libfungw_cli.so.1.2.1
16
%%DUKTAPE%%lib/libfungw_duktape.a
17
%%DUKTAPE%%lib/libfungw_duktape.so.1
18
%%DUKTAPE%%lib/libfungw_duktape.so.1.2
19
%%DUKTAPE%%lib/libfungw_duktape.so.1.2.1
20
lib/libfungw_fawk.a
21
lib/libfungw_fawk.so.1
22
lib/libfungw_fawk.so.1.2
23
lib/libfungw_fawk.so.1.2.1
24
%%LUA%%lib/libfungw_lua.a
25
%%LUA%%lib/libfungw_lua.so.1
26
%%LUA%%lib/libfungw_lua.so.1.2
27
%%LUA%%lib/libfungw_lua.so.1.2.1
28
%%PERL%%lib/libfungw_perl.a
29
%%PERL%%lib/libfungw_perl.so.1
30
%%PERL%%lib/libfungw_perl.so.1.2
31
%%PERL%%lib/libfungw_perl.so.1.2.1
32
%%PYTHON3%%lib/libfungw_python3.a
33
%%PYTHON3%%lib/libfungw_python3.so.1
34
%%PYTHON3%%lib/libfungw_python3.so.1.2
35
%%PYTHON3%%lib/libfungw_python3.so.1.2.1
36
%%TCL%%lib/libfungw_tcl.a
37
%%TCL%%lib/libfungw_tcl.so.1
38
%%TCL%%lib/libfungw_tcl.so.1.2
39
%%TCL%%lib/libfungw_tcl.so.1.2.1
40
lib/puplug/fungw_c.a
41
lib/puplug/fungw_c.mak
42
lib/puplug/fungw_c.pup
43
lib/puplug/fungw_c.so
44
lib/puplug/fungw_cli.a
45
lib/puplug/fungw_cli.mak
46
lib/puplug/fungw_cli.pup
47
lib/puplug/fungw_cli.so
48
%%DUKTAPE%%lib/puplug/fungw_duktape.a
49
%%DUKTAPE%%lib/puplug/fungw_duktape.mak
50
%%DUKTAPE%%lib/puplug/fungw_duktape.pup
51
%%DUKTAPE%%lib/puplug/fungw_duktape.so
52
lib/puplug/fungw_fawk.a
53
lib/puplug/fungw_fawk.mak
54
lib/puplug/fungw_fawk.pup
55
lib/puplug/fungw_fawk.so
56
%%LUA%%lib/puplug/fungw_lua.a
57
%%LUA%%lib/puplug/fungw_lua.mak
58
%%LUA%%lib/puplug/fungw_lua.pup
59
%%LUA%%lib/puplug/fungw_lua.so
60
%%PERL%%lib/puplug/fungw_perl.a
61
%%PERL%%lib/puplug/fungw_perl.mak
62
%%PERL%%lib/puplug/fungw_perl.pup
63
%%PERL%%lib/puplug/fungw_perl.so
64
%%PYTHON3%%lib/puplug/fungw_python3.a
65
%%PYTHON3%%lib/puplug/fungw_python3.mak
66
%%PYTHON3%%lib/puplug/fungw_python3.pup
67
%%PYTHON3%%lib/puplug/fungw_python3.so
68
%%TCL%%lib/puplug/fungw_tcl.a
69
%%TCL%%lib/puplug/fungw_tcl.mak
70
%%TCL%%lib/puplug/fungw_tcl.pup
71
%%TCL%%lib/puplug/fungw_tcl.so
72
%%PORTDOCS%%%%DOCSDIR%%/TODO
73
%%PORTDOCS%%%%DOCSDIR%%/custom_types.txt
74
%%PORTDOCS%%%%DOCSDIR%%/index.html
75
%%PORTDOCS%%%%DOCSDIR%%/lang.html
76
%%PORTDOCS%%%%DOCSDIR%%/lang_estutter.html
77
%%PORTDOCS%%%%DOCSDIR%%/lang_funlisp.html
78
%%PORTDOCS%%%%DOCSDIR%%/lang_howto_support.html
79
%%PORTDOCS%%%%DOCSDIR%%/lang_lua.html
80
%%PORTDOCS%%%%DOCSDIR%%/lang_perl.html
81
%%PORTDOCS%%%%DOCSDIR%%/lang_python.html
82
%%PORTDOCS%%%%DOCSDIR%%/lang_sh.html
83
%%PORTDOCS%%%%DOCSDIR%%/model.html

Return to bug 263819