View | Details | Raw Unified | Return to bug 162955
Collapse All | Expand All

(-)Makefile (-3 / +31 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	maude
8
PORTNAME=	maude
9
PORTVERSION=	2.3
9
PORTVERSION=	2.6
10
PORTREVISION=	2
11
CATEGORIES=	lang
10
CATEGORIES=	lang
12
MASTER_SITES=	http://maude.cs.uiuc.edu/versions/${PORTVERSION}/
11
MASTER_SITES=	http://maude.cs.uiuc.edu/versions/${PORTVERSION}/
13
DISTNAME=	Maude-${PORTVERSION}
12
DISTNAME=	Maude-${PORTVERSION}
Lines 17-33 Link Here
17
16
18
LIB_DEPENDS=	bdd:${PORTSDIR}/science/buddy \
17
LIB_DEPENDS=	bdd:${PORTSDIR}/science/buddy \
19
		tecla:${PORTSDIR}/devel/libtecla \
18
		tecla:${PORTSDIR}/devel/libtecla \
20
		gmp:${PORTSDIR}/math/gmp
19
		gmp:${PORTSDIR}/math/gmp \
20
		sigsegv:${PORTSDIR}/devel/libsigsegv
21
21
22
USE_BISON=	build
22
USE_BISON=	build
23
USE_AUTOTOOLS=	aclocal autoheader automake
23
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
24
CPPFLAGS+=	-I${LOCALBASE}/include
25
CPPFLAGS+=	-I${LOCALBASE}/include
25
LDFLAGS+=	-L${LOCALBASE}/lib
26
LDFLAGS+=	-L${LOCALBASE}/lib
26
CONFIGURE_ARGS=	--datadir=${DATADIR}
27
CONFIGURE_ARGS=	--datadir=${DATADIR}
27
28
29
FULL_MAUDE_VER=	26b
30
OPTIONS=	FULL_MAUDE "Install full-maude${FULL_MAUDE_VER}" On
31
32
.include <bsd.port.options.mk>
33
34
.if defined(WITH_FULL_MAUDE)
35
MASTER_SITES+=	http://maude.lcc.uma.es/FullMaude/FM${FULL_MAUDE_VER}/:fm
36
FULL_MAUDE=	full-maude${FULL_MAUDE_VER}.maude
37
FULL_MAUDE_DIST=	${FULL_MAUDE}.zip
38
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${FULL_MAUDE_DIST}:fm
39
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
40
EXTRACT_DEPENDS+=	unzip:${PORTSDIR}/archivers/unzip
41
PLIST_SUB+=	FULL_MAUDE=""
42
PLIST_SUB+=	FULL_MAUDE_VER="${FULL_MAUDE_VER}"
43
.else
44
PLIST_SUB+=	FULL_MAUDE="@comment "
45
.endif
46
47
.if defined(WITH_FULL_MAUDE)
48
post-extract:
49
	${UNZIP_CMD} ${DISTDIR}/${FULL_MAUDE_DIST} ${FULL_MAUDE} -d ${WRKDIR}
50
.endif
51
28
post-patch:
52
post-patch:
29
	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
53
	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
30
		${WRKSRC}/src/Mixfix/global.hh
54
		${WRKSRC}/src/Mixfix/global.hh
31
55
56
.if defined(WITH_FULL_MAUDE)
57
post-install:
58
	${INSTALL_DATA} ${WRKDIR}/${FULL_MAUDE} ${DATADIR}
59
.endif
32
60
33
.include <bsd.port.mk>
61
.include <bsd.port.mk>
(-)distinfo (-2 / +4 lines)
Lines 1-2 Link Here
1
SHA256 (Maude-2.3.tar.gz) = 67e88d8440fafc67e1121139de496c70844279291e37ba9bee369d113a92fddb
1
SHA256 (Maude-2.6.tar.gz) = a5ba79bf3d30565c874e80b3531b51a7e835b600e86cac82508a6eb9e15f4aa0
2
SIZE (Maude-2.3.tar.gz) = 1441239
2
SIZE (Maude-2.6.tar.gz) = 1600026
3
SHA256 (full-maude26b.maude.zip) = 57ebfc41056b7afc2be48983f6a1311e817d23eeaaed71023471bc4edaf6b128
4
SIZE (full-maude26b.maude.zip) = 154881
(-)files/patch-maude-data-dir.diff (-35 lines)
Lines 1-35 Link Here
1
--- src/Mixfix/global.hh.orig	2008-08-11 02:03:45.000000000 +0200
2
+++ src/Mixfix/global.hh	2008-08-11 02:04:25.000000000 +0200
3
@@ -36,6 +36,7 @@
4
 
5
 #define PRELUDE_NAME	"prelude.maude"
6
 #define MAUDE_LIB	"MAUDE_LIB"
7
+#define MAUDE_DATA_DIR	"%%DATADIR%%"
8
 
9
 bool
10
 findPrelude(string& directory, string& fileName);
11
--- src/Mixfix/global.cc.orig	2008-08-11 01:48:58.000000000 +0200
12
+++ src/Mixfix/global.cc	2008-08-11 01:53:15.000000000 +0200
13
@@ -81,6 +81,8 @@
14
       directory = ".";
15
       if (directoryManager.checkAccess(directory, fileName, R_OK, ext))
16
 	return true;
17
+      if (directoryManager.checkAccess(MAUDE_DATA_DIR, fileName, R_OK,  ext))
18
+	return true;
19
       if (directoryManager.searchPath(MAUDE_LIB, directory, fileName, R_OK, ext))
20
 	return true;
21
       if (!(executableDirectory.empty()) &&
22
--- src/Main/main.cc.orig	2008-08-11 01:48:40.000000000 +0200
23
+++ src/Main/main.cc	2008-08-11 01:55:01.000000000 +0200
24
@@ -267,6 +267,11 @@
25
       directory = executableDirectory;
26
       return true;
27
     }
28
+  if (directoryManager.checkAccess(MAUDE_DATA_DIR, fileName, R_OK))
29
+    {
30
+      directory = MAUDE_DATA_DIR;
31
+      return true;
32
+    }
33
   if (directoryManager.checkAccess(".", fileName, R_OK))
34
     {
35
       directory = ".";
(-)files/patch-src-Main-Makefile.in (-327 lines)
Lines 1-327 Link Here
1
--- src/Main/Makefile.in.orig	2007-02-02 19:22:06.000000000 -0600
2
+++ src/Main/Makefile.in	2010-09-28 10:17:08.000000000 -0500
3
@@ -1,2 +1,2 @@
4
-# Makefile.in generated by automake 1.9.1 from Makefile.am.
5
+# Makefile.in generated by automake 1.10.3 from Makefile.am.
6
 # @configure_input@
7
@@ -4,3 +4,4 @@
8
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
9
-# 2003, 2004  Free Software Foundation, Inc.
10
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
11
+# Inc.
12
 # This Makefile.in is free software; the Free Software Foundation
13
@@ -16,6 +17,3 @@
14
 
15
-SOURCES = $(maude_SOURCES)
16
 
17
-srcdir = @srcdir@
18
-top_srcdir = @top_srcdir@
19
 VPATH = @srcdir@
20
@@ -24,5 +22,3 @@
21
 pkgincludedir = $(includedir)/@PACKAGE@
22
-top_builddir = ../..
23
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24
-INSTALL = @INSTALL@
25
 install_sh_DATA = $(install_sh) -c -m 644
26
@@ -50,3 +46,3 @@
27
 CONFIG_CLEAN_FILES =
28
-am__installdirs = "$(DESTDIR)$(bindir)"
29
+am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(datadir)"
30
 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
31
@@ -55,6 +51,3 @@
32
 maude_OBJECTS = $(am_maude_OBJECTS)
33
-@BUILD_COMPILER_TRUE@am__DEPENDENCIES_1 =  \
34
-@BUILD_COMPILER_TRUE@	../FullCompiler/libfullCompiler.a
35
-am__DEPENDENCIES_2 =
36
-@USE_DLMALLOC_TRUE@am__DEPENDENCIES_3 = ../3rdParty/libdlmalloc.a
37
+am__DEPENDENCIES_1 =
38
 maude_DEPENDENCIES = ../Mixfix/libmixfix.a \
39
@@ -71,7 +64,6 @@
40
 	../MSCP10/libmscp10.a ../Temporal/libtemporal.a \
41
-	../IO_Stuff/libIO_Stuff.a $(am__DEPENDENCIES_1) \
42
-	../Utility/libutility.a $(am__DEPENDENCIES_2) \
43
-	$(am__DEPENDENCIES_2) $(am__DEPENDENCIES_2) \
44
-	$(am__DEPENDENCIES_3)
45
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
46
+	../IO_Stuff/libIO_Stuff.a $(FULL_COMPILER_LIB) \
47
+	../Utility/libutility.a $(am__DEPENDENCIES_1) \
48
+	$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) $(DLMALLOC_LIB)
49
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
50
 depcomp = $(SHELL) $(top_srcdir)/depcomp
51
@@ -85,2 +77,10 @@
52
 DIST_SOURCES = $(maude_SOURCES)
53
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
54
+am__vpath_adj = case $$p in \
55
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
56
+    *) f=$$p;; \
57
+  esac;
58
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
59
+dataDATA_INSTALL = $(INSTALL_DATA)
60
+DATA = $(data_DATA)
61
 ETAGS = etags
