Hi,

For the package bio-emboss-pm that I maintain, the Makefile.PL contains the following section:

# --- Change the following lines only, if EMBOSS libraries
#     or EMBOSS includes weren't found.
#
#     $EMB_LIBS: The nucleus, ajaxg, ajax and plplot libraries are taken
#                from the lib/ subdirectory in $EMB_ROOT by default.
#     $EMB_INC:  The *.h files are taken from the subdirectories
#                nucleus, ajax and plplot in $EMB_SRC_ROOT by default.
#
@emb_libs = qw(nucleus ajax ajaxg plplot);

$EMB_LIBS = "-L$EMB_ROOT/lib " .
            join (" ", map { "-l$_" } @emb_libs) .
           " " . $EMB_EXT_LIBS;
$EMB_INC =  join " ", map { "-I$EMB_SRC_ROOT/$_" } @emb_libs;


$EMB_SRC_ROOT is defined earlier as /%p/include/EMBOSS, which is where emboss-dev installs its files (without the subdirectories).


During compilation I get an error that the file /sw/include/EMBOSS/emboss.h can't be found. I think because the makefile looks for

/sw/include/EMBOSS/nucleus/emboss.h instead of /sw/include/EMBOSS/emboss.h


So I added this line to my PatchScript to change the line above ( to $EMB_INC = $EMB_SRC_ROOT):



perl -pi.bak -e 's|join " ", map { "-I$EMB_SRC_ROOT/$_" } @emb_libs;|$EMB_SRC_ROOT;|' Makefile.PL



but that resulted in the following error:

Unmatched ( in regex; marked by <-- HERE in m/join " ", map { "-I/# ( <-- HERE if you did no "make install" of EMBOSS,
" } ;/ at -e line 1, <> line 11.
### execution of perl failed, exit code 255



I just know a little bit of perl, so if anyone sees what i did wrong, please let me know.


thanks,

- Koen.



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to