ports/java/eclipse-devel/files/patch-features-launchers-gtk-build.sh
Norikatsu Shigemura 0bc453c3e6 Add eclipse-devel 3.1M6, an open extensible IDE for anything and nothing
in particular.

PR:		ports/79917
Submitted by:	various members of freebsd-java
2005-05-07 05:00:40 +00:00

41 lines
1.1 KiB
Bash

--- features/org.eclipse.launchers/library/gtk/build.sh.orig Fri Apr 1 13:57:19 2005
+++ features/org.eclipse.launchers/library/gtk/build.sh Sun Apr 3 11:37:51 2005
@@ -67,6 +67,23 @@
;;
esac
;;
+ "FreeBSD")
+ makefile="make_freebsd.mak"
+ defaultOS="freebsd"
+ case $MODEL in
+ amd64)
+ defaultOSArch="amd64"
+ OUTPUT_DIR="../../bin/$defaultWS/$defaultOS/$defaultOSArch"
+ ;;
+ i?86)
+ defaultOSArch="x86"
+ OUTPUT_DIR="../../bin/$defaultWS/$defaultOS/$defaultOSArch"
+ ;;
+ *)
+ echo "*** Unknown MODEL <${MODEL}>"
+ ;;
+ esac
+ ;;
"SunOS")
makefile="make_solaris.mak"
defaultOS="solaris"
@@ -112,11 +129,11 @@
# If the OS is supported (a makefile exists)
if [ "$makefile" != "" ]; then
if [ "$extraArgs" != "" ]; then
- make -f $makefile $extraArgs
+ gmake -f $makefile $extraArgs
else
echo "Building $OS launcher. Defaults: -os $DEFAULT_OS -arch $DEFAULT_OS_ARCH -ws $DEFAULT_WS"
- make -f $makefile clean
- make -f $makefile all
+ gmake -f $makefile clean
+ gmake -f $makefile all
fi
else
echo "Unknown OS ($OS) -- build aborted"