diff options
Diffstat (limited to 'comms/java-commapi-freebsd/files/patch-Makefile')
-rw-r--r-- | comms/java-commapi-freebsd/files/patch-Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/comms/java-commapi-freebsd/files/patch-Makefile b/comms/java-commapi-freebsd/files/patch-Makefile new file mode 100644 index 000000000000..3fa6c647168e --- /dev/null +++ b/comms/java-commapi-freebsd/files/patch-Makefile @@ -0,0 +1,23 @@ +--- Makefile.orig Thu Jan 30 04:31:19 2003 ++++ Makefile Wed Oct 12 23:13:45 2005 +@@ -24,7 +24,8 @@ + JAVAC_CLASSPATH = $(JAVA_HOME)/jre/lib/ext/comm.jar + JAVAH = $(JAVA_HOME)/bin/javah + JARFILE = jar/CommDriver.jar +-CFLAGS = -O1 -shared -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd -I$(JAVA_HOME)/include/bsd ++CFLAGS = -O1 -fPIC -shared -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd -I$(JAVA_HOME)/include/bsd ++MACHINE_ARCH ?= i386 + + .SUFFIXES: .java .class + +@@ -37,8 +38,8 @@ + # Install stuff + # + install: all +- install -c -o bin -g bin -m 0444 lib/libParallel.so $(JAVA_HOME)/jre/lib/i386 +- install -c -o bin -g bin -m 0444 lib/libSerial.so $(JAVA_HOME)/jre/lib/i386 ++ install -c -o bin -g bin -m 0444 lib/libParallel.so $(JAVA_HOME)/jre/lib/$(MACHINE_ARCH) ++ install -c -o bin -g bin -m 0444 lib/libSerial.so $(JAVA_HOME)/jre/lib/$(MACHINE_ARCH) + install -c -o bin -g bin -m 0444 javax.comm.properties $(JAVA_HOME)/jre/lib + install -c -o bin -g bin -m 0444 $(JARFILE) $(JAVA_HOME)/jre/lib/ext + |