openbsd-ports/devel/lclint/patches/patch-aa

80 lines
2.4 KiB
Plaintext
Raw Normal View History

2000-08-01 11:41:13 -04:00
--- Makefile.in.orig Thu Jul 27 04:19:17 2000
+++ Makefile.in Tue Aug 1 16:52:30 2000
@@ -37,10 +37,10 @@ SYSTEM_LIBDIR = "/usr/include"
###
### directory for lclint libraries
-LIBDIR = @installdir@/lib
2000-08-01 11:41:13 -04:00
+LIBDIR = @installdir@/share/lclint-2.5q/lib
### directory for lclint standard imports
-IMPORTSDIR = @installdir@/imports
2000-08-01 11:41:13 -04:00
+IMPORTSDIR = @installdir@/share/lclint-2.5q/imports
### directory for lclint binary
INSTALLDIR = @installdir@/bin
2000-08-01 11:41:13 -04:00
@@ -87,9 +87,8 @@ SHELL = /bin/csh
### make install
###
-### installation command
-INSTALL = @INSTALL@
-INSTALLFLAGS =
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
### this works with nfs, change to whatever is needed to make
### a file executable on your system
2000-08-01 11:41:13 -04:00
@@ -111,7 +110,7 @@ CC = @CC@ @DEFS@
### optimizing compiler --- add optimization flags here
###
-CCOPT = $(CC) @OPT@
+CCOPT = $(CC) @CFLAGS@
###
### link flags --- this links the lex or flex library
2000-08-01 11:41:13 -04:00
@@ -160,6 +159,7 @@ ifeq ($(SHELL), /bin/csh)
setenv LINKFLAGS '$(LINKFLAGS)' ; \
setenv DEFAULT_LARCHPATH '".:$(LIBDIR)"' ; \
setenv DEFAULT_LCLIMPORTDIR '"$(IMPORTSDIR)"' ; \
+ unsetenv CFLAGS;\
2000-08-01 11:41:13 -04:00
$(MAKE) -e localconstants ; $(MAKE) -e
else
cd src ; CC='$(CC)'; export CC; CCOPT='$(CCOPT)'; \
2000-08-01 11:41:13 -04:00
@@ -169,6 +169,7 @@ else
DEFAULT_LARCHPATH='".:$(LIBDIR)/"' ; export DEFAULT_LARCHPATH ;\
LINKFLAGS='$(LINKFLAGS)'; export LINK_FLAGS; \
DEFAULT_LCLIMPORTDIR='"$(IMPORTSDIR)"' ; export DEFAULT_LCLIMPORTDIR ;\
+ unset CFLAGS;\
2000-08-01 11:41:13 -04:00
$(MAKE) -e localconstants ; $(MAKE) -e
endif
@echo '// '
2000-08-01 11:41:13 -04:00
@@ -221,21 +222,21 @@ install:
dobinaries:
@echo '// Installing binaries in '$(INSTALLDIR)
- cd $(LCLINTBINDIR); $(INSTALL) $(INSTALLFLAGS) lclint $(INSTALLDIR)
+ cd $(LCLINTBINDIR); $(INSTALL_PROGRAM) lclint $(INSTALLDIR)
@echo '// Installed: lclint in '$(INSTALLDIR)
dolibraries:
@echo '// Installing libraries in '$(LIBDIR)
@echo " (This will complain if the directory already exists, don't worry about it.)"
- -mkdir $(LIBDIR)
- $(CP) $(LCLINTLIB)/* $(LIBDIR)
+ -mkdir -p $(LIBDIR)
+ $(INSTALL_DATA) $(LCLINTLIB)/* $(LIBDIR)
@echo '// Installed libraries.'
doimports:
@echo '// Installing imports in '$(IMPORTSDIR)
@echo " (This will complain if the directory already exists, don't worry about it.)"
- -mkdir $(IMPORTSDIR)
- $(CP) $(LCLINTIMPORTS)/* $(IMPORTSDIR)
+ -mkdir -p $(IMPORTSDIR)
+ $(INSTALL_DATA) $(LCLINTIMPORTS)/* $(IMPORTSDIR)
@echo '// Installed imports.'