62
@@ -89,4 +89,2 @@
63
 ACLOCAL = @ACLOCAL@
64
-AMDEP_FALSE = @AMDEP_FALSE@
65
-AMDEP_TRUE = @AMDEP_TRUE@
66
 AMTAR = @AMTAR@
67
@@ -98,4 +96,2 @@
68
 BUDDY_LIB = @BUDDY_LIB@
69
-BUILD_COMPILER_FALSE = @BUILD_COMPILER_FALSE@
70
-BUILD_COMPILER_TRUE = @BUILD_COMPILER_TRUE@
71
 CC = @CC@
72
@@ -118,2 +114,4 @@
73
 GMP_LIBS = @GMP_LIBS@
74
+GREP = @GREP@
75
+INSTALL = @INSTALL@
76
 INSTALL_DATA = @INSTALL_DATA@
77
@@ -127,2 +125,3 @@
78
 MAKEINFO = @MAKEINFO@
79
+MKDIR_P = @MKDIR_P@
80
 OBJEXT = @OBJEXT@
81
@@ -133,2 +132,3 @@
82
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
83
+PACKAGE_URL = @PACKAGE_URL@
84
 PACKAGE_VERSION = @PACKAGE_VERSION@
85
@@ -140,13 +140,9 @@
86
 TECLA_LIBS = @TECLA_LIBS@
