summaryrefslogtreecommitdiff
path: root/biology/gromacs/patches
diff options
context:
space:
mode:
authorsbd <sbd>2013-04-01 08:00:15 +0000
committersbd <sbd>2013-04-01 08:00:15 +0000
commit30b3ef63203bc4815826754e6319cf0630fd1473 (patch)
tree4b2c17ed137d59beb597ea6d05b0226f34478723 /biology/gromacs/patches
parenta5cb70e5b29552ddc82c0ee041a0a79e16b2e4f3 (diff)
downloadpkgsrc-30b3ef63203bc4815826754e6319cf0630fd1473.tar.gz
Use host_alias for file paths (as it doesn't contain '-gnu').
Diffstat (limited to 'biology/gromacs/patches')
-rw-r--r--biology/gromacs/patches/patch-aa33
1 files changed, 27 insertions, 6 deletions
diff --git a/biology/gromacs/patches/patch-aa b/biology/gromacs/patches/patch-aa
index 37e72b12be1..bf40b667fb1 100644
--- a/biology/gromacs/patches/patch-aa
+++ b/biology/gromacs/patches/patch-aa
@@ -1,12 +1,30 @@
-$NetBSD: patch-aa,v 1.2 2010/09/03 20:52:39 asau Exp $
+$NetBSD: patch-aa,v 1.3 2013/04/01 08:00:16 sbd Exp $
Allow flags to contain commas.
---- share/template/Makefile.in.orig 2010-08-10 22:56:17.000000000 +0400
-+++ share/template/Makefile.in 2010-08-11 00:14:07.000000000 +0400
-@@ -569,9 +569,9 @@
+--- share/template/Makefile.in.orig 2011-09-21 12:38:30.000000000 +0000
++++ share/template/Makefile.in
+@@ -250,11 +250,11 @@ XLIBS = -lmd@LIBSUFFIX@ -lgmx@LIBSUFFIX@
+ XCC = @CC@
+ @GMX_DOUBLE_FALSE@MYCFLAGS = @CFLAGS@ @INCLUDES@ -I@includedir@
+ @GMX_DOUBLE_TRUE@MYCFLAGS = @CFLAGS@ @INCLUDES@ -I@includedir@ -DGMX_DOUBLE
+-@GMX_DOUBLE_FALSE@template_DATA = template.c README Makefile.@host@ Makefile.pkg
+-@GMX_DOUBLE_TRUE@template_DATA = template.c README Makefile.@host@_double Makefile.pkg
++@GMX_DOUBLE_FALSE@template_DATA = template.c README Makefile.@host_alias@ Makefile.pkg
++@GMX_DOUBLE_TRUE@template_DATA = template.c README Makefile.@host_alias@_double Makefile.pkg
+ EXTRA_DIST = template.c README Template.mak Makefile.pkg CMakeLists.txt.template
+ BUILT_SOURCES = gromacs
+-CLEANFILES = Makefile.@host@ Makefile.@host@_double *~ \\\#*
++CLEANFILES = Makefile.@host_alias@ Makefile.@host_alias@_double *~ \\\#*
+ template_SOURCES = template.c
+ LDADD = ../../src/mdlib/libmd@LIBSUFFIX@.la ../../src/gmxlib/libgmx@LIBSUFFIX@.la
+ all: $(BUILT_SOURCES)
+@@ -569,13 +569,13 @@ uninstall-am: uninstall-templateDATA
+ gromacs:
+ $(LN_S) $(top_srcdir)/include gromacs
- Makefile.@host@ Makefile.@host@_double: Template.mak Makefile
+-Makefile.@host@ Makefile.@host@_double: Template.mak Makefile
++Makefile.@host_alias@ Makefile.@host_alias@_double: Template.mak Makefile
cat $(srcdir)/Template.mak | \
- sed 's,@LDFLAGS\@,$(XLDFLAGS),' | \
- sed 's,@LIBS\@,$(XLIBS),' | \
@@ -15,5 +33,8 @@ Allow flags to contain commas.
+ sed 's|@LIBS\@|$(XLIBS)|' | \
+ sed 's|@CFLAGS\@|$(MYCFLAGS)|' | \
sed 's,@CC\@,$(XCC),' | \
- sed 's,@host\@,@host@,' >$@
+- sed 's,@host\@,@host@,' >$@
++ sed 's,@host\@,@host_alias@,' >$@
#template.$(OBJEXT): gromacs
+
+ clean-local: