Blob Blame Raw
diff -up dwdiff-2.0.7/configure.localedir dwdiff-2.0.7/configure
--- dwdiff-2.0.7/configure.localedir	2013-09-12 11:04:46.000000000 +0200
+++ dwdiff-2.0.7/configure	2013-10-01 21:32:18.832510533 +0200
@@ -148,6 +148,8 @@ create_makefile() {
 		replace_default prefix "${PREFIX}"
 		replace_default mandir "${MANDIR}"
 		replace_default CFLAGS "${CFLAGS}"
+		replace_default BIND_DIR "${BIND_DIR}"
+		replace_default DOC_DIR "${DOC_DIR}"
 
 
 		[ -n "${TEST_INSTALL}" ] && replace_default INSTALL "${INSTALL}"
@@ -216,6 +218,12 @@ EOF
 		--prefix=*)
 			PREFIX=`echo "${PARAM}" | sed 's/^--prefix=//'`
 		;;
+		--binddir=*)
+			BIND_DIR=`echo "${PARAM}" | sed 's/--binddir=//g'`
+		;;
+		--docdir=*)
+			DOC_DIR=`echo "${PARAM}" | sed 's/--docdir=//g'`
+		;;
 		--mandir=*)
 			MANDIR=`echo "${PARAM}" | sed 's/^--mandir=//'`
 		;;
diff -up dwdiff-2.0.7/Makefile.in.localedir dwdiff-2.0.7/Makefile.in
--- dwdiff-2.0.7/Makefile.in.localedir	2013-09-12 11:04:46.000000000 +0200
+++ dwdiff-2.0.7/Makefile.in	2013-10-01 21:33:22.795507999 +0200
@@ -34,6 +34,8 @@ GETTEXTLIBS=
 #  translations.
 LOCALEDIR=$(prefix)/share/locale
 LINGUAS=
+BIND_DIR=$(prefix)/share/locale
+DOC_DIR=$(prefix)/share/doc/dwdiff
 
 # Unicode/ICU config
 # If unicode support is to be enabled, the following flags should be set
@@ -54,7 +56,7 @@ DWFILTER=yes
 
 # Miscelaneous install paths
 bindir=$(prefix)/bin
-docdir=$(prefix)/share/doc/dwdiff-2.0.7
+docdir=$(prefix)/$(DOC_DIR)
 mandir=$(prefix)/share/man
 
 all: dwdiff $(DWFILTER:yes=dwfilter) linguas
@@ -73,7 +75,7 @@ dist-clean: clean
 	rm -rf dwdiff config.log Makefile
 
 .c.o:
-	$(CC) $(CFLAGS) -Isrc $(GETTEXTFLAGS) -DLOCALEDIR=\"$(LOCALEDIR)\" $(ICUFLAGS) -c -o $@ $<
+	$(CC) $(CFLAGS) -Isrc $(GETTEXTFLAGS) -DLOCALEDIR=\"$(BIND_DIR)\" $(ICUFLAGS) -c -o $@ $<
 
 dwdiff: $(OBJECTS_DWDIFF)
 	$(CC) $(CFLAGS) $(LDFLAGS) -o dwdiff $(OBJECTS_DWDIFF) $(LDLIBS) $(ICULIBS) $(GETTEXTLIBS)