[MacPorts] #17216: cgilib port enhancement
MacPorts
noreply at macports.org
Wed Nov 12 18:07:21 PST 2008
#17216: cgilib port enhancement
----------------------------+-----------------------------------------------
Reporter: mike at flyn.org | Owner: macports-tickets at lists.macosforge.org
Type: enhancement | Status: new
Priority: Normal | Milestone: Port Enhancements
Component: ports | Version: 1.6.0
Resolution: | Keywords:
Port: |
----------------------------+-----------------------------------------------
Comment(by mike at flyn.org):
cgilib-autotools.patch
{{{
diff -u --recursive --new-file ../cgilib-0.6-vanilla/configure.ac
./configure.ac
--- ../cgilib-0.6-vanilla/configure.ac 1969-12-31 19:00:00.000000000
-0500
+++ ./configure.ac 2008-11-12 19:27:37.000000000 -0500
@@ -0,0 +1,9 @@
+AC_INIT(cgi.c)
+
+AM_INIT_AUTOMAKE(cgilib, 0.6)
+
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_LIBTOOL
+
+AC_OUTPUT(Makefile)
diff -u --recursive --new-file ../cgilib-0.6-vanilla/Makefile ./Makefile
--- ../cgilib-0.6-vanilla/Makefile 2008-11-12 19:27:31.000000000
-0500
+++ ./Makefile 1969-12-31 19:00:00.000000000 -0500
@@ -1,46 +0,0 @@
-# Copyright (c) 1998,9,2001,7,8 by Martin Schulze <joey at infodrom.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
Foundation
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-CFLAGS = -Wall -O2 -g
-IFLAGS = -I.
-LDFLAGS = -L.
-#LIBS = -lcgi
-
-OBJS = cgi.o cookies.o aux.o
-
-CC += $(IFLAGS)
-
-libcgi.a: $(OBJS)
- ar rc $@ $^
-
-cgitest: cgitest.o libcgi.a
- $(CC) $(CFLAGS) $(IFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
-
-jumpto: jumpto.o libcgi.a
- $(CC) $(CFLAGS) $(IFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
-
-all: libcgi.a cgitest jumpto
-
-install: cgitest
- install -m 755 cgitest /usr/lib/cgi-bin
-
-clean:
- rm -f cgitest cgitest.o jumpto jumpto.o libcgi.a $(OBJS)
*.[35].html
-
-htmlman:
- for f in *.[35]; do \
- man -l $$f|rman -f HTML --title $$f -r "%s.%s.html" > $$f.html;
\
- done
diff -u --recursive --new-file ../cgilib-0.6-vanilla/Makefile.am
./Makefile.am
--- ../cgilib-0.6-vanilla/Makefile.am 1969-12-31 19:00:00.000000000
-0500
+++ ./Makefile.am 2008-11-12 19:27:37.000000000 -0500
@@ -0,0 +1,32 @@
+
+# Copyright (c) 1998,9,2001,7,8 by Martin Schulze <joey at infodrom.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
Foundation
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+lib_LTLIBRARIES = libcgi.la
+
+libcgi_la_SOURCES = cgi.c cookies.c aux.c
+
+bin_PROGRAMS = cgitest jumpto
+
+cgitest_SOURCES = cgitest.c
+cgitest_LDADD = libcgi.la
+
+jumpto_SOURCES = cgitest.c
+jumpto_LDADD = libcgi.la
+
+include_HEADERS = aux.h cgi.h
+
+man_MANS = cgi.5 cgiDebug.3 cgiEscape.3 cgiFree.3 cgiFreeList.3
cgiGetCookie.3 cgiGetCookies.3 cgiGetFile.3 cgiGetFiles.3 cgiGetValue.3
cgiGetVariables.3 cgiHeader.3 cgiInit.3 cgiRedirect.3 cgiSetHeader.3
cgiSetType.3
}}}
--
Ticket URL: <http://trac.macports.org/ticket/17216#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list