87
-USE_DLMALLOC_FALSE = @USE_DLMALLOC_FALSE@
88
-USE_DLMALLOC_TRUE = @USE_DLMALLOC_TRUE@
89
 VERSION = @VERSION@
90
+abs_builddir = @abs_builddir@
91
+abs_srcdir = @abs_srcdir@
92
+abs_top_builddir = @abs_top_builddir@
93
+abs_top_srcdir = @abs_top_srcdir@
94
 ac_ct_CC = @ac_ct_CC@
95
 ac_ct_CXX = @ac_ct_CXX@
96
-ac_ct_RANLIB = @ac_ct_RANLIB@
97
-ac_ct_STRIP = @ac_ct_STRIP@
98
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
99
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
100
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
101
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
102
 am__include = @am__include@
103
@@ -162,3 +158,7 @@
104
 build_vendor = @build_vendor@
105
+builddir = @builddir@
106
 datadir = @datadir@
107
+datarootdir = @datarootdir@
108
+docdir = @docdir@
109
+dvidir = @dvidir@
110
 exec_prefix = @exec_prefix@
111
@@ -169,2 +169,3 @@
112
 host_vendor = @host_vendor@
113
+htmldir = @htmldir@
114
 includedir = @includedir@
115
@@ -174,2 +175,3 @@
116
 libexecdir = @libexecdir@
