diff options
author | jseger <jseger@FreeBSD.org> | 1998-06-14 12:38:56 +0000 |
---|---|---|
committer | jseger <jseger@FreeBSD.org> | 1998-06-14 12:38:56 +0000 |
commit | 8b89ad1f9cc83c215becdd27f10d3a6e9172b7b0 (patch) | |
tree | 816baa3c84a27bf0751576ce297549a427849864 /www/cgihtml | |
parent | 113cb921009e95977e6ae476b19628151b62a950 (diff) | |
download | FreeBSD-ports-8b89ad1f9cc83c215becdd27f10d3a6e9172b7b0.zip FreeBSD-ports-8b89ad1f9cc83c215becdd27f10d3a6e9172b7b0.tar.gz |
Import of a port of cgihtml:
Cgihtml is a C library that simplifies the task of parsing World Wide Web
(WWW) Common Gateway Interface (CGI) input and outputting HyperText Markup
Language (HTML). Tasks which would normally require many lines of C can be
reduced to just a few.
PR: ports/4933
Submitted by: i.vaudrey@bigfoot.com
Diffstat (limited to 'www/cgihtml')
-rw-r--r-- | www/cgihtml/Makefile | 30 | ||||
-rw-r--r-- | www/cgihtml/distinfo | 1 | ||||
-rw-r--r-- | www/cgihtml/files/Makefile | 55 | ||||
-rw-r--r-- | www/cgihtml/pkg-comment | 1 | ||||
-rw-r--r-- | www/cgihtml/pkg-descr | 4 | ||||
-rw-r--r-- | www/cgihtml/pkg-plist | 19 |
6 files changed, 110 insertions, 0 deletions
diff --git a/www/cgihtml/Makefile b/www/cgihtml/Makefile new file mode 100644 index 0000000..bcb1cb7 --- /dev/null +++ b/www/cgihtml/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: cgihtml +# Version required: 1.69 +# Date created: 3 Nov 1997 +# Whom: Ian Vaudrey <i.vaudrey@bigfoot.com> +# +# $Id$ +# + +DISTNAME= cgihtml-1.69 +CATEGORIES= devel www +MASTER_SITES= ftp://ftp.eekim.com/users/eekim/cgihtml/ + +MAINTAINER= i.vaudrey@bigfoot.com + +NO_CONFIGURE= yes + +post-extract: + @${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.dist + @${CP} ${FILESDIR}/Makefile ${WRKSRC} + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/cgihtml/html +.for file in CHANGES CREDITS + ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/cgihtml +.endfor + ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${PREFIX}/share/doc/cgihtml/html +.endif + +.include <bsd.port.mk> diff --git a/www/cgihtml/distinfo b/www/cgihtml/distinfo new file mode 100644 index 0000000..447c34b --- /dev/null +++ b/www/cgihtml/distinfo @@ -0,0 +1 @@ +MD5 (cgihtml-1.69.tar.gz) = 9c6c26aab86bbee9581ccd26b58726bf diff --git a/www/cgihtml/files/Makefile b/www/cgihtml/files/Makefile new file mode 100644 index 0000000..d5a528d --- /dev/null +++ b/www/cgihtml/files/Makefile @@ -0,0 +1,55 @@ +# Makefile for cgihtml libraries + +CFLAGS= -O #-DUPLOADDIR='"/tmp"' +LIB = cgihtml +SHLIB_VER = 1.0 + +OBJS = string-lib.o cgi-llist.o cgi-lib.o html-lib.o +HDRS = ${OBJS:.o=.h} +SRCS = ${OBJS:.o=.c} +SOBJS = ${OBJS:.o=.so} + +.SUFFIXES: +.SUFFIXES: .o .so .c + +.c.o: + ${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} + @${LD} -O ${.TARGET} -x -r ${.TARGET} + +.c.so: + ${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} + @${LD} -O ${.TARGET} -x -r ${.TARGET} + +lib${LIB}.a: ${OBJS} + @${ECHO} building standard ${LIB} library + @rm -f ${.TARGET} + @${AR} cr ${.TARGET} `lorder ${OBJS} | tsort -q` + ${RANLIB} ${.TARGET} + +lib${LIB}.so.${SHLIB_VER}: ${SOBJS} + @${ECHO} building shared ${LIB} library \(version ${SHLIB_VER}\) + @rm -f ${.TARGET} + ${CC} -shared -Wl,-x -o ${.TARGET} `lorder ${SOBJS} | tsort -q` + +all: depend lib${LIB}.a lib${LIB}.so.${SHLIB_VER} + +install: + @mkdir -p ${PREFIX}/lib + @mkdir -p ${PREFIX}/include + ${INSTALL} -c -m 644 lib${LIB}.a ${PREFIX}/lib + ${RANLIB} -t ${PREFIX}/lib/lib${LIB}.a + ${INSTALL} -c -m 644 lib${LIB}.so.${SHLIB_VER} ${PREFIX}/lib + /sbin/ldconfig -m ${PREFIX}/lib +.for file in ${HDRS} + ${INSTALL} -c -m 644 ${file} ${PREFIX}/include +.endfor + +clean: + rm -f *.o *.so lib${LIB}.a lib${LIB}.so.${SHLIB_VER} + +distclean: clean + rm -f .depend + +depend: + mkdep ${CFLAGS} ${SRCS} + diff --git a/www/cgihtml/pkg-comment b/www/cgihtml/pkg-comment new file mode 100644 index 0000000..80f4f0d --- /dev/null +++ b/www/cgihtml/pkg-comment @@ -0,0 +1 @@ +Library that simplifies the task of writing CGI programs in C. diff --git a/www/cgihtml/pkg-descr b/www/cgihtml/pkg-descr new file mode 100644 index 0000000..ca8fee9 --- /dev/null +++ b/www/cgihtml/pkg-descr @@ -0,0 +1,4 @@ +Cgihtml is a C library that simplifies the task of parsing World Wide Web +(WWW) Common Gateway Interface (CGI) input and outputting HyperText Markup +Language (HTML). Tasks which would normally require many lines of C can be +reduced to just a few. diff --git a/www/cgihtml/pkg-plist b/www/cgihtml/pkg-plist new file mode 100644 index 0000000..944f7a2 --- /dev/null +++ b/www/cgihtml/pkg-plist @@ -0,0 +1,19 @@ +include/cgi-lib.h +include/cgi-llist.h +include/html-lib.h +include/string-lib.h +lib/libcgihtml.a +lib/libcgihtml.so.1.0 +@exec /sbin/ldconfig -m %B +share/doc/cgihtml/CHANGES +share/doc/cgihtml/CREDITS +share/doc/cgihtml/html/cgihtml-1.html +share/doc/cgihtml/html/cgihtml-2.html +share/doc/cgihtml/html/cgihtml-3.html +share/doc/cgihtml/html/cgihtml-4.html +share/doc/cgihtml/html/cgihtml-5.html +share/doc/cgihtml/html/cgihtml-6.html +share/doc/cgihtml/html/cgihtml-7.html +share/doc/cgihtml/html/cgihtml.html +@dirrm share/doc/cgihtml/html +@dirrm share/doc/cgihtml |