aboutsummaryrefslogtreecommitdiffstats
path: root/comms/ghfaxviewer
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-05-13 20:06:47 +0800
committersobomax <sobomax@FreeBSD.org>2002-05-13 20:06:47 +0800
commitfff1c977c2e74a1415e5397ad53cd7b67b6c88ab (patch)
treeab4410e0db3475f8f62ec46e3ad2086696fc5d99 /comms/ghfaxviewer
parentac7aafe137bf731a77f885ebb4fa5276a40d3075 (diff)
downloadfreebsd-ports-gnome-fff1c977c2e74a1415e5397ad53cd7b67b6c88ab.tar.gz
freebsd-ports-gnome-fff1c977c2e74a1415e5397ad53cd7b67b6c88ab.tar.zst
freebsd-ports-gnome-fff1c977c2e74a1415e5397ad53cd7b67b6c88ab.zip
GNOME policy:
- Fix libintl detection; - properly use ${PREFIX}/share/gnome.
Diffstat (limited to 'comms/ghfaxviewer')
-rw-r--r--comms/ghfaxviewer/Makefile11
-rw-r--r--comms/ghfaxviewer/files/patch-configure14
-rw-r--r--comms/ghfaxviewer/pkg-plist16
3 files changed, 31 insertions, 10 deletions
diff --git a/comms/ghfaxviewer/Makefile b/comms/ghfaxviewer/Makefile
index 70ad707ac0b8..0b205cd53e19 100644
--- a/comms/ghfaxviewer/Makefile
+++ b/comms/ghfaxviewer/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ghfaxviewer
PORTVERSION= 0.22.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= comms
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= halifax
@@ -22,7 +22,16 @@ USE_GMAKE= yes
USE_X_PREFIX= yes
USE_GNOME= yes
GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
MAN1= halifax.1 ghfaxviewer.1
+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'
+
.include <bsd.port.mk>
diff --git a/comms/ghfaxviewer/files/patch-configure b/comms/ghfaxviewer/files/patch-configure
new file mode 100644
index 000000000000..94a34523fb58
--- /dev/null
+++ b/comms/ghfaxviewer/files/patch-configure
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- configure 2002/05/13 12:02:06 1.1
++++ configure 2002/05/13 12:02:24
+@@ -4759,7 +4759,7 @@
+ CFLAGS="$CFLAGS `gnome-config --cflags gnomeui`"
+ LDFLAGS="$LDFLAGS `gnome-config --libs gnomeui`"
+ PIXMAPS_DIR="`gnome-config --datadir`/pixmaps/ghfaxviewer"
+- GNOME_GRAPH_APP_DIR="`gnome-config --datadir`/gnome/apps/Graphics"
++ GNOME_GRAPH_APP_DIR="`gnome-config --datadir`/apps/Graphics"
+
+ # Check whether --with-gnome-print-prefix or --without-gnome-print-prefix was given.
+ if test "${with_gnome_print_prefix+set}" = set; then
diff --git a/comms/ghfaxviewer/pkg-plist b/comms/ghfaxviewer/pkg-plist
index 7a17cdd4e87d..757180c7666c 100644
--- a/comms/ghfaxviewer/pkg-plist
+++ b/comms/ghfaxviewer/pkg-plist
@@ -1,12 +1,10 @@
bin/ghfaxviewer
-lib/charset.alias
-share/gnome/pixmaps/ghfaxviewer/info.xpm
-share/gnome/pixmaps/ghfaxviewer/ghfaxviewer-logo.xpm
+share/gnome/apps/Graphics/ghfaxviewer.desktop
share/gnome/pixmaps/ghfaxviewer/ghfaxviewer-icon.xpm
-share/gnome/locale/de/LC_MESSAGES/ghfaxviewer.mo
-share/gnome/locale/fr/LC_MESSAGES/ghfaxviewer.mo
-share/gnome/locale/locale.alias
-share/gnome/locale/pl/LC_MESSAGES/ghfaxviewer.mo
-share/gnome/locale/zh_TW.Big5/LC_MESSAGES/ghfaxviewer.mo
-share/gnome/gnome/apps/Graphics/ghfaxviewer.desktop
+share/gnome/pixmaps/ghfaxviewer/ghfaxviewer-logo.xpm
+share/gnome/pixmaps/ghfaxviewer/info.xpm
+share/locale/de/LC_MESSAGES/ghfaxviewer.mo
+share/locale/fr/LC_MESSAGES/ghfaxviewer.mo
+share/locale/pl/LC_MESSAGES/ghfaxviewer.mo
+share/locale/zh_TW.Big5/LC_MESSAGES/ghfaxviewer.mo
@dirrm share/gnome/pixmaps/ghfaxviewer