diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-05-13 22:52:42 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-05-13 22:52:42 +0800 |
commit | f4c4253f0ff7a2df183c7e382ee998339381f7f5 (patch) | |
tree | 11df6f91f700f433e972955dd51da054bb4de3ae | |
parent | bc7b3071e094a100d015c4c1e120030489040b05 (diff) | |
download | freebsd-ports-graphics-f4c4253f0ff7a2df183c7e382ee998339381f7f5.tar.gz freebsd-ports-graphics-f4c4253f0ff7a2df183c7e382ee998339381f7f5.tar.zst freebsd-ports-graphics-f4c4253f0ff7a2df183c7e382ee998339381f7f5.zip |
GNOME policy:
- Fix detection of libintl and install .po files into ${PREFIX}/share/locale,
not into ${PREFIX}/share/gnome/locale.
-rw-r--r-- | graphics/truevision/Makefile | 15 | ||||
-rw-r--r-- | graphics/truevision/pkg-plist | 26 |
2 files changed, 23 insertions, 18 deletions
diff --git a/graphics/truevision/Makefile b/graphics/truevision/Makefile index 485464e93b1..e5302818bb6 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 13bf8a2a093..590549664f5 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 |