diff options
author | pav <pav@FreeBSD.org> | 2003-12-07 07:44:36 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2003-12-07 07:44:36 +0800 |
commit | 612cd5c5c86afabe65feb94e413b154206dd9cd2 (patch) | |
tree | 10836bf7a014b76c3d4e673465790b5e62ee463c /science/vis5d+ | |
parent | 16d014d9ce964cb33496c3c84fe69860a8702f38 (diff) | |
download | freebsd-ports-gnome-612cd5c5c86afabe65feb94e413b154206dd9cd2.tar.gz freebsd-ports-gnome-612cd5c5c86afabe65feb94e413b154206dd9cd2.tar.zst freebsd-ports-gnome-612cd5c5c86afabe65feb94e413b154206dd9cd2.zip |
- Fix build on 5.x
PR: ports/59613
Submitted by: Ports Fury
Diffstat (limited to 'science/vis5d+')
-rw-r--r-- | science/vis5d+/Makefile | 19 | ||||
-rw-r--r-- | science/vis5d+/files/patch-configure | 10 | ||||
-rw-r--r-- | science/vis5d+/files/patch-ltmain.sh | 25 | ||||
-rw-r--r-- | science/vis5d+/files/patch-util::main.c | 22 |
4 files changed, 54 insertions, 22 deletions
diff --git a/science/vis5d+/Makefile b/science/vis5d+/Makefile index 0823c19e9bcf..d7a5fc1f3251 100644 --- a/science/vis5d+/Makefile +++ b/science/vis5d+/Makefile @@ -23,22 +23,17 @@ LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv \ gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick -USE_MESA= yes -USE_GNOME= gtk12 -USE_LIBTOOL= yes -CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} +USE_GL= yes +USE_GNOME= gnometarget gtk12 +GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -CONFIGURE_ARGS= --enable-gtk --enable-threads --with-mesa --with-netcdf \ +CONFIGURE_ARGS= --enable-gtk --enable-threads --with-netcdf \ --with-mixkit=${LOCALBASE}/lib/libmix.a --with-x INSTALLS_SHLIB= yes CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_FLAGS} -LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS} +LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS} -.include <bsd.port.pre.mk> +CFLAGS+= -DMIX_ANSI_IOSTREAMS -fpermissive -.if ${OSVERSION} >= 500113 -BROKEN= "Does not compile (bad C++ code)" -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/science/vis5d+/files/patch-configure b/science/vis5d+/files/patch-configure deleted file mode 100644 index 4bdb6b1ffc92..000000000000 --- a/science/vis5d+/files/patch-configure +++ /dev/null @@ -1,10 +0,0 @@ ---- configure.orig Wed Nov 7 20:54:00 2001 -+++ configure Sun Sep 15 08:57:22 2002 -@@ -6903,6 +6903,7 @@ - - # This can be used to rebuild libtool when needed - LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" -+$ac_aux_dir/ltconfig $LIBTOOL_DEPS - - # Always use our own libtool. - LIBTOOL='$(SHELL) $(top_builddir)/libtool' diff --git a/science/vis5d+/files/patch-ltmain.sh b/science/vis5d+/files/patch-ltmain.sh new file mode 100644 index 000000000000..85abea5a9f56 --- /dev/null +++ b/science/vis5d+/files/patch-ltmain.sh @@ -0,0 +1,25 @@ +--- ltmain.sh.orig Wed Nov 7 20:53:47 2001 ++++ ltmain.sh Sun Nov 23 11:20:58 2003 +@@ -2408,6 +2408,9 @@ + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; ++ *-*-freebsd*) ++ # FreeBSD doesn't need this... ++ ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test $build_libtool_need_lc = "yes"; then +@@ -4175,10 +4178,12 @@ + fi + + # Install the pseudo-library for information purposes. ++ if /usr/bin/false; then + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? ++ fi + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" diff --git a/science/vis5d+/files/patch-util::main.c b/science/vis5d+/files/patch-util::main.c new file mode 100644 index 000000000000..0e01eb2c7af9 --- /dev/null +++ b/science/vis5d+/files/patch-util::main.c @@ -0,0 +1,22 @@ +--- util/main.c.orig Wed Oct 24 19:46:49 2001 ++++ util/main.c Sun Nov 23 12:15:53 2003 +@@ -34,9 +34,6 @@ + #include <stdlib.h> + #include <string.h> + #include <fcntl.h> +-#ifdef HAVE_SYS_LOCK_H +-# include <sys/lock.h> +-#endif + #include <errno.h> + #include <signal.h> + #include <unistd.h> +@@ -44,6 +41,9 @@ + #include <sys/time.h> + #include <sys/resource.h> + #include <sys/stat.h> ++#ifdef HAVE_SYS_LOCK_H ++# include <sys/lock.h> ++#endif + + char cc[1000]; + int Argc; |