#17216: cgilib port enhancement ----------------------------+----------------------------------------------- Reporter: mike@flyn.org | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: | ----------------------------+----------------------------------------------- Comment(by mike@flyn.org): Trac doesn't seem to be accepting attachments. Here is Portfile- cgilib.patch: --- Portfile.orig 2008-05-16 17:23:36.000000000 -0400 +++ Portfile 2008-11-12 20:46:53.000000000 -0500 @@ -5,7 +5,7 @@ name cgilib version 0.6 categories www devel -maintainers nomaintainer +maintainers mikep description CGI Library @@ -21,19 +21,19 @@ master_sites http://www.infodrom.org/projects/cgilib/download/ checksums md5 392f00a4ce90426606efcb6ce705fd75 -use_configure no -build.target "" -build.args CFLAGS="-O3 -fPIC -I." -post-build { - system "ranlib ${worksrcpath}/libcgi.a" -} +patchfiles cgilib-autotools.patch \ + cgilib-strndup.patch -destroot.args INSTALL_OPTS_LIB='-m 644 -p' -destroot { - xinstall -d -m 755 ${destroot}${prefix}/include \ - ${destroot}${prefix}/lib ${destroot}${prefix}/man/man3 - eval xinstall -m 644 [glob ${worksrcpath}/*.h] ${destroot}${prefix}/include - eval xinstall -m 755 [glob ${worksrcpath}/libcgi*] ${destroot}${prefix}/lib - eval xinstall -m 755 [glob ${worksrcpath}/*.3] ${destroot}${prefix}/share/man/man3 +pre-configure { + # Need to do this manually because of ordering of libtoolize + exec aclocal + exec libtoolize --force + # No idea why exec does not work here. Execution stops after + # automake as if it exits with non-zero, but I confirmed that + # it is exiting with 0. + open "| automake --add-missing --foreign" + exec autoconf + # Patch leaves configure as non-executable. + exec chmod +x configure } -- Ticket URL: <http://trac.macports.org/ticket/17216#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS