Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2002 15:20:02 -0800 (PST)
From:      Thomas Hurst <tom.hurst@clara.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/34050: Port misc/sloccount out of date
Message-ID:  <200201182320.g0INK2u47094@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/34050; it has been noted by GNATS.

From: Thomas Hurst <tom.hurst@clara.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: ports/34050: Port misc/sloccount out of date
Date: Fri, 18 Jan 2002 23:18:08 +0000

 * Thomas Hurst (freaky@aagh.net) wrote:
 
 > >Number:         34050
 > >Category:       ports
 > >Synopsis:       Port misc/sloccount out of date
 
 Oops, borked the makefile patch:
 
 Here's the fill one I happen to have atm; basically I forgot to remove
 PREFIX and CC.
 
 --- ../../../sloccount-2.09/makefile	Wed Jan  9 13:38:33 2002
 +++ makefile	Fri Jan 18 23:15:01 2002
 @@ -10,14 +10,12 @@
  # Set this for where to store the man pages and executables.
  # If you want to store this as part of an official distribution,
  # change this to "/usr":
 -PREFIX=/usr/local
  
  # Set "EXE_SUFFIX" to ".exe" if you're running on Windows, like this:
  # EXE_SUFFIX=.exe
  EXE_SUFFIX=
  
  # Set this to your C compiler, if it's not "gcc"; a likely alternative is "cc":
 -CC=gcc
  
  # Set this to the name of your "install" program.  On some systems,
  # "install -C" would be useful (so unchanged files won't be modified),
 @@ -41,7 +39,7 @@
  ARCH=i386
  VERSIONEDNAME=$(NAME)-$(VERSION)
  INSTALL_DIR=$(PREFIX)/bin
 -MAN_DIR=$(PREFIX)/share/man
 +MAN_DIR=$(PREFIX)/man
  MAN_DIR_MAN1=$(MAN_DIR)/man1
  DOC_DIR=$(PREFIX)/share/doc/$(VERSIONEDNAME)-$(RPM_VERSION)
  POSTED_DIR=/home/dwheeler/dwheeler.com/sloccount
 @@ -84,7 +82,7 @@
     sql_count \
     tcl_count
  
 -MANPAGES=sloccount.1.gz
 +MANPAGES=sloccount.1
  
  MYDOCS=sloccount.html README TODO ChangeLog
  
 @@ -92,13 +90,13 @@
  all: lexcount1$(EXE_SUFFIX) c_count$(EXE_SUFFIX) java_count$(EXE_SUFFIX) php_count$(EXE_SUFFIX)
  
  lexcount1$(EXE_SUFFIX): lexcount1.c
 -	$(CC) lexcount1.c -o lexcount1$(EXE_SUFFIX)
 +	$(CC) ${CFLAGS} lexcount1.c -o lexcount1$(EXE_SUFFIX)
  
  c_count$(EXE_SUFFIX): c_count.c
 -	$(CC) c_count.c -o c_count$(EXE_SUFFIX)
 +	$(CC) ${CFLAGS} c_count.c -o c_count$(EXE_SUFFIX)
  
  php_count$(EXE_SUFFIX): php_count.c
 -	$(CC) php_count.c -o php_count$(EXE_SUFFIX)
 +	$(CC) ${CFLAGS} php_count.c -o php_count$(EXE_SUFFIX)
  
  sloccount.1.gz: sloccount.1
  	gzip -c sloccount.1 > sloccount.1.gz
 @@ -109,18 +107,17 @@
  
  # This is USC's code counter, not built by default:
  c_lines: C_LINES.C
 -	$(CC) C_LINES.C -o c_lines$(EXE_SUFFIX)
 +	$(CC) ${CFLAGS} C_LINES.C -o c_lines$(EXE_SUFFIX)
  
  
  install_programs: all
 -	$(INSTALL) $(EXECUTABLES) $(INSTALL_DIR)
 +	${BSD_INSTALL_SCRIPT} $(EXECUTABLES) $(INSTALL_DIR)
  
  uninstall_programs:
  	cd $(INSTALL_DIR) && rm -f $(EXECUTABLES)
  
  install_man:
 -	$(INSTALL_A_DIR) $(MAN_DIR_MAN1)
 -	$(INSTALL) $(MANPAGES) $(MAN_DIR_MAN1)
 +	${BSD_INSTALL_MAN} $(MANPAGES) $(MAN_DIR_MAN1)
  
  uninstall_man:
  	cd $(MAN_DIR_MAN1) && rm -f $(MANPAGES)
 
 -- 
 Thomas 'Freaky' Hurst  -  freaky@aagh.net  -  http://www.aagh.net/
 -
 People are promoted not by what they can do, but what
 people think they can do.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201182320.g0INK2u47094>