Sat May 11 21:21:22 2013 UTC ()
Allow this package to be cross-built - pick up ${CC} from the environment,
if defined.


(agc)
diff -r1.2 -r1.3 pkgsrc/devel/ldpc/distinfo
diff -r1.1 -r1.2 pkgsrc/devel/ldpc/patches/patch-aa

cvs diff -r1.2 -r1.3 pkgsrc/devel/ldpc/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/ldpc/distinfo 2011/02/10 16:15:36 1.2
+++ pkgsrc/devel/ldpc/distinfo 2013/05/11 21:21:22 1.3
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.2 2011/02/10 16:15:36 agc Exp $ 1$NetBSD: distinfo,v 1.3 2013/05/11 21:21:22 agc Exp $
2 2
3SHA1 (LDPC-2006-02-08.tar.gz) = b4bc77ed5a56976dca7d47f1065b0d59863385d9 3SHA1 (LDPC-2006-02-08.tar.gz) = b4bc77ed5a56976dca7d47f1065b0d59863385d9
4RMD160 (LDPC-2006-02-08.tar.gz) = 37ffa0afc895ab7448d77bf5cdfb05735443c317 4RMD160 (LDPC-2006-02-08.tar.gz) = 37ffa0afc895ab7448d77bf5cdfb05735443c317
5Size (LDPC-2006-02-08.tar.gz) = 405064 bytes 5Size (LDPC-2006-02-08.tar.gz) = 405064 bytes
6SHA1 (patch-aa) = e7594fa0595c3bef0d6548d706aaa26e3380748b 6SHA1 (patch-aa) = 0be0a5f4b23fc002927f3844b98dc1d7767abae1

cvs diff -r1.1 -r1.2 pkgsrc/devel/ldpc/patches/patch-aa (expand / switch to unified diff)

--- pkgsrc/devel/ldpc/patches/patch-aa 2011/02/10 16:15:36 1.1
+++ pkgsrc/devel/ldpc/patches/patch-aa 2013/05/11 21:21:22 1.2
@@ -1,15 +1,29 @@ @@ -1,15 +1,29 @@
1$NetBSD: patch-aa,v 1.1 2011/02/10 16:15:36 agc Exp $ 1$NetBSD: patch-aa,v 1.2 2013/05/11 21:21:22 agc Exp $
2 2
3Refer to the file of random numbers in the correct location 3Refer to the file of random numbers in the correct location
4 4
5--- Makefile 2011/02/10 04:47:36 1.1 5Pick up ${CC} from environment if defined
6+++ Makefile 2011/02/10 04:46:57 6
7@@ -104,7 +104,7 @@ 7--- Makefile.orig 2006-02-08 18:48:55.000000000 -0800
 8+++ Makefile 2013-05-11 13:54:48.000000000 -0700
 9@@ -25,8 +25,9 @@
 10 # make things more complex and error-prone.
 11
 12
 13-COMPILE = cc -c -O # Command to compile a module from .c to .o
 14-LINK = cc # Command to link a program
 15+CC?= cc
 16+COMPILE = ${CC} -c -O # Command to compile a module from .c to .o
 17+LINK = ${CC} # Command to link a program
 18
 19
 20 # MAKE ALL THE MAIN PROGRAMS. First makes the modules used.
 21@@ -104,7 +105,7 @@
8 $(COMPILE) mod2sparse.c 22 $(COMPILE) mod2sparse.c
9 $(COMPILE) mod2convert.c 23 $(COMPILE) mod2convert.c
10 $(COMPILE) distrib.c 24 $(COMPILE) distrib.c
11- $(COMPILE) -DRAND_FILE=\"`pwd`/randfile\" rand.c 25- $(COMPILE) -DRAND_FILE=\"`pwd`/randfile\" rand.c
12+ $(COMPILE) -DRAND_FILE=\"${PREFIX}/share/ldpc/randfile\" rand.c 26+ $(COMPILE) -DRAND_FILE=\"${PREFIX}/share/ldpc/randfile\" rand.c
13  27
14  28
15 # CLEAN UP ALL PROGRAMS AND REMOVE ALL FILES PRODUCED BY TESTS AND EXAMPLES. 29 # CLEAN UP ALL PROGRAMS AND REMOVE ALL FILES PRODUCED BY TESTS AND EXAMPLES.