2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: java web uygulamaları için tarayıcı eklentisi
|
2017-06-09 01:42:06 +02:00
|
|
|
|
# URL: http://icedtea.classpath.org/wiki/IcedTea-Web
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: firefox npapi-sdk junit openjdk rhino xorg-libxtst zip
|
2017-06-09 01:42:06 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=icedtea-web
|
|
|
|
|
surum=1.6.2
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(http://icedtea.wildebeest.org/download/source/$isim-$surum.tar.gz)
|
2017-06-09 01:42:06 +02:00
|
|
|
|
|
|
|
|
|
unpack_source() {
|
|
|
|
|
local FILE LOCAL_FILENAME COMMAND
|
|
|
|
|
|
|
|
|
|
for FILE in ${source[@]}; do
|
|
|
|
|
LOCAL_FILENAME=`get_filename $FILE`
|
|
|
|
|
case $LOCAL_FILENAME in
|
|
|
|
|
*.tar|*.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tbz2|*.tar.xz|*.txz|*.tar.lzma|*.tar.lz|*.zip|*.rpm)
|
|
|
|
|
COMMAND="tar -p --no-same-owner -C $SRC -xf $LOCAL_FILENAME" ;;
|
|
|
|
|
*)
|
|
|
|
|
COMMAND="cp $LOCAL_FILENAME $SRC" ;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
echo "$COMMAND"
|
|
|
|
|
|
|
|
|
|
$COMMAND
|
|
|
|
|
|
|
|
|
|
if [ $? != 0 ]; then
|
|
|
|
|
if [ "$PKGMK_KEEP_WORK" = "no" ]; then
|
|
|
|
|
rm -rf $PKGMK_WORK_DIR
|
|
|
|
|
fi
|
|
|
|
|
error "Building '$TARGET' failed."
|
|
|
|
|
exit $E_UNPACK
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
export LC_ALL="$SAVED_LC_ALL"
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-06-09 01:42:06 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd "${SRC}"/${isim}-${surum}
|
2017-06-09 01:42:06 +02:00
|
|
|
|
LC_ALL=C \
|
|
|
|
|
CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-lifetime-dse" \
|
|
|
|
|
CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-lifetime-dse" \
|
|
|
|
|
JAVA_HOME=/opt/OpenJDK-8u60-bin \
|
|
|
|
|
PATH=$JAVA_HOME/bin:$PATH \
|
|
|
|
|
CONFIG_SHELL=/bin/bash \
|
|
|
|
|
./configure \
|
|
|
|
|
--prefix=/usr \
|
|
|
|
|
--datarootdir=/usr/share \
|
2017-10-28 14:10:23 +02:00
|
|
|
|
--libdir=/usr/lib/$isim \
|
|
|
|
|
--libexecdir=/usr/lib/$isim \
|
2017-06-09 01:42:06 +02:00
|
|
|
|
--with-jdk-home=/opt/OpenJDK-8u60-bin \
|
|
|
|
|
--with-rhino=/usr/share/java/rhino.jar \
|
|
|
|
|
--with-firefox=/usr/bin/firefox \
|
|
|
|
|
--with-versionsion=MILIS \
|
|
|
|
|
--disable-docs
|
|
|
|
|
|
|
|
|
|
LANG=tr_TR.UTF-8 \
|
|
|
|
|
LC_ALL=C \
|
|
|
|
|
CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-lifetime-dse" \
|
|
|
|
|
CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-lifetime-dse" \
|
|
|
|
|
JAVA_HOME=/opt/OpenJDK-8u60-bin \
|
|
|
|
|
PATH=$JAVA_HOME/bin:$PATH \
|
|
|
|
|
CONFIG_SHELL=/bin/bash \
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
make DESTDIR=$PKG install-exec-local install-data-local
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd "${SRC}"/${isim}-${surum}
|
2017-06-09 01:42:06 +02:00
|
|
|
|
|
|
|
|
|
rm -rf $PKG/usr/share/man/*
|
|
|
|
|
rm -rf $PKG/usr/share/doc
|
|
|
|
|
|
|
|
|
|
install -m 755 -d "${PKG}"/usr/share/{applications,pixmaps}
|
|
|
|
|
install -m 644 javaws.png "${PKG}"/usr/share/pixmaps
|
|
|
|
|
mv javaws.desktop.in javaws.desktop
|
|
|
|
|
mv itweb-settings.desktop.in itweb-settings.desktop
|
|
|
|
|
install -m 644 {javaws,itweb-settings}.desktop "${PKG}"/usr/share/applications
|
|
|
|
|
install -m 755 -d "${PKG}"/usr/bin
|
2017-10-28 14:10:23 +02:00
|
|
|
|
install -m 755 -d "${PKG}"/usr/share/${isim}/bin
|
|
|
|
|
pushd "${PKG}"/usr/share/${isim}/bin
|
2017-06-09 01:42:06 +02:00
|
|
|
|
for file in *; do
|
2017-10-28 14:10:23 +02:00
|
|
|
|
ln -sf /usr/share/${isim}/bin/${file} "${PKG}"/usr/bin/
|
2017-06-09 01:42:06 +02:00
|
|
|
|
done
|
|
|
|
|
popd
|
|
|
|
|
install -d -m 755 $PKG/usr/lib/mozilla/plugins
|
2017-10-28 14:10:23 +02:00
|
|
|
|
ln -s ../../$isim/IcedTeaPlugin.so $PKG/usr/lib/mozilla/plugins/
|
2017-06-09 01:42:06 +02:00
|
|
|
|
|
|
|
|
|
}
|