summaryrefslogtreecommitdiff
path: root/editors/abiword/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/abiword/Makefile')
-rw-r--r--editors/abiword/Makefile60
1 files changed, 40 insertions, 20 deletions
diff --git a/editors/abiword/Makefile b/editors/abiword/Makefile
index 849abc1fcc0..0a6d71432a7 100644
--- a/editors/abiword/Makefile
+++ b/editors/abiword/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2001/05/22 09:32:18 wiz Exp $
+# $NetBSD: Makefile,v 1.26 2001/05/24 04:28:19 jlam Exp $
#
# According to AbiSource's explanation of their trademark rights,
# compilations/distributions of AbiWord not provided by AbiSource must
@@ -7,17 +7,23 @@
DISTNAME= abi-${ABIWORD_VERS}
PKGNAME= abiword-personal-${ABIWORD_VERS}
-ABIWORD_VERS= 0.7.10
+ABIWORD_VERS= 0.7.14
CATEGORIES= editors
-MASTER_SITES= http://download.abisource.com/releases/${ABIWORD_VERS}/src/lf/
-DISTFILES= ${ABISRC} ${ABIDISTFILES} ${EXPATSRC} ${ICONVSRC} \
- ${UNIXFONTS} ${WVSRC}
+MASTER_SITES= http://www.abisource.com/downloads/Version-${ABIWORD_VERS}/
+DIST_SUBDIR= abisuite
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+DISTFILES+= abidistfiles-${ABIWORD_VERS}${EXTRACT_SUFX}
+DISTFILES+= expat-${ABIWORD_VERS}${EXTRACT_SUFX}
+DISTFILES+= psiconv-${ABIWORD_VERS}${EXTRACT_SUFX}
+DISTFILES+= unixfonts-${ABIWORD_VERS}${EXTRACT_SUFX}
+DISTFILES+= wv-${ABIWORD_VERS}${EXTRACT_SUFX}
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://www.abisource.com/
COMMENT= Open Source cross-platform word processor
BUILD_DEPENDS+= unzip-*:../../archivers/unzip
+DEPENDS+= libiconv>=1.5:../../converters/libiconv
DEPENDS+= ispell-base-*:../../textproc/ispell-base
DEPENDS+= gtk+-1.2.*:../../x11/gtk
DEPENDS+= png>=1.0.11:../../graphics/png
@@ -28,27 +34,41 @@ USE_GMAKE= # defined
NO_CONFIGURE= # defined
ALL_TARGET= compile canonical
-DIST_SUBDIR= abisuite
-ABISRC= ${DISTNAME}${EXTRACT_SUFX}
-ABIDISTFILES= abidistfiles-${ABIWORD_VERS}${EXTRACT_SUFX}
-EXPATSRC= expat-${ABIWORD_VERS}${EXTRACT_SUFX}
-ICONVSRC= libiconv-${ABIWORD_VERS}${EXTRACT_SUFX}
-UNIXFONTS= unixfonts-${ABIWORD_VERS}${EXTRACT_SUFX}
-WVSRC= wv-${ABIWORD_VERS}${EXTRACT_SUFX}
+OS_CFLAGS= ${CFLAGS}
+
+.if exists(/usr/include/inttypes.h)
+OS_CFLAGS+= -DHAVE_INTTYPE_H=1
+.endif
+
+# Avoid headers from some installed packages. These must come first before
+# ${LOCALBASE}/include!
+#
+OS_CFLAGS+= -I${WRKDIR}/expat
+OS_CFLAGS+= -I${WRKDIR}/psiconv
+OS_CFLAGS+= -I${WRKDIR}/wv
+
+OS_CFLAGS+= -I${LOCALBASE}/include # png.h & iconv.h
+
+# AbiWord expects the iconv functions to be in the system libraries, so
+# unconditionally link against the pkgsrc libiconv.so.
+#
+XLDFLAGS= ${LDFLAGS} -liconv
+
+MAKE_ENV+= OS_CFLAGS="${OS_CFLAGS}"
+MAKE_ENV+= XLDFLAGS="${XLDFLAGS}"
-# Avoid headers from some installed packages. These must come first!
-CPPFLAGS+= -I${WRKDIR}/wv
-CPPFLAGS+= -I${WRKDIR}/libiconv/include
+MAKE_FLAGS+= ABI_BUILD_VERSION="${ABIWORD_VERS}"
+MAKE_FLAGS+= UNIX_CAN_BUILD_STATIC=0
-CPPFLAGS+= -I${LOCALBASE}/include # png.h
+WRKSRC= ${WRKDIR}/abi
-MAKE_ENV+= ABI_BUILD_VERSION="${ABIWORD_VERS}"
-MAKE_ENV+= OS_EXTRA_CFLAGS="${CPPFLAGS}"
-MAKE_ENV+= OS_DLLFLAGS="${LDFLAGS}"
+post-extract:
+ ${RM} -rf ${WRKSRC}/user/wp/help/images/CVS
post-install:
${CHMOD} -R a+r ${PREFIX}/share/AbiSuite
${RM} -f ${PREFIX}/share/AbiSuite/dictionary/american.hash
- ${LN} -sf ../../../lib/american.hash ${PREFIX}/share/AbiSuite/dictionary/american.hash
+ ${LN} -sf ../../../lib/american.hash \
+ ${PREFIX}/share/AbiSuite/dictionary/american.hash
.include "../../mk/bsd.pkg.mk"