the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: lclint
Version: 2.5r
Revision: 2
Source: http://lclint.cs.virginia.edu/downloads/old-stable/%n-%v.src.tar.gz
SourceDirectory: %n-%v
BuildDepends: fink (>= 0.24.12-1), flex
PatchFile: %n.patch
PatchFile-MD5: 78eae3881dcb7d266e3596eac8e36ce6
PatchScript: <<
sed 's:@FINK_DESTDIR@:%d:g' <%{PatchFile} | patch -p1
mv Makefile.in Makefile_ori
sed 's|SHELL = /bin/csh|SHELL = /bin/sh|' < Makefile_ori > Makefile.in
# -O4 gives bad code-generation (creates .o that then can't be loaded
# when constructing executable)
perl -pi -e 's/-O4//g' configure src/Makefile.sys
<<
UseMaxBuildJobs: false
SetCPPFLAGS: -I%b/src/Headers -DUNIX
DocFiles: LICENSE README
Description: Statically checks C programs
DescDetail: <<
With minimal effort, LCLint can be used as a better lint. If additional effort
is invested adding annotations to programs, LCLint can perform stronger checks
than can be done by any standard lint
<<
DescPort: <<
-I%b/src/Headers added because it was forgotten
-DUNIX otherwise osd_getEnvironmentVariable in osd.c always return NULL
CPP was hardcoded to gcc, replace it with $CC (= cc)
Added last 2 lines of PatchScript to avoid "Word too long" errors due
to CLASSPATH (JFm)
<<
DescPackaging: <<
Previous versions by Sylvain Cuaz.
modified the Makefile because it didn't feature prefix nor DESTDIR
<<
Homepage: http://lclint.cs.virginia.edu/
Maintainer: None
License: GPL
Source-MD5: c656c33805f8f1002dd71fbe6e346179
diff -ruN lclint-2.5r/Makefile.in lclint-2.5r-patched/Makefile.in
--- lclint-2.5r/Makefile.in Thu Jul 27 02:19:17 2000
+++ lclint-2.5r-patched/Makefile.in Sat Jan 5 19:30:07 2002
@@ -40,7 +40,7 @@
LIBDIR = @installdir@/lib
### directory for lclint standard imports
-IMPORTSDIR = @installdir@/imports
+IMPORTSDIR = @installdir@/share/imports
### directory for lclint binary
INSTALLDIR = @installdir@/bin
@@ -91,6 +91,9 @@
INSTALL = @INSTALL@
INSTALLFLAGS =
+### installation prefix
+DESTDIR = @FINK_DESTDIR@
+
### this works with nfs, change to whatever is needed to make
### a file executable on your system
@@ -220,32 +223,20 @@
@echo '// Installation complete.'
dobinaries:
- @echo '// Installing binaries in '$(INSTALLDIR)
- cd $(LCLINTBINDIR); $(INSTALL) $(INSTALLFLAGS) lclint $(INSTALLDIR)
- @echo '// Installed: lclint in '$(INSTALLDIR)
+ @echo '// Installing binaries in '$(DESTDIR)$(INSTALLDIR)
+ -mkdir -p $(DESTDIR)$(INSTALLDIR)
+ cd $(LCLINTBINDIR); $(INSTALL) $(INSTALLFLAGS) lclint $(DESTDIR)$(INSTALLDIR)
+ @echo '// Installed: lclint in '$(DESTDIR)$(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)
+ @echo '// Installing libraries in '$(DESTDIR)$(LIBDIR)
+ -mkdir -p $(DESTDIR)$(LIBDIR)
+ $(INSTALL) $(LCLINTLIB)/* $(DESTDIR)$(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)
+ @echo '// Installing imports in '$(DESTDIR)$(IMPORTSDIR)
+ -mkdir -p $(DESTDIR)$(IMPORTSDIR)
+ $(INSTALL) $(LCLINTIMPORTS)/* $(DESTDIR)$(IMPORTSDIR)
@echo '// Installed imports.'
-
-
-
-
-
-
-
-
-
-
-
diff -ruN lclint-2.5r/configure lclint-2.5r-patched/configure
--- lclint-2.5r/configure Thu Jul 27 02:19:17 2000
+++ lclint-2.5r-patched/configure Sat Jan 5 16:05:25 2002
@@ -184,7 +184,8 @@
echo checking how to run the C preprocessor
if test -z "$CPP"; then
- CPP='gcc -E'
+ CPP='$CC -E'
+ echo "setting CPP to $CPP"
cat > conftest.c <
EOF