1999-05-04 08:26:02 -04:00
|
|
|
# New ports collection makefile for: AbiWord
|
|
|
|
# Date created: 3 Mar 1999
|
1999-08-31 02:53:31 -04:00
|
|
|
# Whom: Donald Burr <dburr@FreeBSD.org>
|
1999-05-04 08:26:02 -04:00
|
|
|
#
|
1999-08-25 01:57:29 -04:00
|
|
|
# $FreeBSD$
|
1999-05-04 08:26:02 -04:00
|
|
|
#
|
|
|
|
|
2001-01-03 02:51:17 -05:00
|
|
|
# Note: this port cannot be built when the textproc/mswordview port is
|
|
|
|
# already installed, due to header file conflicts and the very broken
|
|
|
|
# AbiWord build system.
|
|
|
|
|
2000-04-13 20:25:54 -04:00
|
|
|
PORTNAME= AbiWord
|
2002-05-08 22:56:23 -04:00
|
|
|
PORTVERSION= 1.0.1
|
1999-05-04 08:26:02 -04:00
|
|
|
CATEGORIES= editors
|
2001-08-08 11:46:45 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
|
|
http://www.abisource.com/downloads/Version-${PORTVERSION}/lf/
|
|
|
|
MASTER_SITE_SUBDIR= abiword
|
|
|
|
DISTNAME= abiword-${PORTVERSION}
|
1999-05-04 08:26:02 -04:00
|
|
|
|
2001-05-11 12:36:50 -04:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
1999-05-04 08:26:02 -04:00
|
|
|
|
2000-05-22 05:41:36 -04:00
|
|
|
# unzip is needed during the installation process
|
2002-03-18 04:46:46 -05:00
|
|
|
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
2001-09-10 23:32:41 -04:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
2002-03-18 04:46:46 -05:00
|
|
|
iconv.3:${PORTSDIR}/converters/libiconv \
|
2002-02-22 15:15:33 -05:00
|
|
|
psiconv.8:${PORTSDIR}/converters/psiconv
|
1999-05-04 08:26:02 -04:00
|
|
|
|
|
|
|
DIST_SUBDIR= AbiWord
|
|
|
|
|
2002-02-25 04:33:31 -05:00
|
|
|
WRKSRC= ${WRKDIR}/abiword-${PORTVERSION}/abi
|
2001-08-08 11:46:45 -04:00
|
|
|
|
2002-02-12 18:17:36 -05:00
|
|
|
USE_X_PREFIX= yes
|
2001-10-30 05:08:06 -05:00
|
|
|
USE_AUTOMAKE= yes
|
1999-10-31 19:53:16 -05:00
|
|
|
USE_GMAKE= yes
|
2000-10-05 02:36:23 -04:00
|
|
|
USE_GTK= yes
|
2002-02-12 18:17:36 -05:00
|
|
|
WANT_GNOME= yes
|
2001-10-30 05:08:06 -05:00
|
|
|
AUTOMAKE= ${WRKSRC}/autogen.sh && ${FIXME}
|
2002-02-12 18:17:36 -05:00
|
|
|
CONFIGURE_ARGS= --datadir=${PREFIX}/share
|
2001-08-08 11:46:45 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2002-03-19 07:52:55 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -liconv"
|
2001-08-08 11:46:45 -04:00
|
|
|
MAKEFILE= GNUmakefile
|
2001-10-30 03:52:06 -05:00
|
|
|
FIXME= find ${WRKSRC} -name GNUmakefile.in | xargs ${PERL} -pi -e \
|
|
|
|
's|\$$\(libdir\)/\@PACKAGE\@|\$$\(datadir\)/\@PACKAGE\@|g ; \
|
|
|
|
s|\@DEFS\@|-I${WRKSRC}/../libiconv/include \@DEFS\@|g'
|
2001-08-08 11:46:45 -04:00
|
|
|
|
2002-02-12 18:17:36 -05:00
|
|
|
.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
|
|
|
|
|
2002-01-14 13:16:29 -05:00
|
|
|
post-patch:
|
2002-04-08 07:07:17 -04:00
|
|
|
@iconv -f cp1251 -t koi8-u ${WRKSRC}/user/wp/strings/uk-UA.strings > \
|
2002-02-07 07:29:42 -05:00
|
|
|
${WRKDIR}/.uk-UA.strings
|
|
|
|
@${MV} ${WRKDIR}/.uk-UA.strings ${WRKSRC}/user/wp/strings/uk-UA.strings
|
2002-01-14 13:16:29 -05:00
|
|
|
|
2001-08-08 11:46:45 -04:00
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ${TOUCH} NEWS README AUTHORS ChangeLog
|
2001-08-16 09:13:50 -04:00
|
|
|
@cd ${WRKSRC}/ac-helpers && ${RM} -f install-sh mkinstalldirs missing
|
2001-10-02 03:21:21 -04:00
|
|
|
@${RM} -f ${WRKSRC}/configure.ac
|
1999-10-31 19:53:16 -05:00
|
|
|
|
2001-08-20 09:27:17 -04:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-02-12 18:17:36 -05:00
|
|
|
.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
|
2001-08-20 09:27:17 -04:00
|
|
|
|
2002-02-12 18:17:36 -05:00
|
|
|
.include <bsd.port.post.mk>
|