diff options
Diffstat (limited to 'java/eclipse/scripts')
-rw-r--r-- | java/eclipse/scripts/pre-build | 25 | ||||
-rw-r--r-- | java/eclipse/scripts/pre-patch | 53 |
2 files changed, 3 insertions, 75 deletions
diff --git a/java/eclipse/scripts/pre-build b/java/eclipse/scripts/pre-build index c47955570d3d..4974d1c99523 100644 --- a/java/eclipse/scripts/pre-build +++ b/java/eclipse/scripts/pre-build @@ -1,14 +1,11 @@ #!/bin/sh -# -# Build quirks -# -cd ${WRKSRC} ARCHS="aarch64 amd64 powerpc64 powerpc64le" +cd ${WRKSRC} + # Create dummy repo for jgit -if [ ! -d .git ] -then +if [ ! -d .git ]; then mkdir ${WRKDIR}/githome ( export HOME=${WRKDIR}/githome @@ -19,19 +16,3 @@ then git commit -q --message="java/eclipse" --author="Eclipse <eclipse@freebsd.org>" ) fi - -# Create dummy targets -GTK_EXE="rt.equinox.binaries/org.eclipse.equinox.executable/bin/gtk" -for A in ${ARCHS} -do - mkdir -p ${GTK_EXE}/freebsd/${A} - touch ${GTK_EXE}/freebsd/${A}/eclipse -done - -arch=`uname -p` - -if [ "$arch" == "powerpc64" ] -then - sed -i '' -e 's/ppc64le/ppc64/g' eclipse.platform.swt/bundles/org.eclipse.swt/'Eclipse SWT'/gtk/org/eclipse/swt/graphics/Device.java - sed -i '' -e 's/ppc64le/ppc64/g' eclipse.platform.swt/bundles/org.eclipse.swt/'Eclipse SWT'/gtk/org/eclipse/swt/widgets/Control.java -fi diff --git a/java/eclipse/scripts/pre-patch b/java/eclipse/scripts/pre-patch deleted file mode 100644 index 122ee1a9488c..000000000000 --- a/java/eclipse/scripts/pre-patch +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh -# -# Reorg source files, reusing Linux sources as the base for FreeBSD builds. -# -LINUX_DIRS=" - eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.* - eclipse.platform.resources/bundles/org.eclipse.core.filesystem.linux.* - eclipse.platform.resources/bundles/org.eclipse.core.filesystem/natives/unix/linux - eclipse.platform.team/bundles/org.eclipse.core.net.linux* - rt.equinox.bundles/bundles/org.eclipse.equinox.security.linux* - rt.equinox.binaries/org.eclipse.equinox.launcher.gtk.linux.* - rt.equinox.framework/bundles/org.eclipse.equinox.launcher.gtk.linux.*" - -rename_arch () -{ - # Rename to FreeBSD TARGET_ARCH names - F=$(echo $1 | sed -e s/linux/freebsd/) - case $F in - *.arm) - echo $(echo $F | sed -e 's/arm/armv7/');; - *.ppc64le) - echo $(echo $F | sed -e 's/ppc64le/powerpc64/');; - *.x86) - echo $(echo $F | sed -e 's/x86/i386/');; - *.x86_64) - echo $(echo $F | sed -e 's/x86_64/amd64/');; - *) - echo ${F};; - esac -} - -cd ${WRKSRC} - -for D in ${LINUX_DIRS} -do - if [ ! -e ${D} ] - then - echo "ERROR: ${D} not found" - continue - fi - - NEWNAME=$(rename_arch ${D}) - mv ${D} ${NEWNAME} - echo "INFO: ${D} -> ${NEWNAME}" - - case ${NEWNAME} in - *.powerpc64) - cp -rf ${NEWNAME} `echo ${NEWNAME} | sed -e 's/powerpc64/powerpc64le/'`;; - esac -done - -# Clean up binaries -rm -rf rt.equinox.binaries/org.eclipse.equinox.executable/bin/gtk/linux |