aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/classpathx/inetlib-1.1.1/datadir_java.patch
blob: 16302cdafed2f429fafa98720bf3c87c1de2d7b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: inetlib-1.1.1/Makefile.am
===================================================================
--- inetlib-1.1.1.orig/Makefile.am	2008-03-01 10:49:49.000000000 +0100
+++ inetlib-1.1.1/Makefile.am	2008-03-01 10:52:21.000000000 +0100
@@ -7,6 +7,8 @@
 JAVADOC = @JAVADOC@
 JAVADOCFLAGS = @JAVADOCFLAGS@
 
+JARDIR = $(datadir)/java
+
 src = @srcdir@/source
 dst = classes
 doc = @srcdir@/docs
@@ -280,7 +282,7 @@
 	find $(dst) -name '*.class' -exec rm -f '{}' ';'
 
 install-data-local:
-	$(mkinstalldirs) $(prefix)/share/java
-	$(INSTALL_DATA) $(inetlib_jar) $(prefix)/share/java
+	$(mkinstalldirs) $(DESTDIR)/$(JARDIR)
+	$(INSTALL_DATA) $(inetlib_jar) $(DESTDIR)/$(JARDIR)
 
 # End of Makefile.am