aboutsummaryrefslogtreecommitdiff
path: root/editors/abiword
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-02-12 23:17:36 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-02-12 23:17:36 +0000
commitbb9bb9d9f5a209ca0a00e3fa4c2c5966bbeb4d4a (patch)
tree1fdad00b52d00b1e61b50adad8c4b5d9e5db6998 /editors/abiword
parent58c1f4c2b6cbf9644febfeea522b9417f3e0d014 (diff)
downloadports-bb9bb9d9f5a209ca0a00e3fa4c2c5966bbeb4d4a.tar.gz
ports-bb9bb9d9f5a209ca0a00e3fa4c2c5966bbeb4d4a.zip
Notes
Diffstat (limited to 'editors/abiword')
-rw-r--r--editors/abiword/Makefile25
-rw-r--r--editors/abiword/pkg-plist5
2 files changed, 28 insertions, 2 deletions
diff --git a/editors/abiword/Makefile b/editors/abiword/Makefile
index 33241a6631d5..6d2104a598b6 100644
--- a/editors/abiword/Makefile
+++ b/editors/abiword/Makefile
@@ -11,6 +11,7 @@
PORTNAME= AbiWord
PORTVERSION= 0.99.1
+PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.abisource.com/downloads/Version-${PORTVERSION}/lf/
@@ -30,10 +31,13 @@ DIST_SUBDIR= AbiWord
WRKSRC= ${WRKDIR}/abiword/abi
+USE_X_PREFIX= yes
USE_AUTOMAKE= yes
USE_GMAKE= yes
USE_GTK= yes
+WANT_GNOME= yes
AUTOMAKE= ${WRKSRC}/autogen.sh && ${FIXME}
+CONFIGURE_ARGS= --datadir=${PREFIX}/share
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lgiconv"
MAKEFILE= GNUmakefile
@@ -41,6 +45,19 @@ FIXME= find ${WRKSRC} -name GNUmakefile.in | xargs ${PERL} -pi -e \
's|\$$\(libdir\)/\@PACKAGE\@|\$$\(datadir\)/\@PACKAGE\@|g ; \
s|\@DEFS\@|-I${WRKSRC}/../libiconv/include \@DEFS\@|g'
+.if defined(PACKAGE_BUILDING) || defined(PARALLEL_PACKAGE_BUILD)
+.undef WITHOUT_GNOME
+.undef WITHOUT_ALL
+WITH_GNOME= yes
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_GNOME)
+USE_GNOME= yes
+CONFIGURE_ARGS+=--enable-gnome
+.endif
+
post-patch:
@giconv -f cp1251 -t koi8-u ${WRKSRC}/user/wp/strings/uk-UA.strings > \
${WRKDIR}/.uk-UA.strings
@@ -53,5 +70,11 @@ pre-configure:
post-install:
@${CAT} ${PKGMESSAGE}
+.if defined(HAVE_GNOME)
+ @${INSTALL_DATA} ${WRKSRC}/src/pkg/linux/rpm/data/abiword.desktop \
+ ${PREFIX}/share/gnome/apps/Applications/abiword.desktop
+ @${LN} -sf ${PREFIX}/share/AbiSuite/icons/abiword_48.png \
+ ${PREFIX}/share/gnome/pixmaps/abiword_48.png
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/editors/abiword/pkg-plist b/editors/abiword/pkg-plist
index d49255a25446..94f101ab14e6 100644
--- a/editors/abiword/pkg-plist
+++ b/editors/abiword/pkg-plist
@@ -1,6 +1,6 @@
bin/AbiWord
bin/AbiWord_d
-bin/AbiWord_s
+%%NOGNOME:%%bin/AbiWord_s
bin/abiword
bin/ttftool
share/AbiSuite/AbiWord/help/de-DE/about.html
@@ -570,7 +570,10 @@ share/AbiSuite/icons/abiword_16.xpm
share/AbiSuite/icons/abiword_48.png
share/AbiSuite/icons/abiword_48.tif
share/AbiSuite/icons/abiword_48.xpm
+%%GNOME:%%share/AbiSuite/icons/abiword_logo.xpm
share/AbiSuite/templates/normal.awt
+%%GNOME:%%share/gnome/apps/Applications/abiword.desktop
+%%GNOME:%%share/gnome/pixmaps/abiword_48.png
@dirrm share/AbiSuite/templates
@dirrm share/AbiSuite/icons
@dirrm share/AbiSuite/fonts