mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 17:36:28 -04:00
27 lines
1 KiB
Text
27 lines
1 KiB
Text
--- extconf.rb.orig Wed Aug 18 08:38:36 1999
|
|
+++ extconf.rb Wed Aug 9 20:24:40 2000
|
|
@@ -4,19 +4,19 @@
|
|
|
|
## Encoding maps may be stored in $perl_archlib/XML/Parser/Encodins/
|
|
#perl_archlib = '/usr/lib/perl5/site_perl/5.005/i586-linux'
|
|
-perl_archlib = '/usr/local/lib'
|
|
+perl_archlib = '%%PERL_ARCHLIB%%'
|
|
xml_enc_path = perl_archlib + "/XML/Parser/Encodings"
|
|
|
|
##$CFLAGS="-I#{cwd}/expat/xmlparse -I#{cwd}/expat/xmltok" +
|
|
## ' -DXML_ENC_PATH=getenv\(\"XML_ENC_PATH\"\)' +
|
|
## " -DNEW_EXPAT"
|
|
-$CFLAGS="-I#{cwd}/expat/xmlparse -I#{cwd}/expat/xmltok" +
|
|
+$CFLAGS="-I#{CONFIG['prefix']}/include/xml" +
|
|
" -DXML_ENC_PATH=\\\"#{xml_enc_path}\\\""
|
|
-$LDFLAGS="-L#{cwd}/expat"
|
|
+$LDFLAGS="-L#{CONFIG['prefix']}/lib"
|
|
|
|
if have_header("xmlparse.h")
|
|
- if have_library("xmltok", "XML_ParserCreate")
|
|
-# if have_library("expat", "XML_ParserCreate")
|
|
+# if have_library("xmltok", "XML_ParserCreate")
|
|
+ if have_library("expat", "XML_ParserCreate")
|
|
if have_func("XML_SetNotStandaloneHandler")
|
|
$CFLAGS += " -DNEW_EXPAT"
|
|
end
|