mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
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
This commit is contained in:
parent
7e09fa2850
commit
884e75e94d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=11421
30
www/cgihtml/Makefile
Normal file
30
www/cgihtml/Makefile
Normal file
@ -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>
|
1
www/cgihtml/distinfo
Normal file
1
www/cgihtml/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (cgihtml-1.69.tar.gz) = 9c6c26aab86bbee9581ccd26b58726bf
|
55
www/cgihtml/files/Makefile
Normal file
55
www/cgihtml/files/Makefile
Normal file
@ -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}
|
||||
|
1
www/cgihtml/pkg-comment
Normal file
1
www/cgihtml/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Library that simplifies the task of writing CGI programs in C.
|
4
www/cgihtml/pkg-descr
Normal file
4
www/cgihtml/pkg-descr
Normal file
@ -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.
|
19
www/cgihtml/pkg-plist
Normal file
19
www/cgihtml/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user