diff -urN ddd-3.3.12/ddd/Makefile.am ddd-3.3.12.new/ddd/Makefile.am
--- ddd-3.3.12/ddd/Makefile.am	2009-02-11 09:25:07.000000000 -0800
+++ ddd-3.3.12.new/ddd/Makefile.am	2009-11-10 12:40:43.000000000 -0800
@@ -49,8 +49,8 @@
 	   .xface .fig .eps .jpg .png .gif .pdf $(IMGEXT) $(IMGEXT2)
 
 # Shared data installation
-dddrootdir    = $(pkgdatadir)-$(VERSION)
-dddappdir     = $(pkgdatadir)-$(VERSION)/$(ddd)
+altdddrootdir = $(pkgdatadir)-$(VERSION)
+dddappdir     = $(pkgdatadir)/$(ddd)
 
 
 # -----------------------------------------------------------------------------
@@ -2031,8 +2031,8 @@
 	    $(DELETE_CR) > $@~ && $(MV) $@~ $@
 root.h: $(srcdir)/root.h.in $(top_builddir)/config.status
 	$(CAT) $(srcdir)/root.h.in | \
-	$(SED) "s%@ROOT@%$(dddrootdir)%" | \
-	$(SED) "s%@ALT_ROOT@%$(pkgdatadir)%" | \
+	$(SED) "s%@ROOT@%$(pkgdatadir)%" | \
+	$(SED) "s%@ALT_ROOT@%$(altdddrootdir)%" | \
 	    $(DELETE_CR) > $@~ && $(MV) $@~ $@
 
 
diff -urN ddd-3.3.12/Makefile.am ddd-3.3.12.new/Makefile.am
--- ddd-3.3.12/Makefile.am	2009-02-11 09:25:09.000000000 -0800
+++ ddd-3.3.12.new/Makefile.am	2009-11-10 12:40:43.000000000 -0800
@@ -41,7 +41,7 @@
 # Data.
 # -----------------------------------------------------------------------------
 
-dddroot_DATA = NEWS COPYING
+pkgdata_DATA = NEWS COPYING
 
 
 # -----------------------------------------------------------------------------
diff -urN ddd-3.3.12/themes/Makefile.am ddd-3.3.12.new/themes/Makefile.am
--- ddd-3.3.12/themes/Makefile.am	2009-02-11 09:24:48.000000000 -0800
+++ ddd-3.3.12.new/themes/Makefile.am	2009-11-10 12:41:16.000000000 -0800
@@ -37,7 +37,7 @@
 # DDD themes.
 # -----------------------------------------------------------------------------
 
-themesrootdir = $(dddrootdir)/themes
+themesrootdir = $(pkgdatadir)/themes
 themesroot_DATA = 	\
 	green.vsl 	\
 	red.vsl 	\
diff -urN ddd-3.3.12/vsllib/Makefile.am ddd-3.3.12.new/vsllib/Makefile.am
--- ddd-3.3.12/vsllib/Makefile.am	2009-02-11 09:24:49.000000000 -0800
+++ ddd-3.3.12.new/vsllib/Makefile.am	2009-11-10 12:40:43.000000000 -0800
@@ -36,7 +36,7 @@
 # VSL files.
 # -----------------------------------------------------------------------------
 
-vslrootdir = $(dddrootdir)/vsllib
+vslrootdir = $(pkgdatadir)/vsllib
 vslroot_DATA = \
 	arcs.vsl      \
 	builtin.vsl   \
