Dear Monks,
I am currently working on a perl module to allow a direct interface with the a speech synth engine, and due to my need for portability and multi language use so that it is easily portable and usable by members of the blind computer using community I am forced to use swig for this.
However a very important thing escapes my grasp, and after extensive searching on the web, through google, and even the perl manual pages I can not find information on gluing the 2 together.
First of all, the perl manuals talk of many things, all as if I understand it already and as such they are of no use to me due to my own ignorance; and the swig documentation doesn’t even touch the makefile.pl format needed for a swig generated project, instead using a bash command line script that works, but does not seem like the perl way to me; I wish to know the perl way, but the format to convert my humble shell script into a makefile.pl as well as test and install the package, without pages of information I don’t need, is unfound, or at least hidden behind my ignorance.
The script that creates my code, in shell script form is as follows:
#!/bin/bash
swig -perl5 say.i
gcc say.c say_wrap.c -fpic -c -I/usr/local/include/flite -L/usr/local/
+lib/ -I/usr/lib/perl5/5.8.0/i386-linux/CORE
ld -G say.o say_wrap.o -lflite_cmu_us_kal -lflite_usenglish -lflite_cm
+ulex -lflite -lm -o say.so
Could somone please help me understand what must be done to convert this into a makefile.pl? Once its done I plan on adding the info to the swig wiki so no one else has to go through this.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.