[111604] trunk/dports/devel/libghash

jmr at macports.org jmr at macports.org
Fri Sep 27 05:41:12 PDT 2013


Revision: 111604
          https://trac.macports.org/changeset/111604
Author:   jmr at macports.org
Date:     2013-09-27 05:41:12 -0700 (Fri, 27 Sep 2013)
Log Message:
-----------
libghash: follow stealth update, set license, pass CC and flags to makefile

Modified Paths:
--------------
    trunk/dports/devel/libghash/Portfile
    trunk/dports/devel/libghash/files/patch-Makefile

Modified: trunk/dports/devel/libghash/Portfile
===================================================================
--- trunk/dports/devel/libghash/Portfile	2013-09-27 12:37:31 UTC (rev 111603)
+++ trunk/dports/devel/libghash/Portfile	2013-09-27 12:41:12 UTC (rev 111604)
@@ -4,7 +4,9 @@
 
 name			libghash
 version			0.0.2
+revision		1
 categories		devel
+license			CPL-1
 platforms		darwin
 maintainers		nomaintainer
 description		General Purpose Hash Function Algorithm library
@@ -15,12 +17,19 @@
 homepage		http://www.partow.net/programming/hashfunctions/
 master_sites	http://www.partow.net/downloads/
 distname		GeneralHashFunctions_-_C
-checksums		md5 28e0b6f801fff3ed9aaba62d451d2fd7
+dist_subdir		${name}/${version}_1
+checksums		rmd160 c13ce6f0de3970b81dfffa989920c37a7cc5f410 \
+			sha256 b352eda5d2660bfc4afc11918b577925d0d62fd39dcf6310be9bdb63d08b78c3
 use_zip			yes
 patchfiles		patch-Makefile
 
 use_configure	no
 
-build.args		PREFIX=${prefix}
+build.env		PREFIX="${prefix}" \
+			CC="${configure.cc}" \
+			CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
+			LDFLAGS="${configure.ld_archflags}"
 
-destroot.args	PREFIX=${prefix}
+destroot.env	PREFIX="${prefix}"
+
+test.run		yes

Modified: trunk/dports/devel/libghash/files/patch-Makefile
===================================================================
--- trunk/dports/devel/libghash/files/patch-Makefile	2013-09-27 12:37:31 UTC (rev 111603)
+++ trunk/dports/devel/libghash/files/patch-Makefile	2013-09-27 12:41:12 UTC (rev 111604)
@@ -1,20 +1,23 @@
---- Makefile	Mon Apr 26 20:24:58 2004
-+++ ../../Makefile	Mon Sep 13 09:07:45 2004
-@@ -11,23 +11,37 @@
- # http://www.opensource.org/licenses/cpl.php
+--- Makefile.orig	2000-01-01 00:00:00.000000000 +1100
++++ Makefile	2013-09-27 22:31:44.000000000 +1000
+@@ -11,22 +11,34 @@
+ # http://www.opensource.org/licenses/cpl1.0.php
  #
  
-+PREFIX        = /opt/local
- COMPILER      = gcc
- OPTIONS       = -ansi -pedantic -Wall -o
- OPTIONS_LIBS  = -ansi -pedantic -Wall -c
+-COMPILER      = -cc
+-OPTIONS       = -std=c99 -pedantic -Wall -o
+-OPTIONS_LIBS  = -std=c99 -pedantic -Wall -c
++PREFIX        ?= /opt/local
++COMPILER      = $(CC)
++OPTIONS       = $(CFLAGS) -std=c99 -pedantic -Wall -o
++OPTIONS_LIBS  = $(CFLAGS) -std=c99 -pedantic -Wall -c
 +VERSION       = 0.0.2
  
++all: GeneralHashFunctions.o HashTest dylib
+ 
 -all: GeneralHashFunctions.o HashTest
-+all: GeneralHashFunctions.o HashTest dylib
-+
 +dylib: GeneralHashFunctions.o
-+	$(COMPILER) -dynamiclib -install_name $(PREFIX)/lib/libghash.$(VERSION).dylib -current_version $(VERSION) -o libghash.$(VERSION).dylib GeneralHashFunctions.o
++	$(COMPILER) $(LDFLAGS) -dynamiclib -install_name $(PREFIX)/lib/libghash.$(VERSION).dylib -current_version $(VERSION) -o libghash.$(VERSION).dylib GeneralHashFunctions.o
  
  GeneralHashFunctions.o: GeneralHashFunctions.c GeneralHashFunctions.h
  	$(COMPILER) $(OPTIONS_LIBS) GeneralHashFunctions.c
@@ -23,20 +26,17 @@
 +HashTest: GeneralHashFunctions.o HashTest.c
  	$(COMPILER) $(OPTIONS) HashTest HashTest.c GeneralHashFunctions.o
  
-+check: HashTest
++test: HashTest
 +	./HashTest
 +
  clean:
- 	rm -f core
- 	rm -f *.o
- 	rm -f *.bak
+ 	rm -f core *.o *.bak *stackdump *#
  
 +install:
 +	install -m 644 GeneralHashFunctions.h $(DESTDIR)$(PREFIX)/include/libghash.h
 +	install -m 644 libghash.$(VERSION).dylib $(DESTDIR)$(PREFIX)/lib
 +	cd $(DESTDIR)$(PREFIX)/lib && ln -s libghash.$(VERSION).dylib libghash.dylib
 +
-+
  #
  # The End !
 -#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130927/d154d399/attachment.html>


More information about the macports-changes mailing list