Closed jfhg closed 10 years ago
By replacing lang/nimrod/files/patch-build.sh in FreeBSD ports with the patch below it compiles on DragonFly. Please let me know if you need the patch in a different form.
--- /usr/obj/dports/lang/nimrod/work/nimrod/build.sh.orig 2013-05-20 17:16:12.000000000 +0200 +++ /tmp/build.sh.new 2014-06-25 22:26:38.358163000 +0200 @@ -26,10 +26,6 @@ esac done -CC="gcc" -LINKER="gcc" -COMP_FLAGS="-w -O3 -fno-strict-aliasing$extraBuildArgs" -LINK_FLAGS="" # platform detection ucpu=`uname -m` uos=`uname` @@ -47,6 +43,10 @@ myos="freebsd" LINK_FLAGS="$LINK_FLAGS -lm" ;; + *dragonfly* ) + myos="freebsd" + LINK_FLAGS="$LINK_FLAGS -lm" + ;; *openbsd* ) myos="openbsd" LINK_FLAGS="$LINK_FLAGS -lm" @@ -6093,7 +6093,7 @@ ;; esac ;; -freebsd) +freebsd|dragonfly) case $mycpu in i386) echo "$CC $COMP_FLAGS -Ibuild -c build/5_1/nimrod.c -o build/5_1/nimrod.o"
Thanks, nimrod is in ports now: https://github.com/DragonFlyBSD/DPorts/commit/159c5a1384657cd2b0402e97d34f2de9a2573962
By replacing lang/nimrod/files/patch-build.sh in FreeBSD ports with the patch below it compiles on DragonFly. Please let me know if you need the patch in a different form.