117
+localedir = @localedir@
118
 localstatedir = @localstatedir@
119
@@ -178,8 +180,22 @@
120
 oldincludedir = @oldincludedir@
121
+pdfdir = @pdfdir@
122
 prefix = @prefix@
123
 program_transform_name = @program_transform_name@
124
+psdir = @psdir@
125
 sbindir = @sbindir@
126
 sharedstatedir = @sharedstatedir@
127
+srcdir = @srcdir@
128
 sysconfdir = @sysconfdir@
129
 target_alias = @target_alias@
130
+top_build_prefix = @top_build_prefix@
131
+top_builddir = @top_builddir@
132
+top_srcdir = @top_srcdir@
133
+data_DATA = \
134
+	prelude.maude \
135
+	model-checker.maude \
136
+	socket.maude \
137
+	linear.maude \
138
+	machine-int.maude \
139
+	term-order.maude
140
+
141
 @BUILD_COMPILER_TRUE@FULL_COMPILER_LIB = ../FullCompiler/libfullCompiler.a
142
@@ -260,4 +276,4 @@
143
 	    *$$dep*) \
144
-	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
145
-		&& exit 0; \
146
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
147
+	        && { if test -f $@; then exit 0; else break; fi; }; \
148
 	      exit 1;; \
149
@@ -310,3 +326,3 @@
150
 	@rm -f maude$(EXEEXT)
151
-	$(CXXLINK) $(maude_LDFLAGS) $(maude_OBJECTS) $(maude_LDADD) $(LIBS)
152
+	$(CXXLINK) $(maude_OBJECTS) $(maude_LDADD) $(LIBS)
153
 
154
@@ -321,4 +337,4 @@
155
 .cc.o:
156
-@am__fastdepCXX_TRUE@	if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
157
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
158
+@am__fastdepCXX_TRUE@	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
159
+@am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
160
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
161
@@ -328,4 +344,4 @@
162
 .cc.obj:
163
-@am__fastdepCXX_TRUE@	if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
164
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
165
+@am__fastdepCXX_TRUE@	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
166
+@am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
167
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
168
@@ -335,4 +351,4 @@
169
 maude-main.o: main.cc
