diff options
Diffstat (limited to 'www/cgic/patches/patch-aa')
-rw-r--r-- | www/cgic/patches/patch-aa | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/www/cgic/patches/patch-aa b/www/cgic/patches/patch-aa index 12168fe243d..bb9027a850a 100644 --- a/www/cgic/patches/patch-aa +++ b/www/cgic/patches/patch-aa @@ -1,29 +1,26 @@ -$NetBSD: patch-aa,v 1.1.1.1 2004/07/20 21:44:29 jmmv Exp $ +$NetBSD: patch-aa,v 1.2 2006/01/06 22:46:51 adam Exp $ ---- Makefile.orig Sun Jan 12 13:59:43 2003 +--- Makefile.orig 2005-12-16 15:52:31.000000000 +0100 +++ Makefile -@@ -1,27 +1,42 @@ +@@ -1,29 +1,38 @@ -CFLAGS=-g -Wall -+CFLAGS += -g -Wall - CC=gcc - AR=ar +-CC=gcc +-AR=ar +-RANLIB=ranlib -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 - +- $(RANLIB) libcgic.a +- -#mingw32 and cygwin users: replace .cgi with .exe - -cgictest.cgi: cgictest.o libcgic.a @@ -31,13 +28,21 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/07/20 21:44:29 jmmv Exp $ - -capture: capture.o libcgic.a - gcc capture.o -o capture ${LIBS} +- ++CFLAGS+= -Wall ++LIBS= libcgic.la ++OBJS= cgic.o ++ ++all: libcgic.la cgictest capture ++ ++.SUFFIXES: .lo ++ +.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 ++ -rpath ${PREFIX}/lib -version-info 0:0 + +cgictest: cgictest.lo libcgic.la + ${LIBTOOL} --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ cgictest.lo $(LIBS) @@ -50,15 +55,15 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/07/20 21:44:29 jmmv Exp $ + -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 ++ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libcgic.la ${PREFIX}/lib ++ ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} capture ${PREFIX}/libexec/cgi-bin ++ ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} 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 |