openbsd-ports/java/jlint/patches/patch-Makefile

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2006-09-26 08:26:21 -04:00
$OpenBSD: patch-Makefile,v 1.4 2006/09/26 12:26:21 kevlo Exp $
--- Makefile.orig Wed Jan 14 16:23:41 2004
+++ Makefile Tue Sep 26 20:19:40 2006
2002-09-28 18:30:10 -04:00
@@ -3,8 +3,8 @@
# Makefile for Unix and GNU/Linux with gcc/g++ compiler
# Edit here:
-CC=gcc
-CPP=g++
+#CC=gcc
2006-09-26 08:26:21 -04:00
+CPP=${CXX}
2002-09-28 18:30:10 -04:00
# Hints:
# if you use egcs-2.90.* version of GCC please add option -fno-exceptions
2006-09-26 08:26:21 -04:00
@@ -20,7 +20,7 @@ CPP=g++
2002-09-28 18:30:10 -04:00
# Optimized version
2006-09-26 08:26:21 -04:00
-CFLAGS = -c -Wall -O2 -g
+CFLAGS += -c
2006-09-26 08:26:21 -04:00
# -DSLIST removed because it wouldn't compile under gcc 3.x
2002-09-28 18:30:10 -04:00
# add -DHASH_TABLE for extra speed (may sometimes produce inconsistent results)
2006-09-26 08:26:21 -04:00
@@ -103,10 +103,11 @@ test-zip:
install:
- cp jlint antic jlint.sh $(INSTALL_DIR)
- chmod 755 $(INSTALL_DIR)/antic
- chmod 755 $(INSTALL_DIR)/jlint
- chmod 755 $(INSTALL_DIR)/jlint.sh
+ $(INSTALL_PROGRAM) antic $(PREFIX)/bin
+ $(INSTALL_PROGRAM) jlint $(PREFIX)/bin
2006-09-26 08:26:21 -04:00
+ $(INSTALL_PROGRAM) jlint.sh $(PREFIX)/bin
+ $(INSTALL_DATA_DIR) $(PREFIX)/share/doc/jlint
2006-09-26 08:26:21 -04:00
+ $(INSTALL_DATA) manual.pdf $(PREFIX)/share/doc/jlint
# --> automatically generated dependencies follow; do not remove this line.