Browse code

app_perl: perl module moved and renamed to modules/app_perl

- same naming pattern as for the other embedded interpreters

Daniel-Constantin Mierla authored on 20/01/2013 11:47:08
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,76 +0,0 @@
1
-# $Id$
2
-#
3
-# perl module makefile
4
-#
5
-# 
6
-# WARNING: do not run this directly, it should be run by the master Makefile
7
-
8
-include ../../Makefile.defs
9
-auto_gen=kamailioxs.c
10
-NAME=perl.so
11
-LIBS=
12
-
13
-ifeq ($(PERLLDOPTS),)
14
-	LIBS+=`perl -MExtUtils::Embed -e ldopts`
15
-else
16
-	LIBS+=$(PERLLDOPTS)
17
-endif
18
-
19
-ifeq ($(PERLCCOPTS),)
20
-	PERLCCOPTS=$(shell perl -MExtUtils::Embed -e ccopts)
21
-endif
22
-DEFS+=$(PERLCCOPTS)
23
-
24
-
25
-DEFS+=-DKAMAILIO_MOD_INTERFACE
26
-
27
-SERLIBPATH=../../lib
28
-SER_LIBS+=$(SERLIBPATH)/kmi/kmi
29
-
30
-PODFILES=kamailioxs.xs `find lib/perl -name *.pm`
31
-
32
-ifeq ($(TYPEMAP),)
33
-	ifeq ($(PERLLIBPATH),)
34
-		PERLLIBPATH=`perl -MConfig -e 'print $$Config{installprivlib}'`
35
-	endif
36
-	TYPEMAP=$(PERLLIBPATH)/ExtUtils/typemap
37
-endif
38
-
39
-include ../../Makefile.modules
40
-
41
-perl.d: kamailioxs.o
42
-perl.o: perl.c kamailioxs.o
43
-
44
-kamailioxs.o: CFLAGS+=-Wno-unused
45
-
46
-kamailioxs.c: kamailioxs.xs typemap
47
-	xsubpp -typemap $(TYPEMAP) -typemap typemap kamailioxs.xs > kamailioxs.c
48
-
49
-.PHONY: perlpod
50
-perlpod: doc/perl_pod.sgml
51
-
52
-doc/perl_pod.sgml: kamailioxs.xs
53
-	cat $(PODFILES) | pod2docbook --doctype=chapter --title='Kamailio Perl API' --no-header - doc/perl_pod.sgml
54
-
55
-install-perl-scripts:
56
-	echo "installing Perl Kamailio packages ..."
57
-	mkdir -p $(modules_prefix)/$(lib_dir)/perl
58
-	$(INSTALL_CFG) lib/perl/*.pm $(modules_prefix)/$(lib_dir)/perl
59
-	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio
60
-	$(INSTALL_CFG) lib/perl/Kamailio/*.pm \
61
-		$(modules_prefix)/$(lib_dir)/perl/Kamailio
62
-	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio/LDAPUtils
63
-	$(INSTALL_CFG) lib/perl/Kamailio/LDAPUtils/*.pm \
64
-		$(modules_prefix)/$(lib_dir)/perl/Kamailio/LDAPUtils
65
-	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio/Utils
66
-	$(INSTALL_CFG) lib/perl/Kamailio/Utils/*.pm \
67
-		$(modules_prefix)/$(lib_dir)/perl/Kamailio/Utils
68
-	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio/VDB
69
-	$(INSTALL_CFG) lib/perl/Kamailio/VDB/*.pm \
70
-		$(modules_prefix)/$(lib_dir)/perl/Kamailio/VDB
71
-	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio/VDB/Adapter
72
-	$(INSTALL_CFG) lib/perl/Kamailio/VDB/Adapter/*.pm \
73
-		$(modules_prefix)/$(lib_dir)/perl/Kamailio/VDB/Adapter
74
-
75
-install-scripts: install-perl-scripts
76
-
Browse code

perl: renamed files and directory from openser to kamailio

- part of patch from Stoyan Mihaylov

Daniel-Constantin Mierla authored on 20/01/2013 10:34:20
Showing 1 changed files
... ...
@@ -6,7 +6,7 @@
6 6
 # WARNING: do not run this directly, it should be run by the master Makefile
7 7
 
8 8
 include ../../Makefile.defs
9
-auto_gen=openserxs.c
9
+auto_gen=kamailioxs.c
10 10
 NAME=perl.so
11 11
 LIBS=
12 12
 
... ...
@@ -27,7 +27,7 @@ DEFS+=-DKAMAILIO_MOD_INTERFACE
27 27
 SERLIBPATH=../../lib
28 28
 SER_LIBS+=$(SERLIBPATH)/kmi/kmi
29 29
 
30
-PODFILES=openserxs.xs `find lib/perl -name *.pm`
30
+PODFILES=kamailioxs.xs `find lib/perl -name *.pm`
31 31
 
32 32
 ifeq ($(TYPEMAP),)
33 33
 	ifeq ($(PERLLIBPATH),)
... ...
@@ -38,39 +38,39 @@ endif
38 38
 
39 39
 include ../../Makefile.modules
40 40
 
41
-perl.d: openserxs.o
42
-perl.o: perl.c openserxs.o
41
+perl.d: kamailioxs.o
42
+perl.o: perl.c kamailioxs.o
43 43
 
44
-openserxs.o: CFLAGS+=-Wno-unused
44
+kamailioxs.o: CFLAGS+=-Wno-unused
45 45
 
46
-openserxs.c: openserxs.xs typemap
47
-	xsubpp -typemap $(TYPEMAP) -typemap typemap openserxs.xs > openserxs.c
46
+kamailioxs.c: kamailioxs.xs typemap
47
+	xsubpp -typemap $(TYPEMAP) -typemap typemap kamailioxs.xs > kamailioxs.c
48 48
 
49 49
 .PHONY: perlpod
50 50
 perlpod: doc/perl_pod.sgml
51 51
 
52
-doc/perl_pod.sgml: openserxs.xs
53
-	cat $(PODFILES) | pod2docbook --doctype=chapter --title='OpenSER Perl API' --no-header - doc/perl_pod.sgml
52
+doc/perl_pod.sgml: kamailioxs.xs
53
+	cat $(PODFILES) | pod2docbook --doctype=chapter --title='Kamailio Perl API' --no-header - doc/perl_pod.sgml
54 54
 
55 55
 install-perl-scripts:
56
-	echo "installing Perl Kamailio (OpenSER) packages ..."
56
+	echo "installing Perl Kamailio packages ..."
57 57
 	mkdir -p $(modules_prefix)/$(lib_dir)/perl
58 58
 	$(INSTALL_CFG) lib/perl/*.pm $(modules_prefix)/$(lib_dir)/perl
59
-	mkdir -p $(modules_prefix)/$(lib_dir)/perl/OpenSER
60
-	$(INSTALL_CFG) lib/perl/OpenSER/*.pm \
61
-		$(modules_prefix)/$(lib_dir)/perl/OpenSER
62
-	mkdir -p $(modules_prefix)/$(lib_dir)/perl/OpenSER/LDAPUtils
63
-	$(INSTALL_CFG) lib/perl/OpenSER/LDAPUtils/*.pm \
64
-		$(modules_prefix)/$(lib_dir)/perl/OpenSER/LDAPUtils
65
-	mkdir -p $(modules_prefix)/$(lib_dir)/perl/OpenSER/Utils
66
-	$(INSTALL_CFG) lib/perl/OpenSER/Utils/*.pm \
67
-		$(modules_prefix)/$(lib_dir)/perl/OpenSER/Utils
68
-	mkdir -p $(modules_prefix)/$(lib_dir)/perl/OpenSER/VDB
69
-	$(INSTALL_CFG) lib/perl/OpenSER/VDB/*.pm \
70
-		$(modules_prefix)/$(lib_dir)/perl/OpenSER/VDB
71
-	mkdir -p $(modules_prefix)/$(lib_dir)/perl/OpenSER/VDB/Adapter
72
-	$(INSTALL_CFG) lib/perl/OpenSER/VDB/Adapter/*.pm \
73
-		$(modules_prefix)/$(lib_dir)/perl/OpenSER/VDB/Adapter
59
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio
60
+	$(INSTALL_CFG) lib/perl/Kamailio/*.pm \
61
+		$(modules_prefix)/$(lib_dir)/perl/Kamailio
62
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio/LDAPUtils
63
+	$(INSTALL_CFG) lib/perl/Kamailio/LDAPUtils/*.pm \
64
+		$(modules_prefix)/$(lib_dir)/perl/Kamailio/LDAPUtils
65
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio/Utils
66
+	$(INSTALL_CFG) lib/perl/Kamailio/Utils/*.pm \
67
+		$(modules_prefix)/$(lib_dir)/perl/Kamailio/Utils
68
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio/VDB
69
+	$(INSTALL_CFG) lib/perl/Kamailio/VDB/*.pm \
70
+		$(modules_prefix)/$(lib_dir)/perl/Kamailio/VDB
71
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio/VDB/Adapter
72
+	$(INSTALL_CFG) lib/perl/Kamailio/VDB/Adapter/*.pm \
73
+		$(modules_prefix)/$(lib_dir)/perl/Kamailio/VDB/Adapter
74 74
 
75 75
 install-scripts: install-perl-scripts
76 76
 
Browse code

all: OPENSER_MOD_INTERFACE replaced with KAMAILIO_MOD_INTERFACE

- OPENSER_MOD_INTERFACE still works if used in module Makefile

Daniel-Constantin Mierla authored on 18/10/2012 13:46:13
Showing 1 changed files
... ...
@@ -22,7 +22,7 @@ endif
22 22
 DEFS+=$(PERLCCOPTS)
23 23
 
24 24
 
25
-DEFS+=-DOPENSER_MOD_INTERFACE
25
+DEFS+=-DKAMAILIO_MOD_INTERFACE
26 26
 
27 27
 SERLIBPATH=../../lib
28 28
 SER_LIBS+=$(SERLIBPATH)/kmi/kmi
Browse code

perl: install Perl libs along with module (cherry picked from commit 256423a131e3cf71f20591f3f9066b30bd036726)

Daniel-Constantin Mierla authored on 14/12/2009 09:19:38 • Andrei Pelinescu-Onciul committed on 15/01/2010 12:27:54
Showing 1 changed files
... ...
@@ -52,8 +52,8 @@ perlpod: doc/perl_pod.sgml
52 52
 doc/perl_pod.sgml: openserxs.xs
53 53
 	cat $(PODFILES) | pod2docbook --doctype=chapter --title='OpenSER Perl API' --no-header - doc/perl_pod.sgml
54 54
 
55
-install_module_custom:
56
-	echo "installing Perl OpenSER packages ..."
55
+install-perl-scripts:
56
+	echo "installing Perl Kamailio (OpenSER) packages ..."
57 57
 	mkdir -p $(modules_prefix)/$(lib_dir)/perl
58 58
 	$(INSTALL_CFG) lib/perl/*.pm $(modules_prefix)/$(lib_dir)/perl
59 59
 	mkdir -p $(modules_prefix)/$(lib_dir)/perl/OpenSER
... ...
@@ -72,3 +72,5 @@ install_module_custom:
72 72
 	$(INSTALL_CFG) lib/perl/OpenSER/VDB/Adapter/*.pm \
73 73
 		$(modules_prefix)/$(lib_dir)/perl/OpenSER/VDB/Adapter
74 74
 
75
+install-scripts: install-perl-scripts
76
+
Browse code

perl(k): makefile vars use '_' instead of '-'

Daniel-Constantin Mierla authored on 22/09/2009 13:37:52
Showing 1 changed files
... ...
@@ -54,21 +54,21 @@ doc/perl_pod.sgml: openserxs.xs
54 54
 
55 55
 install_module_custom:
56 56
 	echo "installing Perl OpenSER packages ..."
57
-	mkdir -p $(modules-prefix)/$(lib-dir)/perl
58
-	$(INSTALL_CFG) lib/perl/*.pm $(modules-prefix)/$(lib-dir)/perl
59
-	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER
57
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl
58
+	$(INSTALL_CFG) lib/perl/*.pm $(modules_prefix)/$(lib_dir)/perl
59
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/OpenSER
60 60
 	$(INSTALL_CFG) lib/perl/OpenSER/*.pm \
61
-		$(modules-prefix)/$(lib-dir)/perl/OpenSER
62
-	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER/LDAPUtils
61
+		$(modules_prefix)/$(lib_dir)/perl/OpenSER
62
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/OpenSER/LDAPUtils
63 63
 	$(INSTALL_CFG) lib/perl/OpenSER/LDAPUtils/*.pm \
64
-		$(modules-prefix)/$(lib-dir)/perl/OpenSER/LDAPUtils
65
-	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER/Utils
64
+		$(modules_prefix)/$(lib_dir)/perl/OpenSER/LDAPUtils
65
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/OpenSER/Utils
66 66
 	$(INSTALL_CFG) lib/perl/OpenSER/Utils/*.pm \
67
-		$(modules-prefix)/$(lib-dir)/perl/OpenSER/Utils
68
-	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER/VDB
67
+		$(modules_prefix)/$(lib_dir)/perl/OpenSER/Utils
68
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/OpenSER/VDB
69 69
 	$(INSTALL_CFG) lib/perl/OpenSER/VDB/*.pm \
70
-		$(modules-prefix)/$(lib-dir)/perl/OpenSER/VDB
71
-	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER/VDB/Adapter
70
+		$(modules_prefix)/$(lib_dir)/perl/OpenSER/VDB
71
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/OpenSER/VDB/Adapter
72 72
 	$(INSTALL_CFG) lib/perl/OpenSER/VDB/Adapter/*.pm \
73
-		$(modules-prefix)/$(lib-dir)/perl/OpenSER/VDB/Adapter
73
+		$(modules_prefix)/$(lib_dir)/perl/OpenSER/VDB/Adapter
74 74
 
Browse code

perl(k): fixed makefile

Andrei Pelinescu-Onciul authored on 22/04/2009 15:42:47
Showing 1 changed files
... ...
@@ -6,7 +6,7 @@
6 6
 # WARNING: do not run this directly, it should be run by the master Makefile
7 7
 
8 8
 include ../../Makefile.defs
9
-auto_gen=
9
+auto_gen=openserxs.c
10 10
 NAME=perl.so
11 11
 LIBS=
12 12
 
... ...
@@ -26,7 +26,6 @@ DEFS+=-DOPENSER_MOD_INTERFACE
26 26
 
27 27
 SERLIBPATH=../../lib
28 28
 SER_LIBS+=$(SERLIBPATH)/kmi/kmi
29
-include ../../Makefile.modules
30 29
 
31 30
 PODFILES=openserxs.xs `find lib/perl -name *.pm`
32 31
 
... ...
@@ -37,21 +36,16 @@ ifeq ($(TYPEMAP),)
37 36
 	TYPEMAP=$(PERLLIBPATH)/ExtUtils/typemap
38 37
 endif
39 38
 
39
+include ../../Makefile.modules
40
+
40 41
 perl.d: openserxs.o
41 42
 perl.o: perl.c openserxs.o
42 43
 
43
-openserxs.o: openserxs.c openserxs.d
44
-	$(CC) $(MOD_CFLAGS) -Wno-unused $(DEFS) -c -o openserxs.o openserxs.c
44
+openserxs.o: CFLAGS+=-Wno-unused
45 45
 
46 46
 openserxs.c: openserxs.xs typemap
47 47
 	xsubpp -typemap $(TYPEMAP) -typemap typemap openserxs.xs > openserxs.c
48 48
 
49
-clean:	clean-special
50
-
51
-.PHONY: clean-special
52
-clean-special:
53
-	rm -f openserxs.c openserxs.o openserxs.d
54
-
55 49
 .PHONY: perlpod
56 50
 perlpod: doc/perl_pod.sgml
57 51
 
Browse code

Fix perl compilation problem.

Adding the output of the perl subcommand enclosed in `` causes the value
of saved DEFS to be different than the value in the makefile and this
results in a never-ending compilation loop. Instead of that we save the
output of the perl subcommand in PERLCCOPTS and then add the value of
PERLCCOPTS to DEFS.

Suggested by Andrei.

Jan Janak authored on 16/03/2009 14:49:50
Showing 1 changed files
... ...
@@ -17,10 +17,9 @@ else
17 17
 endif
18 18
 
19 19
 ifeq ($(PERLCCOPTS),)
20
-	DEFS+=`perl -MExtUtils::Embed -e ccopts`
21
-else
22
-	DEFS+=$(PERLCCOPTS)
20
+	PERLCCOPTS=$(shell perl -MExtUtils::Embed -e ccopts)
23 21
 endif
22
+DEFS+=$(PERLCCOPTS)
24 23
 
25 24
 
26 25
 DEFS+=-DOPENSER_MOD_INTERFACE
Browse code

Update module to use libkmi

This patch updates the module to link with the shared library libkmi
which contains the management interface from kamailio and fixes
paths to headers in that library.

Jan Janak authored on 03/03/2009 14:12:10
Showing 1 changed files
... ...
@@ -25,6 +25,8 @@ endif
25 25
 
26 26
 DEFS+=-DOPENSER_MOD_INTERFACE
27 27
 
28
+SERLIBPATH=../../lib
29
+SER_LIBS+=$(SERLIBPATH)/kmi/kmi
28 30
 include ../../Makefile.modules
29 31
 
30 32
 PODFILES=openserxs.xs `find lib/perl -name *.pm`
Browse code

Define OPENSER_MOD_INTERFACE in Makefile.

This patch adds -DOPENSER_MOD_INTERFACE to the modules Makefile, this
is needed to make Kamailio modules compile with the sip router core.

Jan Janak authored on 03/03/2009 12:33:13
Showing 1 changed files
... ...
@@ -23,6 +23,8 @@ else
23 23
 endif
24 24
 
25 25
 
26
+DEFS+=-DOPENSER_MOD_INTERFACE
27
+
26 28
 include ../../Makefile.modules
27 29
 
28 30
 PODFILES=openserxs.xs `find lib/perl -name *.pm`
Browse code

Do not link against libs we do not use symbols from

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4528 689a6050-402a-0410-94f2-e92a70836424

Dan Pascu authored on 31/07/2008 19:11:38
Showing 1 changed files
... ...
@@ -8,6 +8,7 @@
8 8
 include ../../Makefile.defs
9 9
 auto_gen=
10 10
 NAME=perl.so
11
+LIBS=
11 12
 
12 13
 ifeq ($(PERLLDOPTS),)
13 14
 	LIBS+=`perl -MExtUtils::Embed -e ldopts`
Browse code

Adding the new Perl Virtual Database which can relay database requests to Perl functions. Please see module documentation for further information.

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1992 689a6050-402a-0410-94f2-e92a70836424

Bastian Friedrich authored on 12/04/2007 16:13:07
Showing 1 changed files
... ...
@@ -67,4 +67,10 @@ install_module_custom:
67 67
 	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER/Utils
68 68
 	$(INSTALL_CFG) lib/perl/OpenSER/Utils/*.pm \
69 69
 		$(modules-prefix)/$(lib-dir)/perl/OpenSER/Utils
70
+	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER/VDB
71
+	$(INSTALL_CFG) lib/perl/OpenSER/VDB/*.pm \
72
+		$(modules-prefix)/$(lib-dir)/perl/OpenSER/VDB
73
+	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER/VDB/Adapter
74
+	$(INSTALL_CFG) lib/perl/OpenSER/VDB/Adapter/*.pm \
75
+		$(modules-prefix)/$(lib-dir)/perl/OpenSER/VDB/Adapter
70 76
 
Browse code

- fixed name of exported make variables ( unsupported '-' replaced with '_') Closes 1689986. Thanks to anonymous reporter!

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1938 689a6050-402a-0410-94f2-e92a70836424

Bogdan-Andrei Iancu authored on 02/04/2007 14:35:02
Showing 1 changed files
... ...
@@ -57,14 +57,14 @@ doc/perl_pod.sgml: openserxs.xs
57 57
 install_module_custom:
58 58
 	echo "installing Perl OpenSER packages ..."
59 59
 	mkdir -p $(modules-prefix)/$(lib-dir)/perl
60
-	$(INSTALL-CFG) lib/perl/*.pm $(modules-prefix)/$(lib-dir)/perl
60
+	$(INSTALL_CFG) lib/perl/*.pm $(modules-prefix)/$(lib-dir)/perl
61 61
 	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER
62
-	$(INSTALL-CFG) lib/perl/OpenSER/*.pm \
62
+	$(INSTALL_CFG) lib/perl/OpenSER/*.pm \
63 63
 		$(modules-prefix)/$(lib-dir)/perl/OpenSER
64 64
 	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER/LDAPUtils
65
-	$(INSTALL-CFG) lib/perl/OpenSER/LDAPUtils/*.pm \
65
+	$(INSTALL_CFG) lib/perl/OpenSER/LDAPUtils/*.pm \
66 66
 		$(modules-prefix)/$(lib-dir)/perl/OpenSER/LDAPUtils
67 67
 	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER/Utils
68
-	$(INSTALL-CFG) lib/perl/OpenSER/Utils/*.pm \
68
+	$(INSTALL_CFG) lib/perl/OpenSER/Utils/*.pm \
69 69
 		$(modules-prefix)/$(lib-dir)/perl/OpenSER/Utils
70 70
 
Browse code

- install openser perl packages

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1783 689a6050-402a-0410-94f2-e92a70836424

Daniel-Constantin Mierla authored on 09/03/2007 14:51:26
Showing 1 changed files
... ...
@@ -22,7 +22,6 @@ else
22 22
 endif
23 23
 
24 24
 
25
-
26 25
 include ../../Makefile.modules
27 26
 
28 27
 PODFILES=openserxs.xs `find lib/perl -name *.pm`
... ...
@@ -54,3 +53,18 @@ perlpod: doc/perl_pod.sgml
54 53
 
55 54
 doc/perl_pod.sgml: openserxs.xs
56 55
 	cat $(PODFILES) | pod2docbook --doctype=chapter --title='OpenSER Perl API' --no-header - doc/perl_pod.sgml
56
+
57
+install_module_custom:
58
+	echo "installing Perl OpenSER packages ..."
59
+	mkdir -p $(modules-prefix)/$(lib-dir)/perl
60
+	$(INSTALL-CFG) lib/perl/*.pm $(modules-prefix)/$(lib-dir)/perl
61
+	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER
62
+	$(INSTALL-CFG) lib/perl/OpenSER/*.pm \
63
+		$(modules-prefix)/$(lib-dir)/perl/OpenSER
64
+	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER/LDAPUtils
65
+	$(INSTALL-CFG) lib/perl/OpenSER/LDAPUtils/*.pm \
66
+		$(modules-prefix)/$(lib-dir)/perl/OpenSER/LDAPUtils
67
+	mkdir -p $(modules-prefix)/$(lib-dir)/perl/OpenSER/Utils
68
+	$(INSTALL-CFG) lib/perl/OpenSER/Utils/*.pm \
69
+		$(modules-prefix)/$(lib-dir)/perl/OpenSER/Utils
70
+
Browse code

Adding environment variables to Makefile to support cross compilation

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1778 689a6050-402a-0410-94f2-e92a70836424

Bastian Friedrich authored on 09/03/2007 10:00:29
Showing 1 changed files
... ...
@@ -8,15 +8,31 @@
8 8
 include ../../Makefile.defs
9 9
 auto_gen=
10 10
 NAME=perl.so
11
-LIBS+=`perl -MExtUtils::Embed -e ldopts`
12
-DEFS+=`perl -MExtUtils::Embed -e ccopts`
11
+
12
+ifeq ($(PERLLDOPTS),)
13
+	LIBS+=`perl -MExtUtils::Embed -e ldopts`
14
+else
15
+	LIBS+=$(PERLLDOPTS)
16
+endif
17
+
18
+ifeq ($(PERLCCOPTS),)
19
+	DEFS+=`perl -MExtUtils::Embed -e ccopts`
20
+else
21
+	DEFS+=$(PERLCCOPTS)
22
+endif
23
+
24
+
13 25
 
14 26
 include ../../Makefile.modules
15 27
 
16 28
 PODFILES=openserxs.xs `find lib/perl -name *.pm`
17 29
 
18
-PERLLIBPATH=`perl -MConfig -e 'print $$Config{installprivlib}'`
19
-TYPEMAP=$(PERLLIBPATH)/ExtUtils/typemap
30
+ifeq ($(TYPEMAP),)
31
+	ifeq ($(PERLLIBPATH),)
32
+		PERLLIBPATH=`perl -MConfig -e 'print $$Config{installprivlib}'`
33
+	endif
34
+	TYPEMAP=$(PERLLIBPATH)/ExtUtils/typemap
35
+endif
20 36
 
21 37
 perl.d: openserxs.o
22 38
 perl.o: perl.c openserxs.o
Browse code

Fixing Makefile to use MOD_CFLAGS while compiling openserxs.c. Needed on x86-64

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1445 689a6050-402a-0410-94f2-e92a70836424

Bastian Friedrich authored on 21/12/2006 14:15:59
Showing 1 changed files
... ...
@@ -22,7 +22,7 @@ perl.d: openserxs.o
22 22
 perl.o: perl.c openserxs.o
23 23
 
24 24
 openserxs.o: openserxs.c openserxs.d
25
-	$(CC) $(DEFS) -c -o openserxs.o openserxs.c
25
+	$(CC) $(MOD_CFLAGS) -Wno-unused $(DEFS) -c -o openserxs.o openserxs.c
26 26
 
27 27
 openserxs.c: openserxs.xs typemap
28 28
 	xsubpp -typemap $(TYPEMAP) -typemap typemap openserxs.xs > openserxs.c
Browse code

Initial import of Perl module.

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1341 689a6050-402a-0410-94f2-e92a70836424

Bastian Friedrich authored on 08/12/2006 14:56:06
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,40 @@
1
+# $Id$
2
+#
3
+# perl module makefile
4
+#
5
+# 
6
+# WARNING: do not run this directly, it should be run by the master Makefile
7
+
8
+include ../../Makefile.defs
9
+auto_gen=
10
+NAME=perl.so
11
+LIBS+=`perl -MExtUtils::Embed -e ldopts`
12
+DEFS+=`perl -MExtUtils::Embed -e ccopts`
13
+
14
+include ../../Makefile.modules
15
+
16
+PODFILES=openserxs.xs `find lib/perl -name *.pm`
17
+
18
+PERLLIBPATH=`perl -MConfig -e 'print $$Config{installprivlib}'`
19
+TYPEMAP=$(PERLLIBPATH)/ExtUtils/typemap
20
+
21
+perl.d: openserxs.o
22
+perl.o: perl.c openserxs.o
23
+
24
+openserxs.o: openserxs.c openserxs.d
25
+	$(CC) $(DEFS) -c -o openserxs.o openserxs.c
26
+
27
+openserxs.c: openserxs.xs typemap
28
+	xsubpp -typemap $(TYPEMAP) -typemap typemap openserxs.xs > openserxs.c
29
+
30
+clean:	clean-special
31
+
32
+.PHONY: clean-special
33
+clean-special:
34
+	rm -f openserxs.c openserxs.o openserxs.d
35
+
36
+.PHONY: perlpod
37
+perlpod: doc/perl_pod.sgml
38
+
39
+doc/perl_pod.sgml: openserxs.xs
40
+	cat $(PODFILES) | pod2docbook --doctype=chapter --title='OpenSER Perl API' --no-header - doc/perl_pod.sgml