170
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(maude_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT maude-main.o -MD -MP -MF "$(DEPDIR)/maude-main.Tpo" -c -o maude-main.o `test -f 'main.cc' || echo '$(srcdir)/'`main.cc; \
171
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/maude-main.Tpo" "$(DEPDIR)/maude-main.Po"; else rm -f "$(DEPDIR)/maude-main.Tpo"; exit 1; fi
172
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(maude_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT maude-main.o -MD -MP -MF $(DEPDIR)/maude-main.Tpo -c -o maude-main.o `test -f 'main.cc' || echo '$(srcdir)/'`main.cc
173
+@am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/maude-main.Tpo $(DEPDIR)/maude-main.Po
174
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='main.cc' object='maude-main.o' libtool=no @AMDEPBACKSLASH@
175
@@ -342,4 +358,4 @@
176
 maude-main.obj: main.cc
177
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(maude_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT maude-main.obj -MD -MP -MF "$(DEPDIR)/maude-main.Tpo" -c -o maude-main.obj `if test -f 'main.cc'; then $(CYGPATH_W) 'main.cc'; else $(CYGPATH_W) '$(srcdir)/main.cc'; fi`; \
178
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/maude-main.Tpo" "$(DEPDIR)/maude-main.Po"; else rm -f "$(DEPDIR)/maude-main.Tpo"; exit 1; fi
179
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(maude_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT maude-main.obj -MD -MP -MF $(DEPDIR)/maude-main.Tpo -c -o maude-main.obj `if test -f 'main.cc'; then $(CYGPATH_W) 'main.cc'; else $(CYGPATH_W) '$(srcdir)/main.cc'; fi`
180
+@am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/maude-main.Tpo $(DEPDIR)/maude-main.Po
181
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='main.cc' object='maude-main.obj' libtool=no @AMDEPBACKSLASH@
182
@@ -347,3 +363,19 @@
183
 @am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(maude_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o maude-main.obj `if test -f 'main.cc'; then $(CYGPATH_W) 'main.cc'; else $(CYGPATH_W) '$(srcdir)/main.cc'; fi`
184
-uninstall-info-am:
185
+install-dataDATA: $(data_DATA)
186
+	@$(NORMAL_INSTALL)
187
+	test -z "$(datadir)" || $(mkdir_p) "$(DESTDIR)$(datadir)"
188
+	@list='$(data_DATA)'; for p in $$list; do \
189
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
190
+	  f=$(am__strip_dir) \
191
+	  echo " $(dataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(datadir)/$$f'"; \
192
+	  $(dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(datadir)/$$f"; \
193
+	done
194
+
195
+uninstall-dataDATA:
196
+	@$(NORMAL_UNINSTALL)
197
+	@list='$(data_DATA)'; for p in $$list; do \
198
+	  f=$(am__strip_dir) \
199
+	  echo " rm -f '$(DESTDIR)$(datadir)/$$f'"; \
200
+	  rm -f "$(DESTDIR)$(datadir)/$$f"; \
201
+	done
202
 
203
@@ -354,4 +386,4 @@
204
 	  done | \
205
-	  $(AWK) '    { files[$$0] = 1; } \
206
-	       END { for (i in files) print i; }'`; \
207
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
208
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
209
 	mkid -fID $$unique
210
@@ -367,4 +399,4 @@
211
 	  done | \
212
-	  $(AWK) '    { files[$$0] = 1; } \
213
-	       END { for (i in files) print i; }'`; \
214
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
215
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
216
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
217
@@ -378,3 +410,2 @@
218
 	tags=; \
219
-	here=`pwd`; \
220
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
221
@@ -383,4 +414,4 @@
222
 	  done | \
223
-	  $(AWK) '    { files[$$0] = 1; } \
224
-	       END { for (i in files) print i; }'`; \
225
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
226
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
227
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
228
@@ -398,18 +429,17 @@
229
 distdir: $(DISTFILES)
230
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
231
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
232
-	list='$(DISTFILES)'; for file in $$list; do \
233
-	  case $$file in \
234
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
235
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
236
-	  esac; \
237
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
238
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
239
+	list='$(DISTFILES)'; \
240
+	  dist_files=`for file in $$list; do echo $$file; done | \
241
+	  sed -e "s|^$$srcdirstrip/||;t" \
242
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
243
+	case $$dist_files in \
244
+	  */*) $(mkdir_p) `echo "$$dist_files" | \
245
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
246
+			   sort -u` ;; \
247
+	esac; \
248
+	for file in $$dist_files; do \
249
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
250
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
251
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
252
-	    dir="/$$dir"; \
253
-	    $(mkdir_p) "$(distdir)$$dir"; \
254
-	  else \
255
-	    dir=''; \
256
-	  fi; \
257
 	  if test -d $$d/$$file; then \
258
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
259
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
260
@@ -426,5 +456,5 @@
261
 check: check-am
262
-all-am: Makefile $(PROGRAMS)
263
+all-am: Makefile $(PROGRAMS) $(DATA)
264
 installdirs:
265
-	for dir in "$(DESTDIR)$(bindir)"; do \
266
+	for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(datadir)"; do \
267
 	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
268
@@ -471,2 +501,4 @@
269
 
270
+html-am:
271
+
272
 info: info-am
273
@@ -475,3 +507,7 @@
274
 
275
-install-data-am:
276
+install-data-am: install-dataDATA
277
+
278
+install-dvi: install-dvi-am
279
+
280
+install-dvi-am:
281
 
282
@@ -479,6 +515,20 @@
283
 
284
+install-html: install-html-am
285
+
286
+install-html-am:
287
+
288
 install-info: install-info-am
289
 
290
+install-info-am:
291
+
292
 install-man:
293
 
294
+install-pdf: install-pdf-am
295
+
296
+install-pdf-am:
297
+
298
+install-ps: install-ps-am
299
+
300
+install-ps-am:
301
+
302
 installcheck-am:
303
@@ -502,3 +552,5 @@
304
 
305
-uninstall-am: uninstall-binPROGRAMS uninstall-info-am
306
+uninstall-am: uninstall-binPROGRAMS uninstall-dataDATA
307
+
308
+.MAKE: install-am install-strip
309
 
310
@@ -508,8 +560,11 @@
311
 	html-am info info-am install install-am install-binPROGRAMS \
312
-	install-data install-data-am install-exec install-exec-am \
313
-	install-info install-info-am install-man install-strip \
314
-	installcheck installcheck-am installdirs maintainer-clean \
315
-	maintainer-clean-generic mostlyclean mostlyclean-compile \
316
-	mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
317
-	uninstall-am uninstall-binPROGRAMS uninstall-info-am
318
+	install-data install-data-am install-dataDATA install-dvi \
319
+	install-dvi-am install-exec install-exec-am install-html \
320
+	install-html-am install-info install-info-am install-man \
321
+	install-pdf install-pdf-am install-ps install-ps-am \
322
+	install-strip installcheck installcheck-am installdirs \
323
+	maintainer-clean maintainer-clean-generic mostlyclean \
324
+	mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
325
+	tags uninstall uninstall-am uninstall-binPROGRAMS \
326
+	uninstall-dataDATA
327
 
(-)files/patch-src__Main__main.cc (+14 lines)
Line 0 Link Here
1
--- ./src/Main/main.cc.orig	2010-03-19 22:29:26.000000000 +0100
2
+++ ./src/Main/main.cc	2011-11-10 19:33:07.000000000 +0100
3
@@ -269,6 +269,11 @@
4
       directory = executableDirectory;
5
       return true;
6
     }
7
+  if (directoryManager.checkAccess(MAUDE_DATADIR, fileName, R_OK))
8
+    {
9
+      directory = MAUDE_DATADIR;
10
+      return true;
11
+    }
12
   if (directoryManager.checkAccess(".", fileName, R_OK))
13
     {
14
       directory = ".";
(-)files/patch-src__Mixfix__global.cc (+14 lines)
Line 0 Link Here
1
--- ./src/Mixfix/global.cc.orig	2006-10-07 01:09:16.000000000 +0200
2
+++ ./src/Mixfix/global.cc	2011-11-10 19:36:44.000000000 +0100
3
@@ -89,6 +89,11 @@
4
 	  directory = executableDirectory;
5
 	  return true;
6
 	}
7
+      if (directoryManager.checkAccess(MAUDE_DATADIR, fileName, R_OK, ext))
8
+	{
9
+	  directory = MAUDE_DATADIR;
10
+	  return true;
11
+	}
12
     }
13
   else if (p + 1 < userFileName.length())
14
     {
(-)files/patch-src__Mixfix__global.hh (+10 lines)
Line 0 Link Here
1
--- ./src/Mixfix/global.hh.orig	2006-10-07 01:09:50.000000000 +0200
2
+++ ./src/Mixfix/global.hh	2011-10-12 14:05:37.000000000 +0200
3
@@ -36,6 +36,7 @@
4
 
5
 #define PRELUDE_NAME	"prelude.maude"
6
 #define MAUDE_LIB	"MAUDE_LIB"
7
+#define MAUDE_DATADIR	"%%DATADIR%%"
8
 
9
 bool
10
 findPrelude(string& directory, string& fileName);
(-)pkg-plist (+2 lines)
Lines 1-6 Link Here
1
bin/maude
1
bin/maude
2
%%FULL_MAUDE%%%%DATADIR%%/full-maude%%FULL_MAUDE_VER%%.maude
2
%%DATADIR%%/linear.maude
3
%%DATADIR%%/linear.maude
3
%%DATADIR%%/machine-int.maude
4
%%DATADIR%%/machine-int.maude
5
%%DATADIR%%/metaInterpreter.maude
4
%%DATADIR%%/model-checker.maude
6
%%DATADIR%%/model-checker.maude
5
%%DATADIR%%/prelude.maude
7
%%DATADIR%%/prelude.maude
6
%%DATADIR%%/socket.maude
8
%%DATADIR%%/socket.maude

Return to bug 162955