aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-12-08 20:34:59 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-12-08 20:34:59 +0000
commit1a50c40bab058ce912552433692e84e72f391b4b (patch)
tree46a667dab54975021055a4157edf648f63948c5b /graphics
parentcc2ab76018b80288e53c8ff74c1ada7e5f6a2dc7 (diff)
downloadports-1a50c40bab058ce912552433692e84e72f391b4b.tar.gz
ports-1a50c40bab058ce912552433692e84e72f391b4b.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/claraocr/Makefile3
-rw-r--r--graphics/claraocr/files/patch-Makefile58
2 files changed, 42 insertions, 19 deletions
diff --git a/graphics/claraocr/Makefile b/graphics/claraocr/Makefile
index 4c0c74602c2b..2fa57e675196 100644
--- a/graphics/claraocr/Makefile
+++ b/graphics/claraocr/Makefile
@@ -17,12 +17,13 @@ DISTNAME= clara-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
+USE_XLIB= yes
USE_PERL5= yes
+MAKE_ENV= MKDIR="${MKDIR}"
MAN1= clara-adv.1 clara-dev.1 clara.1
post-patch:
- @${PERL} -pi -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/Makefile
@${PERL} -pi -e 's,^#!/usr/bin/perl,#!${PERL},g' ${WRKSRC}/clara.pl \
${WRKSRC}/mkdoc.pl ${WRKSRC}/selthresh.pl
diff --git a/graphics/claraocr/files/patch-Makefile b/graphics/claraocr/files/patch-Makefile
index b6929813126a..9cb8d2ce0753 100644
--- a/graphics/claraocr/files/patch-Makefile
+++ b/graphics/claraocr/files/patch-Makefile
@@ -1,49 +1,71 @@
-$FreeBSD$
-
---- Makefile.orig Mon Nov 5 09:46:33 2001
-+++ Makefile Mon Nov 5 09:48:41 2001
+--- Makefile.orig Sun Oct 21 07:16:38 2001
++++ Makefile Sat Dec 8 10:42:09 2001
@@ -28,13 +28,13 @@
#
# Configure the destination directories:
#
-BINDIR=/usr/local/bin
-+BINDIR=%%PREFIX%%/bin
++BINDIR=${PREFIX}/bin
#BINDIR=/usr/bin
-MANDIR=/usr/local/man/man1
-+MANDIR=%%PREFIX%%/man/man1
++MANDIR=${PREFIX}/man/man1
#MANDIR=/usr/man/man1
-DOCDIR=/usr/local/doc/clara
-+DOCDIR=%%PREFIX%%/share/doc/clara
++DOCDIR=${PREFIX}/share/doc/clara
#DOCDIR=/usr/doc/clara
#DOCDIR=/usr/doc/clara-$(VERSION)
#DOCDIR=/usr/share/doc/clara
-@@ -44,7 +44,7 @@
+@@ -42,9 +42,9 @@
#
- INCLUDE = -I/usr/X11R6/include
- LIBPATH = -L/usr/X11R6/lib
+ # Configure these variables accordingly to your system:
+ #
+-INCLUDE = -I/usr/X11R6/include
+-LIBPATH = -L/usr/X11R6/lib
-CC = gcc
++INCLUDE = -I${X11BASE}/include
++LIBPATH = -L${X11BASE}/lib
+CC ?= gcc
#
# Now choose the Clara OCR compilation options:
-@@ -83,7 +83,7 @@
+@@ -83,14 +83,14 @@
#
# Add or remove flags if necessary:
#
-CFLAGS = $(INCLUDE) -g -O2 -Wall $(COPTS)
-+CFLAGS += $(INCLUDE) -g -Wall $(COPTS)
++CFLAGS += $(INCLUDE) $(COPTS)
#CFLAGS = $(INCLUDE) -g -O2 -pedantic $(COPTS)
#CFLAGS = $(INCLUDE) -g -O2 $(COPTS)
-@@ -158,8 +158,10 @@
- install selthresh.pl $(BINDIR)
- install -d $(MANDIR)
- install doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 $(MANDIR)
+ #
+ # Add or remove flags if necessary:
+ #
+-LDFLAGS = -g
++LDFLAGS =
+
+ #
+ # If your system requires additional libs, please add them:
+@@ -153,13 +153,15 @@
+ ./clara -p 2
+
+ install: all
+- install -d $(BINDIR)
+- install clara $(BINDIR)
+- install selthresh.pl $(BINDIR)
+- install -d $(MANDIR)
+- install doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 $(MANDIR)
+- install -d $(DOCDIR)
+- install ANNOUNCE CHANGELOG doc/FAQ doc/*.html $(DOCDIR)
++ ${MKDIR} $(BINDIR)
++ ${BSD_INSTALL_PROGRAM} clara $(BINDIR)
++ ${BSD_INSTALL_SCRIPT} selthresh.pl $(BINDIR)
++ ${MKDIR} $(MANDIR)
++ ${BSD_INSTALL_MAN} doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 $(MANDIR)
+.ifndef NOPORTDOCS
- install -d $(DOCDIR)
- install ANNOUNCE CHANGELOG doc/FAQ doc/*.html $(DOCDIR)
++ ${MKDIR} $(DOCDIR)
++ ${BSD_INSTALL_DATA} ANNOUNCE CHANGELOG doc/FAQ doc/*.html $(DOCDIR)
+.endif
clean: