mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-05 10:48:03 -04:00
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
$NetBSD: patch-ab,v 1.4 2009/07/21 20:23:55 brook Exp $
|
|
|
|
--- src/Makefile.in.orig 2005-02-28 14:40:39.000000000 +0000
|
|
+++ src/Makefile.in
|
|
@@ -37,6 +37,8 @@
|
|
# these two lines are for cross-compiling, not tested
|
|
#srcdir = @srcdir@
|
|
#VPATH = @srcdir@
|
|
+prefix = @prefix@
|
|
+exec_prefix = @exec_prefix@
|
|
bindir = @bindir@
|
|
# lib removed for simplification
|
|
#libdir = @libdir@
|
|
@@ -78,7 +80,7 @@
|
|
$(PROGRAM): $(LIBOBJS) gocr.o
|
|
# make it conform to ld --as-needed
|
|
#$(CC) -o $@ $(LDFLAGS) gocr.o ./lib$(PGMASCLIB).a $(LIBS)
|
|
- $(CC) -o $@ gocr.o $(LIBOBJS) $(LIBS)
|
|
+ $(CC) -o $@ $(LDFLAGS) gocr.o $(LIBOBJS) $(LIBS)
|
|
if test -r $(PROGRAM); then cp $@ ../bin; fi
|
|
|
|
libs: lib$(PGMASCLIB).a lib$(PGMASCLIB).@PACKAGE_VERSION@.so
|
|
@@ -97,10 +99,7 @@
|
|
# PHONY = don't look at file clean, -rm = start rm and ignore errors
|
|
.PHONY : clean proper install uninstall
|
|
install: all
|
|
- #$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
|
|
- $(INSTALL) -d $(DESTDIR)$(bindir)
|
|
$(INSTALL) ../bin/$(PROGRAM) $(DESTDIR)$(bindir)
|
|
- $(INSTALL) ../bin/gocr.tcl $(DESTDIR)$(bindir) # better X11/bin?
|
|
if test -f lib$(PGMASCLIB).a; then\
|
|
$(INSTALL) lib$(PGMASCLIB).a $(DESTDIR)$(libdir);\
|
|
$(INSTALL) lib$(PGMASCLIB).@PACKAGE_VERSION@.so $(DESTDIR)$(libdir);\
|