1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/print/lout/files/patch-makefile
Danilo Egea Gondolfo 7b360b6f46 - Change maintainer email to @FreeBSD.org
- Convert USE_GMAKE to USES
- Add stage support
- Recreate files/patch-01 as files/patch-makefile

Approved by:	wg (mentor)
2013-10-01 00:03:57 +00:00

134 lines
4.0 KiB
Plaintext

--- ./makefile.orig 2012-02-08 05:28:03.000000000 -0200
+++ ./makefile 2013-09-29 13:31:07.000000000 -0300
@@ -269,11 +269,10 @@
# DEBUGGING = 1
# TRACING = -g
-PREFIX = /home/jeff
BINDIR = $(PREFIX)/bin
-LOUTLIBDIR = $(PREFIX)/lout.lib
-LOUTDOCDIR = $(PREFIX)/lout.doc
-MANDIR = $(PREFIX)/lout.man
+LOUTLIBDIR = $(PREFIX)/share/lout
+LOUTDOCDIR = $(PREFIX)/share/doc/lout
+MANDIR = $(PREFIX)/man/man1
LIBFONT = font
LIBMAPS = maps
@@ -285,23 +284,23 @@
CHARIN = 1
CHAROUT = 0
-USELOC = 1
+USELOC = 0
LOC_FR = fr
LOC_DE = de
COLLATE = 1
-PDF_COMPRESSION = 0
-ZLIB =
+PDF_COMPRESSION = 1
+ZLIB = -lz
ZLIBPATH =
-CC = gcc
+#CC = gcc
-RCOPY = cp -r
+RCOPY = cp -R
-COPTS = -ansi -pedantic -Wall -O3
+#COPTS = -ansi -pedantic -Wall -O3
-CFLAGS = -DOS_UNIX=$(OSUNIX) \
+CFLAGS += -DOS_UNIX=$(OSUNIX) \
-DOS_DOS=$(OSDOS) \
-DOS_MAC=$(OSMAC) \
-DDB_FIX=$(DBFIX) \
@@ -349,42 +348,41 @@
install: lout prg2lout
@echo ""
@echo "(a) Installing lout and prg2lout binaries into BINDIR $(BINDIR)"
- cp lout $(BINDIR)/lout
- chmod 755 $(BINDIR)/lout
- cp prg2lout $(BINDIR)/prg2lout
- chmod 755 $(BINDIR)/prg2lout
+ install -c -s lout $(BINDIR)/lout
+ install -c -s prg2lout $(BINDIR)/prg2lout
@echo ""
@echo "(b) Installing library files into LOUTLIBDIR $(LOUTLIBDIR)"
- mkdir $(LOUTLIBDIR)
+ -mkdir $(LOUTLIBDIR)
chmod 755 $(LOUTLIBDIR)
@echo ""
- mkdir $(LOUTLIBDIR)/$(LIBINCL)
+ -mkdir $(LOUTLIBDIR)/$(LIBINCL)
chmod 755 $(LOUTLIBDIR)/$(LIBINCL)
cp include/* $(LOUTLIBDIR)/$(LIBINCL)
chmod 644 $(LOUTLIBDIR)/$(LIBINCL)/*
@echo ""
- mkdir $(LOUTLIBDIR)/$(LIBDATA)
+ -mkdir $(LOUTLIBDIR)/$(LIBDATA)
chmod 755 $(LOUTLIBDIR)/$(LIBDATA)
cp data/* $(LOUTLIBDIR)/$(LIBDATA)
chmod 644 $(LOUTLIBDIR)/$(LIBDATA)/*
@echo ""
- mkdir $(LOUTLIBDIR)/$(LIBHYPH)
+ -mkdir $(LOUTLIBDIR)/$(LIBHYPH)
chmod 755 $(LOUTLIBDIR)/$(LIBHYPH)
cp hyph/* $(LOUTLIBDIR)/$(LIBHYPH)
chmod 644 $(LOUTLIBDIR)/$(LIBHYPH)/*
@echo ""
- mkdir $(LOUTLIBDIR)/$(LIBFONT)
+ -mkdir $(LOUTLIBDIR)/$(LIBFONT)
chmod 755 $(LOUTLIBDIR)/$(LIBFONT)
cp font/* $(LOUTLIBDIR)/$(LIBFONT)
chmod 644 $(LOUTLIBDIR)/$(LIBFONT)/*
@echo ""
- mkdir $(LOUTLIBDIR)/$(LIBMAPS)
+ -mkdir $(LOUTLIBDIR)/$(LIBMAPS)
chmod 755 $(LOUTLIBDIR)/$(LIBMAPS)
cp maps/* $(LOUTLIBDIR)/$(LIBMAPS)
chmod 644 $(LOUTLIBDIR)/$(LIBMAPS)/*
@echo ""
- mkdir $(LOUTLIBDIR)/$(LIBLOCA)
+ -mkdir $(LOUTLIBDIR)/$(LIBLOCA)
chmod 755 $(LOUTLIBDIR)/$(LIBLOCA)
+ touch $(LOUTLIBDIR)/$(LIBLOCA)/.place_holder
@echo ""
@echo "(c) Initializing run (should be silent, no errors expected)"
$(BINDIR)/lout -x -s $(LOUTLIBDIR)/$(LIBINCL)/init
@@ -406,6 +404,7 @@
installdoc:
@echo ""
@echo "Creating LOUTDOCDIR $(LOUTDOCDIR) and copying documentation into it"
+ -mkdir -p $(LOUTDOCDIR)
$(RCOPY) doc/* $(LOUTDOCDIR)
chmod 755 $(LOUTDOCDIR)
chmod 755 $(LOUTDOCDIR)/*
@@ -416,9 +415,9 @@
installfr:
@echo ""
@echo "Putting French error messages into $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_FR)"
- mkdir $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_FR)
+ -mkdir $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_FR)
chmod 755 $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_FR)
- mkdir $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES
+ -mkdir $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES
chmod 755 $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES
cp locale/msgs.fr $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES/msgs.$(LOC_FR)
gencat $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES/errors.$(LOC_FR) \
@@ -428,9 +427,9 @@
installde:
@echo ""
@echo "Putting German error messages into $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_DE)"
- mkdir $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_DE)
+ -mkdir $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_DE)
chmod 755 $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_DE)
- mkdir $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES
+ -mkdir $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES
chmod 755 $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES
cp locale/msgs.de $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES/msgs.$(LOC_DE)
gencat $(LOUTLIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES/errors.$(LOC_DE) \