openbsd-ports/security/amap/patches/patch-Makefile_am

42 lines
1.4 KiB
Plaintext
Raw Normal View History

2005-09-30 03:47:27 -04:00
$OpenBSD: patch-Makefile_am,v 1.3 2005/09/30 07:47:27 aanriot Exp $
--- Makefile.am.orig Fri Sep 30 07:30:26 2005
+++ Makefile.am Fri Sep 30 07:30:31 2005
@@ -1,13 +1,13 @@
-CC=gcc
-LIB=-lpcre -L./pcre-3.9/ -I./pcre-3.9/
+CC?=gcc
+LIB=-lpcre -L$(LOCALBASE)/lib
OPT=-O2
OPT_DEBUG=-ggdb -Wall -lefence
BINDIR=/bin
-DATADIR=/etc
+DATADIR=/share/amap
MANDIR=/man/man1
SCRIPTS=appdefs.trig appdefs.resp appdefs.rpc
MANPAGE=amap.1
-all: pcre strip
+all: amap amapcrap
pcre:
cd pcre-3.9 && make
@@ -35,14 +35,11 @@ debug: amap.c
install: all
@echo Installing to $(PREFIX), change this by running ./configure --prefix=path
- -mkdir -vp $(PREFIX)$(BINDIR) 2> /dev/null
- -mkdir -vp $(PREFIX)$(DATADIR) 2> /dev/null
- -mkdir -vp $(PREFIX)$(MANDIR) 2> /dev/null
- -test -e amap.exe || cp -f amap amap6 amapcrap $(PREFIX)$(BINDIR)
- -test -e amap.exe && cp -f amap.exe amapcrap.exe $(PREFIX)$(BINDIR) || echo
- -cp -f $(SCRIPTS) $(PREFIX)$(DATADIR)
- -cp -f $(MANPAGE) $(PREFIX)$(MANDIR)
2005-09-30 03:47:27 -04:00
- -test $(PREFIX)$(BINDIR)/amap6 || cd $(PREFIX)$(BINDIR) && ln -s amap amap6
+ @test -e amap && $(BSD_INSTALL_PROGRAM) amap amap6 amapcrap $(PREFIX)$(BINDIR)
+ @test -d $(PREFIX)$(MANDIR) || mkdir -p $(PREFIX)$(MANDIR)
+ $(BSD_INSTALL_MAN) $(MANPAGE) $(PREFIX)$(MANDIR)
+ @test -d $(PREFIX)$(DATADIR) || mkdir -p $(PREFIX)$(DATADIR)
+ $(BSD_INSTALL_SCRIPT) $(SCRIPTS) $(PREFIX)$(DATADIR)
clean:
cd pcre-3.9 && make clean