diff options
Diffstat (limited to 'editors/AbiWord/Makefile')
-rw-r--r-- | editors/AbiWord/Makefile | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/editors/AbiWord/Makefile b/editors/AbiWord/Makefile index 33241a6631d..6d2104a598b 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> |