1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/archivers/hpack.non-usa.only/files/patch-aj
Steve Price b8eafda329 Honor PREFIX and split up patches one patch for each file.
PR:		12056
Submitted by:	Nick Hibma <nick.hibma@jrc.it>
1999-12-29 08:52:12 +00:00

42 lines
1.7 KiB
Plaintext

--- makefile.orig Tue Aug 10 10:47:06 1993
+++ makefile Tue Dec 28 20:01:38 1999
@@ -55,6 +55,7 @@
ECHO = echo # Echo to screen command
MAKE = make # The make command
MV = mv # Rename command
+PREFIX ?= /usr/local
#****************************************************************************
#* *
@@ -68,7 +69,7 @@
@$(ECHO)
@$(ECHO) "To create HPACK, you have to enter the Unix system type you want to build it"
@$(ECHO) "for. Possible options are: aix (RS6000), aix370, aix386, bsd386, convex,"
- @$(ECHO) "irix, hpux, hpux-gcc, isc, linux, mint, next, osf1, qnx, sun, svr4, ultrix,"
+ @$(ECHO) "freebsd, irix, hpux, hpux-gcc, isc, linux, mint, next, osf1, qnx, sun, svr4, ultrix,"
@$(ECHO) "ultrix_old (Ultrix 3.x or earlier), and uts4. If none of the above fit,"
@$(ECHO) "try 'make generic', and send a copy of any changes necessary to the author,"
@$(ECHO) "pgut1@cs.aukuni.ac.nz"
@@ -317,6 +318,21 @@
convex:
@$(MAKE) hpack CMDC="-DCONVEX" CC="cc"
+
+freebsd:
+ @$(MAKE) $(PROJ) CMDC="-O2" LFLAGS="-o $(PROJ) -ltermcap"
+ cd keycvt; $(MAKE) freebsd
+
+freebsd.install:
+ -@mkdir -p ${PREFIX}/bin
+ -@mkdir -p ${PREFIX}/etc
+ -@mkdir -p ${PREFIX}/lib/hpack
+ -@mkdir -p ${PREFIX}/man/man1
+ $(INSTALL) $(COPY) $(STRIP) -o $(BINOWN) -g $(BINGRP) -m $(BINMODE) $(PROJ) $(PREFIX)/bin
+ $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m 444 language.dat $(PREFIX)/lib/hpack
+ $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m 444 docs/$(PROJ).1 $(PREFIX)/man/man1
+ -[ ! -f $(PREFIX)/etc/hpack.cfg ] && $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m 644 docs/hpack.cfg $(PREFIX)/etc
+ cd keycvt; $(MAKE) freebsd.install
# Generic: Generic BSD-ish system running gcc