diff options
Diffstat (limited to 'www/cgic/patches/patch-aa')
-rw-r--r-- | www/cgic/patches/patch-aa | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/www/cgic/patches/patch-aa b/www/cgic/patches/patch-aa new file mode 100644 index 00000000000..12168fe243d --- /dev/null +++ b/www/cgic/patches/patch-aa @@ -0,0 +1,65 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/07/20 21:44:29 jmmv Exp $ + +--- Makefile.orig Sun Jan 12 13:59:43 2003 ++++ Makefile +@@ -1,27 +1,42 @@ +-CFLAGS=-g -Wall ++CFLAGS += -g -Wall + CC=gcc + AR=ar +-LIBS=-L./ -lcgic ++LIBS = libcgic.la + +-all: libcgic.a cgictest.cgi capture ++OBJS = cgic.o + +-install: libcgic.a +- cp libcgic.a /usr/local/lib +- cp cgic.h /usr/local/include +- @echo libcgic.a is in /usr/local/lib. cgic.h is in /usr/local/include. ++all: libcgic.la cgictest capture + +-libcgic.a: cgic.o cgic.h +- rm -f libcgic.a +- $(AR) rc libcgic.a cgic.o ++.SUFFIXES: .lo + +-#mingw32 and cygwin users: replace .cgi with .exe +- +-cgictest.cgi: cgictest.o libcgic.a +- gcc cgictest.o -o cgictest.cgi ${LIBS} +- +-capture: capture.o libcgic.a +- gcc capture.o -o capture ${LIBS} ++.c.lo: ++ ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -o $@ -c $< ++ ++libcgic.la: $(OBJS:.o=.lo) ++ ${LIBTOOL} --mode=link ${CC} -o $@ ${OBJS:.o=.lo} \ ++ -rpath ${PREFIX}/lib \ ++ -version-info 0:0 ++ ++cgictest: cgictest.lo libcgic.la ++ ${LIBTOOL} --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ cgictest.lo $(LIBS) ++ ++capture: capture.lo libcgic.la ++ ${LIBTOOL} --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ cgictest.lo $(LIBS) ++ ++install: libcgic.la cgictest ++ -mkdir -p ${PREFIX}/libexec/cgi-bin ++ -mkdir -p ${PREFIX}/share/examples/cgiclib ++ ${INSTALL} -c -m 444 capture.c ${PREFIX}/share/examples/cgiclib ++ ${INSTALL} -c -m 444 cgictest.c ${PREFIX}/share/examples/cgiclib ++ ${LIBTOOL} --mode=install ${INSTALL} -c -m 444 libcgic.la ${PREFIX}/lib ++ ${LIBTOOL} --mode=install ${INSTALL} -c -m 755 capture ${PREFIX}/libexec/cgi-bin ++ ${LIBTOOL} --mode=install ${INSTALL} -c -m 755 cgictest ${PREFIX}/libexec/cgi-bin ++ ${INSTALL} -c -m 444 cgic.h ${PREFIX}/include ++ -mkdir -p ${PREFIX}/share/doc/html/cgiclib ++ for i in *.html; do \ ++ ${INSTALL} -c -m 444 $$i ${PREFIX}/share/doc/html/cgiclib ; \ ++ done + + clean: +- rm -f *.o *.a cgictest.cgi capture ++ rm -f *.o *.la cgictest capture + |