summaryrefslogtreecommitdiffstats
path: root/editors/abiword/Makefile
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-18 20:45:44 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-18 20:45:44 +0800
commit4575b779306f291af2946256c6e67b52efb32bb0 (patch)
tree76f10e6288c77c2b4a5e7a44afc454846ea6e442 /editors/abiword/Makefile
parent2fea55032339985e6ec7ab360cfd7895f5d59bbc (diff)
downloadmarcuscom-ports-4575b779306f291af2946256c6e67b52efb32bb0.tar
marcuscom-ports-4575b779306f291af2946256c6e67b52efb32bb0.tar.gz
marcuscom-ports-4575b779306f291af2946256c6e67b52efb32bb0.tar.bz2
marcuscom-ports-4575b779306f291af2946256c6e67b52efb32bb0.tar.lz
marcuscom-ports-4575b779306f291af2946256c6e67b52efb32bb0.tar.xz
marcuscom-ports-4575b779306f291af2946256c6e67b52efb32bb0.tar.zst
marcuscom-ports-4575b779306f291af2946256c6e67b52efb32bb0.zip
- Move to LOCALBASE
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6623 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'editors/abiword/Makefile')
-rw-r--r--editors/abiword/Makefile119
1 files changed, 119 insertions, 0 deletions
diff --git a/editors/abiword/Makefile b/editors/abiword/Makefile
new file mode 100644
index 000000000..84e6d607b
--- /dev/null
+++ b/editors/abiword/Makefile
@@ -0,0 +1,119 @@
+# New ports collection makefile for: AbiWord2
+# Date created: 22 February 2003
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom: ports/editors/abiword/Makefile,v 1.2 2005/10/29 22:31:16 marcus Exp $
+#
+
+PORTNAME= abiword
+PORTVERSION= 2.4.5
+PORTREVISION= 1
+CATEGORIES= editors
+MASTER_SITES= http://www.abisource.com/downloads/%SUBDIR%/${PORTVERSION}/source/
+MASTER_SITE_SUBDIR= abiword
+DIST_SUBDIR= AbiWord
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= An open-source, cross-platform WYSIWYG word processor
+
+# unzip is needed during the installation process
+BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
+LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
+ png.5:${PORTSDIR}/graphics/png \
+ wv-1.2.1:${PORTSDIR}/textproc/wv \
+ fribidi.0:${PORTSDIR}/converters/fribidi
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_ICONV= yes
+USE_GNOME= libglade2 libxml2 libgnomeprintui desktopfileutils
+WANT_GNOME= yes
+USE_XLIB= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --enable-xft \
+ --with-sys-wv \
+ --with-popt=${LOCALBASE} \
+ --with-zlib=${LOCALBASE} \
+ --with-libpng=${LOCALBASE} \
+ --with-libiconv=${LOCALBASE} \
+ --with-libjpeg-prefix=${LOCALBASE} \
+ --disable-peer-config
+MAKEFILE= GNUmakefile
+
+ABIVERSION= 2.4
+PLIST_SUB+= ABIVERSION=${ABIVERSION}
+WRKSRC= ${WRKDIR}/abiword-${PORTVERSION}/abi
+
+EXTERNALS= MSVC* abipbx abiword-docs abiword-plugins expat fribidi \
+ libiconv libpng pbx popt wv zlib
+EXTRACT_AFTER_ARGS=| ${TAR} -xpf - ${EXTERNALS:C,^,--exclude ${DISTNAME}/,}
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+= --enable-debug \
+ --enable-symbols
+CFLAGS+= -g
+STRIP=
+.endif
+
+.ifndef(WITHOUT_GTKSPELL)
+LIB_DEPENDS+= enchant.1:${PORTSDIR}/textproc/enchant
+PLIST_SUB+= DICT:="@comment "
+.else
+CONFIGURE_ARGS+= --disable-enchant
+PLIST_SUB+= DICT:=""
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${HAVE_GNOME:Mlibgnomeui}!=""
+USE_GNOME+= libgnomeui
+CONFIGURE_ARGS+= --enable-gnome
+PKGNAMESUFFIX:= -gnome
+GNOME_ENABLED= yes
+.endif
+
+.if defined(WITH_GUCHARMAP) || exists(${LOCALBASE}/libdata/pkgconfig/gucharmap.pc)
+LIB_DEPENDS+= gucharmap.4:${PORTSDIR}/deskutils/gucharmap
+.else
+CONFIGURE_ARGS+= --enable-cmap=no
+.endif
+
+pre-everything::
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "AbiWord2 has the following tunable option(s):"
+ @${ECHO_MSG} " WITH_DEBUG=yes Enable debug."
+ @${ECHO_MSG} " WITH_GUCHARMAP=yes Enable use of Gucharmap as the symbol insertion tool (default: auto)"
+ @${ECHO_MSG} " WITHOUT_GTKSPELL=yes Don't use Enchant, but still enable spellchecking and install the dictionary."
+ @${ECHO_MSG} ""
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-ansi||g ; s|-pedantic||g' \
+ ${WRKSRC}/configure
+ @${FIND} ${WRKSRC}/src/config/platforms -name "*.mk" | ${XARGS} \
+ ${REINPLACE_CMD} 's|-ansi||g ; s|-pedantic||g'
+ @${FIND} ${WRKSRC} -name GNUmakefile.in | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|@.*PEER.*@||g ; \
+ s|WV_INCLUDES = |#WV_INCLUDES = |g ; \
+ s|[(]libdir[)]/@PACKAGE@|(datadir)/@PACKAGE@|g ; \
+ s|[(]libdir[)]/bonobo/servers|(prefix)/libdata/bonobo/servers|g'
+
+post-install:
+ @${MKDIR} ${PREFIX}/lib/AbiWord-${ABIVERSION}/plugins
+ @${MKDIR} ${LOCALBASE}/share/applications
+ @${INSTALL_DATA} ${WRKSRC}/abiword.desktop \
+ ${LOCALBASE}/share/applications/abiword.desktop
+ @${MKDIR} ${LOCALBASE}/share/pixmaps
+ @${LN} -sf ${PREFIX}/share/AbiSuite-${ABIVERSION}/icons/abiword_48.png \
+ ${LOCALBASE}/share/pixmaps/abiword_48.png
+.if defined(GNOME_ENABLED)
+ @${MKDIR} ${LOCALBASE}/libdata/bonobo/servers
+ @${INSTALL_DATA} ${WRKDIR}/abiword-${PORTVERSION}/abidistfiles/GNOME_AbiWord_Control_${ABIVERSION:S/./_/}.server \
+ ${LOCALBASE}/libdata/bonobo/servers/
+ @${MKDIR} ${LOCALBASE}/share/gnome/gnome-2.0/ui
+ @${INSTALL_DATA} ${WRKDIR}/abiword-${PORTVERSION}/abidistfiles/abi-nautilus-view-file.xml \
+ ${LOCALBASE}/share/gnome/gnome-2.0/ui/
+.endif
+ @-update-desktop-database
+
+.include <bsd.port.post.mk>