diff options
author | joerg <joerg@pkgsrc.org> | 2009-11-30 17:25:08 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-11-30 17:25:08 +0000 |
commit | 9c44bfa73d50beb055ba9970eaf67d47f9c353d6 (patch) | |
tree | 0659fc7659f7799a80a45e7a069208abe5f198b6 /math/dieharder | |
parent | 151a26e97e9a830c2713d26c333e91ca0fb6322a (diff) | |
download | pkgsrc-9c44bfa73d50beb055ba9970eaf67d47f9c353d6.tar.gz |
Don't use gcc, just use default value of cc. Don't override CFLAGS,
keep the user settings in.
Diffstat (limited to 'math/dieharder')
-rw-r--r-- | math/dieharder/distinfo | 6 | ||||
-rw-r--r-- | math/dieharder/patches/patch-ac | 29 | ||||
-rw-r--r-- | math/dieharder/patches/patch-ad | 38 |
3 files changed, 46 insertions, 27 deletions
diff --git a/math/dieharder/distinfo b/math/dieharder/distinfo index 53065933139..7186f197320 100644 --- a/math/dieharder/distinfo +++ b/math/dieharder/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.1.1.1 2007/09/13 10:07:36 gson Exp $ +$NetBSD: distinfo,v 1.2 2009/11/30 17:25:08 joerg Exp $ SHA1 (dieharder-2.24.4.tgz) = 09db7de25b024afad242a0aeb38d303c26226c93 RMD160 (dieharder-2.24.4.tgz) = 005e318ae277f331884e183876c2a62095943a50 Size (dieharder-2.24.4.tgz) = 796175 bytes SHA1 (patch-aa) = a710122b5053d5553115e9d2bcecebfc9e2c2486 -SHA1 (patch-ac) = 509814ff4770ee6780fb03e963dd496a3d75d062 -SHA1 (patch-ad) = 37f8d4cc8a150239d3399a545fb15f0f328c3454 +SHA1 (patch-ac) = 6e284ac366193a681d9409a22d85381d4091815f +SHA1 (patch-ad) = db139fd1c1067cc005bee1310302b2d183b99aa4 diff --git a/math/dieharder/patches/patch-ac b/math/dieharder/patches/patch-ac index b64d90ab516..189b089943a 100644 --- a/math/dieharder/patches/patch-ac +++ b/math/dieharder/patches/patch-ac @@ -1,6 +1,6 @@ -$NetBSD: patch-ac,v 1.1.1.1 2007/09/13 10:07:36 gson Exp $ +$NetBSD: patch-ac,v 1.2 2009/11/30 17:25:08 joerg Exp $ ---- dieharder/Makefile.am.orig 2007-05-22 03:34:27.000000000 +0300 +--- dieharder/Makefile.am.orig 2007-05-22 02:34:27.000000000 +0200 +++ dieharder/Makefile.am @@ -46,7 +46,6 @@ SRCINCLUDES = $(shell ls *.h 2>&1 | sed # see how to force a consistent build when working on the UI @@ -10,20 +10,27 @@ $NetBSD: patch-ac,v 1.1.1.1 2007/09/13 10:07:36 gson Exp $ SOURCES = $(LIBSOURCES) $(SRCSOURCES) INCLUDES = $(LIBINCLUDES) $(SRCINCLUDES) -@@ -63,11 +62,8 @@ CC = gcc +@@ -57,17 +56,11 @@ DEFINES = -DVERSION=$(VERSION) + #======================================================================== + # Define parameters and directives needed in compile/link steps. + #======================================================================== +-# C Compiler +-CC = gcc +- # Compile flags (use fairly standard -O3 as default) - CFLAGS = -O3 -I ../include $(DEFINES) - +-CFLAGS = -O3 -I ../include $(DEFINES) +- -# Linker flags. -LDFLAGS = -- ++CFLAGS += -I ../include $(DEFINES) + # Libraries -LIBS = -L ../libdieharder -ldieharder -lgsl -lgslcblas -lm +LIBS = ../libdieharder/libdieharder.la -lgsl -lgslcblas -lm #======================================================================== # List of variants one can make. all is the default. We always -@@ -76,18 +72,8 @@ LIBS = -L ../libdieharder -ldieharder -l +@@ -76,18 +69,8 @@ LIBS = -L ../libdieharder -ldieharder -l #======================================================================== all: $(PROGRAM) @@ -44,7 +51,7 @@ $NetBSD: patch-ac,v 1.1.1.1 2007/09/13 10:07:36 gson Exp $ #======================================================================== # The only safe place to do commits is in the toplevel directory -@@ -123,10 +109,10 @@ clean : +@@ -123,15 +106,15 @@ clean : install : $(PROGRAM) (strip $(PROGRAM);\ install -d $(prefix)/bin; \ @@ -58,3 +65,9 @@ $NetBSD: patch-ac,v 1.1.1.1 2007/09/13 10:07:36 gson Exp $ #======================================================================== # We give all generic rules below. Currently we only need a rule for + # objects. + #======================================================================== + %.o:%.c +- $(CC) -c $(CFLAGS) $< ++ $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $< + diff --git a/math/dieharder/patches/patch-ad b/math/dieharder/patches/patch-ad index 40b527b4105..4b755365c19 100644 --- a/math/dieharder/patches/patch-ad +++ b/math/dieharder/patches/patch-ad @@ -1,6 +1,6 @@ -$NetBSD: patch-ad,v 1.1.1.1 2007/09/13 10:07:36 gson Exp $ +$NetBSD: patch-ad,v 1.2 2009/11/30 17:25:08 joerg Exp $ ---- libdieharder/Makefile.am.orig 2007-05-22 03:34:27.000000000 +0300 +--- libdieharder/Makefile.am.orig 2007-05-22 02:34:27.000000000 +0200 +++ libdieharder/Makefile.am @@ -38,10 +38,7 @@ RELEASE=0 # other stuff in the future) is built. @@ -14,17 +14,23 @@ $NetBSD: patch-ad,v 1.1.1.1 2007/09/13 10:07:36 gson Exp $ #======================================================================== # Define all sources. Note that we choose to depend on ALL the includes -@@ -61,9 +58,6 @@ CC = gcc +@@ -55,14 +52,8 @@ DEFINES = -DVERSION=$(VERSION) + #======================================================================== + # Define parameters and directives needed in compile/link steps. + #======================================================================== +-# C Compiler +-CC = gcc +- # Compile flags (use fairly standard -O3 as default) - CFLAGS = -O3 $(DEFINES) -I ../include - +-CFLAGS = -O3 $(DEFINES) -I ../include +- -# Linker flags -LDFLAGS = -g -fpic -shared -Wl,-soname,$(PROGLIB_SONAME) -- ++CFLAGS += $(DEFINES) -I ../include + # Libraries LIBS = -lgsl -lgslcblas -lm - -@@ -72,22 +66,11 @@ LIBS = -lgsl -lgslcblas -lm +@@ -72,22 +63,11 @@ LIBS = -lgsl -lgslcblas -lm # presume the simplest of dependencies and remake if includes change # for example. #======================================================================== @@ -47,11 +53,11 @@ $NetBSD: patch-ad,v 1.1.1.1 2007/09/13 10:07:36 gson Exp $ +all: $(PROGLIB_A) + +$(PROGLIB_A): $(LIBOBJECTS) -+ $(LIBTOOL) --mode=link gcc -o $(PROGLIB_A:.a=.la) $(LIBOBJECTS:.o=.lo) -rpath ${PREFIX}/lib -version-info 0:0 ++ $(LIBTOOL) --mode=link $(CC) -o $(PROGLIB_A:.a=.la) $(LIBOBJECTS:.o=.lo) -rpath ${PREFIX}/lib -version-info 0:0 #======================================================================== # The only safe place to do commits is in the toplevel directory -@@ -111,7 +94,7 @@ printout: +@@ -111,7 +91,7 @@ printout: # A standard cleanup target #======================================================================== clean: @@ -60,7 +66,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2007/09/13 10:07:36 gson Exp $ #======================================================================== # This is critical. For the toplevel rpm build to succeed, -@@ -120,15 +103,14 @@ clean: +@@ -120,15 +100,13 @@ clean: # This target has to install precisely the files required by the # specfile for the dieharder package, in precisely the right locations. #======================================================================== @@ -73,16 +79,16 @@ $NetBSD: patch-ad,v 1.1.1.1 2007/09/13 10:07:36 gson Exp $ install -d $(includedir)/dieharder; \ install -m 644 ../include/dieharder/*.h $(includedir)/dieharder; \ - install -d $(prefix)/share/man/man3; \ -+ install -d $(mandir)/man3; \ - gzip -c -9 $(PROGMAN) > $(PROGMAN).gz; \ +- gzip -c -9 $(PROGMAN) > $(PROGMAN).gz; \ - install -m 644 $(DIR).3.gz $(prefix)/share/man/man3) -+ install -m 644 $(DIR).3.gz $(mandir)/man3) ++ install -d $(mandir)/man3; \ ++ install -m 644 $(DIR).3 $(mandir)/man3) # FC requires no static lib install # install -m 755 $(PROGLIB_A) $(libdir)/$(PROGLIB_A); \ -@@ -138,4 +120,4 @@ install: $(PROGLIB_SO_VERSION) $(PROGLIB +@@ -138,4 +116,4 @@ install: $(PROGLIB_SO_VERSION) $(PROGLIB # objects. #======================================================================== %.o:%.c $(LIBINCLUDES) Makefile - $(CC) -fpic -c $(CFLAGS) $< -+ $(LIBTOOL) --mode=compile $(CC) -fpic -c $(CFLAGS) $< ++ $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $< |