freebsd-ports/graphics/claraocr/files/patch-Makefile
Patrick Li ca281c5e74 Update to 0.9.9
PR:		38044
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
2002-05-14 21:33:56 +00:00

72 lines
1.8 KiB
Text

--- Makefile.orig Sat May 4 10:45:07 2002
+++ Makefile Wed May 8 00:58:04 2002
@@ -29,22 +29,22 @@
# Configure the destination directories:
#
#BINDIR=/usr/local/bin
-BINDIR=/usr/bin
+BINDIR=${PREFIX}/bin
#MANDIR=/usr/local/man/man1
-MANDIR=/usr/man/man1
+MANDIR=${PREFIX}/man/man1
#DOCDIR=/usr/local/doc/clara
#DOCDIR=/usr/doc/clara
#DOCDIR=/usr/doc/clara-$(VERSION)
-DOCDIR=/usr/share/doc/clara
+DOCDIR=${PREFIX}/share/doc/clara
#
# 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:
@@ -85,7 +85,7 @@
#
# Add or remove flags if necessary:
#
-CFLAGS = $(INCLUDE) -g -Wall $(COPTS)
+CFLAGS += $(INCLUDE) $(COPTS)
#CFLAGS = $(INCLUDE) -g -O2 -Wall $(COPTS)
#CFLAGS = $(INCLUDE) -g -O2 -pedantic $(COPTS)
#CFLAGS = $(INCLUDE) -g -O2 $(COPTS)
@@ -93,7 +93,7 @@
#
# Add or remove flags if necessary:
#
-LDFLAGS = -g
+LDFLAGS =
#
# If your system requires additional libs, please add them:
@@ -175,13 +175,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
+ ${MKDIR} $(DOCDIR)
+ ${BSD_INSTALL_DATA} ANNOUNCE CHANGELOG doc/FAQ doc/*.html $(DOCDIR)
+.endif
clean:
rm -f clara sclara $(OBJS) doc/clara*.1 doc/clara*.html doc/FAQ