diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-12-09 04:34:59 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-12-09 04:34:59 +0800 |
commit | 60be36456ce5347e6a663ff9bb290730462d7bfb (patch) | |
tree | b62d3408df4b3939e2554adbd33de1ba33bd7de8 /graphics/claraocr | |
parent | 0f356141e48d3f1610e1b620f29ff08e46e0631c (diff) | |
download | freebsd-ports-gnome-60be36456ce5347e6a663ff9bb290730462d7bfb.tar.gz freebsd-ports-gnome-60be36456ce5347e6a663ff9bb290730462d7bfb.tar.zst freebsd-ports-gnome-60be36456ce5347e6a663ff9bb290730462d7bfb.zip |
- Add missing USE_XLIB
- Support X11BASE properly
- Support install macros
PR: 32618
Submitted by: Ports Fury
Diffstat (limited to 'graphics/claraocr')
-rw-r--r-- | graphics/claraocr/Makefile | 3 | ||||
-rw-r--r-- | graphics/claraocr/files/patch-Makefile | 58 |
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: |