aboutsummaryrefslogtreecommitdiff
path: root/graphics/truevision
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-05-13 14:52:42 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-05-13 14:52:42 +0000
commit52b1d51839e1c090e6a2403452c9c64c57319ec7 (patch)
tree9c3396fa525144a2496eda2e153c8467e531b28c /graphics/truevision
parent3a6bcf7612afde40e8845717ab15be6dc6860618 (diff)
downloadports-52b1d51839e1c090e6a2403452c9c64c57319ec7.tar.gz
ports-52b1d51839e1c090e6a2403452c9c64c57319ec7.zip
Notes
Diffstat (limited to 'graphics/truevision')
-rw-r--r--graphics/truevision/Makefile15
-rw-r--r--graphics/truevision/pkg-plist26
2 files changed, 23 insertions, 18 deletions
diff --git a/graphics/truevision/Makefile b/graphics/truevision/Makefile
index 485464e93b17..e5302818bb64 100644
--- a/graphics/truevision/Makefile
+++ b/graphics/truevision/Makefile
@@ -8,6 +8,7 @@
PORTNAME= truevision
PORTVERSION= 0.3.10
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -18,14 +19,18 @@ LIB_DEPENDS= gtkgl:${PORTSDIR}/x11-toolkits/gtkglarea
USE_X_PREFIX= yes
USE_MESA= yes
-USE_GTK= yes
USE_GNOME= yes
-GNU_CONFIGURE= yes
-CFLAGS+= ${PTHREAD_FLAGS}
-CONFIGURE_ENV= LDFLAGS="${PTHREAD_LIBS}"
USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_FLAGS}" \
+ LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-post-patch:
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL} -pi -e \
+ 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
+ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
@${PERL} -pi -e "s,Bison ,Bison,g" ${WRKSRC}/configure
@${PERL} -pi -e "s,-lgthread,-lgthread12,g ; \
s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/src/Makefile.in
diff --git a/graphics/truevision/pkg-plist b/graphics/truevision/pkg-plist
index 13bf8a2a0933..590549664f55 100644
--- a/graphics/truevision/pkg-plist
+++ b/graphics/truevision/pkg-plist
@@ -38,7 +38,6 @@ share/gnome/pixmaps/truevision/view_restore.png
share/gnome/pixmaps/truevision/view_rolldown.png
share/gnome/pixmaps/truevision/view_rollup.png
share/gnome/pixmaps/truevision/warning.xpm
-@dirrm share/gnome/pixmaps/truevision
share/gnome/truevision/materials/Effects/Fire1.tvm
share/gnome/truevision/materials/Finish/dull.tvm
share/gnome/truevision/materials/Finish/luminous.tvm
@@ -104,19 +103,20 @@ share/gnome/truevision/materials/Woods/Golden_Oak.tvm
share/gnome/truevision/materials/Woods/Soft_Pine.tvm
share/gnome/truevision/materials/Woods/dmfwood6.tvm
share/gnome/truevision/materials/Woods/mahogany.tvm
-@dirrm share/gnome/truevision/materials/Effects
-@dirrm share/gnome/truevision/materials/Finish
-@dirrm share/gnome/truevision/materials/Glass
-@dirrm share/gnome/truevision/materials/Metals/Brass
-@dirrm share/gnome/truevision/materials/Metals/Chrome
-@dirrm share/gnome/truevision/materials/Metals/Copper
+share/locale/de/LC_MESSAGES/truevision.mo
+share/locale/fr/LC_MESSAGES/truevision.mo
+@dirrm share/gnome/truevision/materials/Woods
+@dirrm share/gnome/truevision/materials/Stones
+@dirrm share/gnome/truevision/materials/Stars
+@dirrm share/gnome/truevision/materials/Skies
@dirrm share/gnome/truevision/materials/Metals/Golds
+@dirrm share/gnome/truevision/materials/Metals/Copper
+@dirrm share/gnome/truevision/materials/Metals/Chrome
+@dirrm share/gnome/truevision/materials/Metals/Brass
@dirrm share/gnome/truevision/materials/Metals
-@dirrm share/gnome/truevision/materials/Skies
-@dirrm share/gnome/truevision/materials/Stars
-@dirrm share/gnome/truevision/materials/Stones
-@dirrm share/gnome/truevision/materials/Woods
+@dirrm share/gnome/truevision/materials/Glass
+@dirrm share/gnome/truevision/materials/Finish
+@dirrm share/gnome/truevision/materials/Effects
@dirrm share/gnome/truevision/materials
@dirrm share/gnome/truevision
-share/gnome/locale/de/LC_MESSAGES/truevision.mo
-share/gnome/locale/fr/LC_MESSAGES/truevision.mo
+@dirrm share/gnome/pixmaps/truevision