aboutsummaryrefslogtreecommitdiff
path: root/editors/AbiWord2/Makefile
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/AbiWord2/Makefile
parent58c1f4c2b6cbf9644febfeea522b9417f3e0d014 (diff)
downloadports-bb9bb9d9f5a209ca0a00e3fa4c2c5966bbeb4d4a.tar.gz
ports-bb9bb9d9f5a209ca0a00e3fa4c2c5966bbeb4d4a.zip
Notes
Diffstat (limited to 'editors/AbiWord2/Makefile')
-rw-r--r--editors/AbiWord2/Makefile25
1 files changed, 24 insertions, 1 deletions
diff --git a/editors/AbiWord2/Makefile b/editors/AbiWord2/Makefile
index 33241a6631d5..6d2104a598b6 100644
--- a/editors/AbiWord2/Makefile
+++ b/editors/AbiWord2/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>