summaryrefslogtreecommitdiff
path: root/www/cgilib/patches
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-03-14 20:41:19 +0000
committertv <tv@pkgsrc.org>2005-03-14 20:41:19 +0000
commitdabb23108d1e147662246d6c7242934811844109 (patch)
treea11d9a835eec7bc3d30f547afd7c0adeafc4582b /www/cgilib/patches
parent1769e33d29aabf770ea4e54eecbe78d14826f19b (diff)
downloadpkgsrc-dabb23108d1e147662246d6c7242934811844109.tar.gz
This doesn't need nroff or rman, neither of which are present by default on
some systems. Since the manpages are distributed as ... manpages, install them as (...drum roll please...) manpages! Also fix permissions by using BSD_INSTALL_* macros.
Diffstat (limited to 'www/cgilib/patches')
-rw-r--r--www/cgilib/patches/patch-ab48
1 files changed, 22 insertions, 26 deletions
diff --git a/www/cgilib/patches/patch-ab b/www/cgilib/patches/patch-ab
index 418f71a8850..9074fb9c63b 100644
--- a/www/cgilib/patches/patch-ab
+++ b/www/cgilib/patches/patch-ab
@@ -1,14 +1,12 @@
-$NetBSD: patch-ab,v 1.7 2002/12/27 14:36:02 cjep Exp $
+$NetBSD: patch-ab,v 1.8 2005/03/14 20:41:19 tv Exp $
---- Makefile.orig Fri Aug 20 22:14:07 1999
+--- Makefile.orig 1999-08-20 17:14:07.000000000 -0400
+++ Makefile
-@@ -14,30 +14,50 @@
+@@ -14,25 +14,29 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
-CFLAGS = -I. -Wall -O2 -g
-+NROFF= nroff -mandoc
-+
+CFLAGS += -I. -Wall -O2
LDFLAGS = -L.
-LIBS = -lcgi
@@ -18,7 +16,7 @@ $NetBSD: patch-ab,v 1.7 2002/12/27 14:36:02 cjep Exp $
-libcgi.a: $(OBJS)
- ar rc $@ $^
-+all: libcgi.la cgitest jumpto htmlman
++all: libcgi.la cgitest jumpto
-cgitest: cgitest.o libcgi.a
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
@@ -39,31 +37,29 @@ $NetBSD: patch-ab,v 1.7 2002/12/27 14:36:02 cjep Exp $
- install -m 755 cgitest /usr/lib/cgi-bin
+cgitest: cgitest.lo libcgi.la
+ ${LIBTOOL} --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ cgitest.lo $(LIBS)
-
--clean:
-- rm -f cgitest cgitest.o jumpto jumpto.o libcgi.a $(OBJS) *.[35].html
++
+jumpto: jumpto.lo libcgi.la
+ ${LIBTOOL} --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ jumpto.lo $(LIBS)
- htmlman:
+ clean:
+ rm -f cgitest cgitest.o jumpto jumpto.o libcgi.a $(OBJS) *.[35].html
+@@ -41,3 +45,19 @@ htmlman:
for f in *.[35]; do \
-- man -l $$f|rman -f HTML --title $$f -r "%s.%s.html" > $$f.html; \
-+ ${NROFF} $$f|rman -f HTML --title $$f -r "%s.%s.html" > $$f.html; \
+ man -l $$f|rman -f HTML --title $$f -r "%s.%s.html" > $$f.html; \
done
+
+install:
-+ -mkdir -p ${PREFIX}/libexec/cgi-bin
-+ -mkdir -p ${PREFIX}/share/examples/cgilib
-+ ${INSTALL} -c -m 444 cgitest.c ${PREFIX}/share/examples/cgilib
-+ ${INSTALL} -c -m 444 jumpto.c ${PREFIX}/share/examples/cgilib
-+ ${LIBTOOL} --mode=install ${INSTALL} -c -m 444 libcgi.la ${PREFIX}/lib
-+ ${LIBTOOL} --mode=install ${INSTALL} -c -m 755 cgitest ${PREFIX}/libexec/cgi-bin
-+ ${LIBTOOL} --mode=install ${INSTALL} -c -m 755 jumpto ${PREFIX}/libexec/cgi-bin
-+ ${INSTALL} -c -m 444 cgi.h ${PREFIX}/include
-+ -mkdir -p ${PREFIX}/share/doc/html/cgilib
-+ for i in *.html; do \
-+ ${INSTALL} -c -m 444 $$i ${PREFIX}/share/doc/html/cgilib ; \
++ ${BSD_INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/cgi-bin
++ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/examples/cgilib
++ ${BSD_INSTALL_DATA} cgitest.c ${PREFIX}/share/examples/cgilib
++ ${BSD_INSTALL_DATA} jumpto.c ${PREFIX}/share/examples/cgilib
++ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libcgi.la ${PREFIX}/lib
++ ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} cgitest ${PREFIX}/libexec/cgi-bin
++ ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} jumpto ${PREFIX}/libexec/cgi-bin
++ ${BSD_INSTALL_DATA} cgi.h ${PREFIX}/include
++ for i in *.3; do \
++ ${BSD_INSTALL_MAN} $$i ${PREFIX}/man/man3/; \
++ done
++ for i in *.5; do \
++ ${BSD_INSTALL_MAN} $$i ${PREFIX}/man/man5/; \
+ done
-+
-+clean:
-+ rm -f cgitest cgitest.o jumpto jumpto.o libcgi.a $(OBJS) *.[35].html