openbsd-ports/editors/abiword/Makefile

75 lines
2.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.49 2005/11/15 09:21:51 wilfried Exp $
COMMENT= "free cross-platform WYSIWYG word processor"
VERSION= 2.4.1
MAJORVER= ${VERSION:C/..$//}
DISTNAME= abiword-${VERSION}
PKGNAME= ${DISTNAME}p1
CATEGORIES= editors
2000-07-17 03:34:57 -04:00
HOMEPAGE= http://www.abisource.com/
2000-07-17 03:34:57 -04:00
MODULES= devel/gettext
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
1999-11-08 09:05:52 -05:00
LIB_DEPENDS= fribidi::devel/fribidi \
gdk-x11-2.0.0.0,gdk_pixbuf-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2 \
gnomeprintui-2-2::x11/gnome/libgnomeprintui
2004-01-10 17:51:14 -05:00
# GPL
2000-03-16 17:32:35 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2005-11-14 11:02:24 -05:00
WANTLIB= ICE SM X11 Xft Xrender art_lgpl_2.0.0 atk-1.0.0.0 c cairo \
fontconfig freetype glade-2.0.0.0 glib-2.0.0.0 gmodule-2.0.0.0 \
gnomecanvas-2.0.0 gnomeprint-2-2.0.0 gobject-2.0.0.0 \
gthread-2.0.0.0 m pango-1.0.0.0 pangocairo-1.0.0.0 \
pangoft2-1.0.0.0 pangoxft-1.0.0.0 png popt.0 pthread stdc++ \
xml2.9 z
2002-10-17 14:37:13 -04:00
MASTER_SITES= ${HOMEPAGE}/downloads/abiword/${VERSION}/source/
2002-10-17 14:37:13 -04:00
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --disable-gucharmap --disable-enchant --without-pspell
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DMAXSTRINGCHARS=512" \
LDFLAGS="-L${LOCALBASE}/lib"
FLAVORS= gnome
FLAVOR?=
.if ${FLAVOR:L:Mgnome}
LIB_DEPENDS+= gnomeui-2::x11/gnome/libgnomeui \
ORBit-2::devel/ORBit2
WANTLIB+= ORBit-2.0.0 bonobo-2.0.0 bonobo-activation bonoboui-2.0.0 \
gconf-2.0.0 gnome-2.0.0 gnomeui-2.0.0 gnomevfs-2.0.0
CONFIGURE_ARGS+= --enable-gnome
.endif
MAKE_FILE= GNUmakefile
2004-01-10 17:51:14 -05:00
WRKDIST= ${WRKDIR}/abiword-${VERSION}
WRKSRC= ${WRKDIST}/abi
2003-08-16 12:32:58 -04:00
SUBST_VARS= MAJORVER
pre-configure:
@perl -pi -e "s|libpng12|libpng|g" ${WRKSRC}/configure
1999-11-08 09:05:52 -05:00
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/abiword/Manual
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/abiword/Tutorials
${INSTALL_MAN} ${WRKDIST}/abiword-docs/man/abiword.1 \
2005-07-29 13:33:56 -04:00
${PREFIX}/man/man1
${INSTALL_DATA} ${WRKDIST}/abiword-docs/Manual/en/Abiword_Manual.abw \
2005-07-29 13:33:56 -04:00
${PREFIX}/share/doc/abiword/Manual
cd ${WRKDIST}/abiword-docs/Tutorials && tar cf - jmp klw | \
tar xf - -C ${PREFIX}/share/doc/abiword/Tutorials
1999-11-08 09:05:52 -05:00
.include <bsd.port.mk>