diff options
author | agc <agc@pkgsrc.org> | 2013-05-11 21:21:22 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2013-05-11 21:21:22 +0000 |
commit | 843f9c72d32b29f4940bee5f0a8dde9231d9d44f (patch) | |
tree | 5df2e43770c9dd992895589486286cffebdc603d /devel/ldpc | |
parent | 9410ca267c4e3c1da9e90531ecfe3748d37453a0 (diff) | |
download | pkgsrc-843f9c72d32b29f4940bee5f0a8dde9231d9d44f.tar.gz |
Allow this package to be cross-built - pick up ${CC} from the environment,
if defined.
Diffstat (limited to 'devel/ldpc')
-rw-r--r-- | devel/ldpc/distinfo | 4 | ||||
-rw-r--r-- | devel/ldpc/patches/patch-aa | 22 |
2 files changed, 20 insertions, 6 deletions
diff --git a/devel/ldpc/distinfo b/devel/ldpc/distinfo index a4bfb1200c7..98a09e84177 100644 --- a/devel/ldpc/distinfo +++ b/devel/ldpc/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.2 2011/02/10 16:15:36 agc Exp $ +$NetBSD: distinfo,v 1.3 2013/05/11 21:21:22 agc Exp $ SHA1 (LDPC-2006-02-08.tar.gz) = b4bc77ed5a56976dca7d47f1065b0d59863385d9 RMD160 (LDPC-2006-02-08.tar.gz) = 37ffa0afc895ab7448d77bf5cdfb05735443c317 Size (LDPC-2006-02-08.tar.gz) = 405064 bytes -SHA1 (patch-aa) = e7594fa0595c3bef0d6548d706aaa26e3380748b +SHA1 (patch-aa) = 0be0a5f4b23fc002927f3844b98dc1d7767abae1 diff --git a/devel/ldpc/patches/patch-aa b/devel/ldpc/patches/patch-aa index bf10283624c..511eea0c2f9 100644 --- a/devel/ldpc/patches/patch-aa +++ b/devel/ldpc/patches/patch-aa @@ -1,10 +1,24 @@ -$NetBSD: patch-aa,v 1.1 2011/02/10 16:15:36 agc Exp $ +$NetBSD: patch-aa,v 1.2 2013/05/11 21:21:22 agc Exp $ Refer to the file of random numbers in the correct location ---- Makefile 2011/02/10 04:47:36 1.1 -+++ Makefile 2011/02/10 04:46:57 -@@ -104,7 +104,7 @@ +Pick up ${CC} from environment if defined + +--- Makefile.orig 2006-02-08 18:48:55.000000000 -0800 ++++ Makefile 2013-05-11 13:54:48.000000000 -0700 +@@ -25,8 +25,9 @@ + # make things more complex and error-prone. + + +-COMPILE = cc -c -O # Command to compile a module from .c to .o +-LINK = cc # Command to link a program ++CC?= cc ++COMPILE = ${CC} -c -O # Command to compile a module from .c to .o ++LINK = ${CC} # Command to link a program + + + # MAKE ALL THE MAIN PROGRAMS. First makes the modules used. +@@ -104,7 +105,7 @@ $(COMPILE) mod2sparse.c $(COMPILE) mod2convert.c $(COMPILE) distrib.c |