Index: .fossil-settings/ignore-glob ================================================================== --- .fossil-settings/ignore-glob +++ .fossil-settings/ignore-glob @@ -58,7 +58,13 @@ server/buildpkgs/tls/build/* server/buildpkgs/tls/out server/buildpkgs/tls/out/* server/buildpkgs/tls/src server/buildpkgs/tls/src/* +server/buildpkgs/udp/build +server/buildpkgs/udp/build/* +server/buildpkgs/udp/out +server/buildpkgs/udp/out/* +server/buildpkgs/udp/src +server/buildpkgs/udp/src/* server/pkgs server/pkgs/* ADDED server/buildpkgs/udp/build.sh Index: server/buildpkgs/udp/build.sh ================================================================== --- /dev/null +++ server/buildpkgs/udp/build.sh @@ -0,0 +1,42 @@ +#! /bin/bash + +# Define parameters +VERS=1.0.8 +SRC="src/tcludp-${VERS}.tar.gz" +SRCURL="http://sourceforge.net/projects/tcludp/files/tcludp/${VERS}/tcludp-${VERS}.tar.gz/download" +BUILDDIR="tcludp-${VERS}" +export VERS SRC SRCURL BUILDDIR + +# Load common functions +source ../common.sh + +# Do not build if the "tcl" platform has been requested +not_platforms 'tcl' + +# Download source +download_src + +# Build package +( + rm -rf build + mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null + mkdir build + + cd build/ || exit 1 + + gzip -dc "../${SRC}" | tar -xf - + cd "${BUILDDIR}" || exit 1 + + bash ./configure --enable-shared --enable-threads --with-tcl="${TCLCONFIGDIR}" --prefix="${PLATDIR}" --libdir="${PLATDIR}" --bindir="${PLATDIR}" ${CONFIGUREEXTRA} + + ${MAKE:-make} || exit 1 + + ${MAKE:-make} install-binaries PKG_DIR='' || exit 1 + + rm -f "${PLATDIR}"/*.a +) || exit 1 + +# Create metadata +../create_teapot "${PLATDIR}/teapot.txt" "udp" "${VERS}" "${SRCURL}" "${PLATFORM}" "Tcl 8.4" "The TclUDP package provides Tcl with UDP sockets on Windows and UNIX-like systems. It supports multicast and binary data." + +exit 0