freebsd-ports/editors/abiword-devel/Makefile

79 lines
2.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: AbiWord
# Date created: 3 Mar 1999
# Whom: Donald Burr <dburr@FreeBSD.org>
#
1999-08-25 07:57:29 +02:00
# $FreeBSD$
#
# 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-14 02:25:54 +02:00
PORTNAME= AbiWord
2002-06-05 22:05:40 +02:00
PORTVERSION= 1.0.2
CATEGORIES= editors
2001-08-08 17:46:45 +02:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.abisource.com/downloads/Version-${PORTVERSION}/lf/
MASTER_SITE_SUBDIR= abiword
DISTNAME= abiword-${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org
# unzip is needed during the installation process
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
2001-09-11 05:32:41 +02:00
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
iconv.3:${PORTSDIR}/converters/libiconv \
psiconv.8:${PORTSDIR}/converters/psiconv
DIST_SUBDIR= AbiWord
WRKSRC= ${WRKDIR}/abiword-${PORTVERSION}/abi
2001-08-08 17:46:45 +02:00
USE_X_PREFIX= yes
USE_AUTOMAKE= yes
USE_GMAKE= yes
2000-10-05 08:36:23 +02:00
USE_GTK= yes
WANT_GNOME= yes
AUTOMAKE= ${WRKSRC}/autogen.sh && ${FIXME}
CONFIGURE_ARGS= --datadir=${PREFIX}/share
2001-08-08 17:46:45 +02:00
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -liconv"
2001-08-08 17:46:45 +02:00
MAKEFILE= GNUmakefile
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 17:46:45 +02: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
post-patch:
@iconv -f cp1251 -t koi8-u ${WRKSRC}/user/wp/strings/uk-UA.strings > \
2002-02-07 13:29:42 +01:00
${WRKDIR}/.uk-UA.strings
@${MV} ${WRKDIR}/.uk-UA.strings ${WRKSRC}/user/wp/strings/uk-UA.strings
2001-08-08 17:46:45 +02:00
pre-configure:
@cd ${WRKSRC} && ${TOUCH} NEWS README AUTHORS ChangeLog
2001-08-16 15:13:50 +02:00
@cd ${WRKSRC}/ac-helpers && ${RM} -f install-sh mkinstalldirs missing
2001-10-02 09:21:21 +02:00
@${RM} -f ${WRKSRC}/configure.ac
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.post.mk>