From 881afb1532172e024d2098e745b4ec7f2612f5e3 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sat, 6 Dec 2003 23:44:36 +0000 Subject: - Fix build on 5.x PR: ports/59613 Submitted by: Ports Fury --- science/vis5d+/Makefile | 19 +++++++------------ science/vis5d+/files/patch-configure | 10 ---------- science/vis5d+/files/patch-ltmain.sh | 25 +++++++++++++++++++++++++ science/vis5d+/files/patch-util::main.c | 22 ++++++++++++++++++++++ 4 files changed, 54 insertions(+), 22 deletions(-) delete mode 100644 science/vis5d+/files/patch-configure create mode 100644 science/vis5d+/files/patch-ltmain.sh create mode 100644 science/vis5d+/files/patch-util::main.c (limited to 'science/vis5d+') 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 +CFLAGS+= -DMIX_ANSI_IOSTREAMS -fpermissive -.if ${OSVERSION} >= 500113 -BROKEN= "Does not compile (bad C++ code)" -.endif - -.include +.include 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 + #include + #include +-#ifdef HAVE_SYS_LOCK_H +-# include +-#endif + #include + #include + #include +@@ -44,6 +41,9 @@ + #include + #include + #include ++#ifdef HAVE_SYS_LOCK_H ++# include ++#endif + + char cc[1000]; + int Argc; -- cgit v1.2.3