aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-09-20 07:14:30 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-09-20 07:14:30 +0000
commit90321d070173ef7e8f9336be2b3c9a1b76130a29 (patch)
treee24e35864f04940ebc6395fc20194a9e9479a818 /graphics
parentc4aab5ee8b8ddd07757615f97f9b347804963d29 (diff)
downloadports-90321d070173ef7e8f9336be2b3c9a1b76130a29.tar.gz
ports-90321d070173ef7e8f9336be2b3c9a1b76130a29.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/imlib3d/Makefile33
-rw-r--r--graphics/imlib3d/files/patch-ltmain.sh25
-rw-r--r--graphics/imlib3d/pkg-plist27
3 files changed, 56 insertions, 29 deletions
diff --git a/graphics/imlib3d/Makefile b/graphics/imlib3d/Makefile
index bef0516b006c..a90ac9afe6cc 100644
--- a/graphics/imlib3d/Makefile
+++ b/graphics/imlib3d/Makefile
@@ -8,6 +8,7 @@
PORTNAME= imlib3d
PORTVERSION= 0.8.0
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -15,24 +16,30 @@ DISTNAME= ImLib3D-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gsl:${PORTSDIR}/math/gsl \
- fftw:${PORTSDIR}/math/fftw \
+LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw \
+ gsl.3:${PORTSDIR}/math/gsl \
xml2.5:${PORTSDIR}/textproc/libxml2 \
- gtkmm:${PORTSDIR}/x11-toolkits/gtk-- \
- gtkgl:${PORTSDIR}/x11-toolkits/gtkglarea \
- gtkglmm:${PORTSDIR}/x11-toolkits/gtkglarea--
+ gtkglmm.1:${PORTSDIR}/x11-toolkits/gtkglarea--
-USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_MESA= yes
-USE_FREETYPE= yes
-USE_LIBTOOL= yes
-CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include -I${LOCALBASE}/include/libxml2/libxml" \
- LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS= --enable-libimx --enable-optimize
+#USE_FREETYPE= yes
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS= --enable-optimize
INSTALLS_SHLIB= yes
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+#BROKEN= "does not build with GCC 2.x"
+.endif
+
post-patch:
- @${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|OPTIMIZE_FLAGS=.*$$|OPTIMIZE_FLAGS=|g ; \
+ s|<xmlversion.h>|<libxml/xmlversion.h>|g' ${WRKSRC}/configure
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/graphics/imlib3d/files/patch-ltmain.sh b/graphics/imlib3d/files/patch-ltmain.sh
new file mode 100644
index 000000000000..ab11f194e6ea
--- /dev/null
+++ b/graphics/imlib3d/files/patch-ltmain.sh
@@ -0,0 +1,25 @@
+--- ltmain.sh.orig Mon Sep 16 04:01:31 2002
++++ ltmain.sh Mon Sep 16 04:02:12 2002
+@@ -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/graphics/imlib3d/pkg-plist b/graphics/imlib3d/pkg-plist
index df4aac1edebf..a3a536448be5 100644
--- a/graphics/imlib3d/pkg-plist
+++ b/graphics/imlib3d/pkg-plist
@@ -222,37 +222,32 @@ include/newmat/newmatrm.h
include/newmat/precisio.h
include/newmat/solution.h
lib/libGnuPlotInterface.a
-lib/libGnuPlotInterface.la
lib/libGnuPlotInterface.so
lib/libGnuPlotInterface.so.0
lib/libImLib3D-0.8.so
lib/libImLib3D-0.8.so.1
lib/libImLib3D.a
-lib/libImLib3D.la
lib/libImLib3D.so
lib/libImLib3DCalls.a
-lib/libImLib3DCalls.la
lib/libImLib3DCalls.so
lib/libImLib3DCalls.so.0
lib/libavwio.a
-lib/libavwio.la
lib/libavwio.so
lib/libavwio.so.0
lib/libnewmat.a
-lib/libnewmat.la
lib/libnewmat.so
lib/libnewmat.so.0
-@dirrm include/GnuPlotInterface
-@dirrm include/ImLib3D
-@dirrm include/boost/config/compiler
-@dirrm include/boost/config/platform
-@dirrm include/boost/config/stdlib
-@dirrm include/boost/config
-@dirrm include/boost/preprocessor/arithmetic
-@dirrm include/boost/preprocessor/comparison
-@dirrm include/boost/preprocessor/list
-@dirrm include/boost/preprocessor/logical
+@dirrm include/boost/type_traits
@dirrm include/boost/preprocessor/tuple
+@dirrm include/boost/preprocessor/logical
+@dirrm include/boost/preprocessor/list
+@dirrm include/boost/preprocessor/comparison
+@dirrm include/boost/preprocessor/arithmetic
@dirrm include/boost/preprocessor
-@dirrm include/boost/type_traits
+@dirrm include/boost/config/stdlib
+@dirrm include/boost/config/platform
+@dirrm include/boost/config/compiler
+@dirrm include/boost/config
@dirrm include/boost
+@dirrm include/ImLib3D
+@dirrm include/GnuPlotInterface