Code

rules: Simplified JAVA_ARCHDIR_MAP.
authorSebastian Harl <sh@tokkee.org>
Sun, 10 Jan 2010 20:14:53 +0000 (21:14 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 10 Jan 2010 20:14:53 +0000 (21:14 +0100)
Removed entries that "point" to itself. Instead, let JAVA_ARCHDIR_MAP default
to DEB_BUILD_ARCH, if no map entry is defined for that arch.

debian/rules

index d944454855f460409f2afb6541bc520abc350225..a55d09c862ccb508219760087b2c2150401d1b0d 100755 (executable)
@@ -33,11 +33,12 @@ else
 endif
 
 # The archdir map has been copied from openjdk-6's debian/rules.
-JAVA_ARCHDIR_MAP = alpha=alpha arm=arm armel=arm amd64=amd64 hppa=parisc \
-                       i386=i386 lpia=i386 m68k=m68k mips=mips mipsel=mipsel \
-                       powerpc=ppc sparc=sparc s390=s390 ia64=ia64 sh4=sh4
+JAVA_ARCHDIR_MAP = armel=arm hppa=parisc lpia=i386 powerpc=ppc
 JAVA_ARCHDIR = $(strip $(patsubst $(DEB_BUILD_ARCH)=%, %, \
                        $(filter $(DEB_BUILD_ARCH)=%, $(JAVA_ARCHDIR_MAP))))
+ifeq (,$(JAVA_ARCHDIR))
+       JAVA_ARCHDIR = $(DEB_BUILD_ARCH)
+endif
 JAVA_HOME = /usr/lib/jvm/java-6-openjdk
 JAVA_LIBDIR = $(JAVA_HOME)/jre/lib/$(JAVA_ARCHDIR)/server