1999-05-04 12:26:02 +00:00
|
|
|
# New ports collection makefile for: AbiWord
|
1999-11-01 00:53:16 +00:00
|
|
|
# Version required: 0.7.5
|
1999-05-04 12:26:02 +00:00
|
|
|
# Date created: 3 Mar 1999
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Donald Burr <dburr@FreeBSD.org>
|
1999-05-04 12:26:02 +00:00
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1999-05-04 12:26:02 +00:00
|
|
|
#
|
|
|
|
|
1999-11-01 00:53:16 +00:00
|
|
|
DISTNAME= abi-${VERSION}
|
|
|
|
PKGNAME= AbiWord-${VERSION}
|
1999-05-04 12:26:02 +00:00
|
|
|
CATEGORIES= editors
|
1999-11-01 00:53:16 +00:00
|
|
|
MASTER_SITES= http://www.abisource.com/downloads/Version-${VERSION}/lf/
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} expat-${VERSION}.tar.gz \
|
|
|
|
unixfonts-${VERSION}.tar.gz wv-${VERSION}.tar.gz
|
1999-05-04 12:26:02 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= dburr@FreeBSD.org
|
1999-05-04 12:26:02 +00:00
|
|
|
|
1999-05-29 03:56:15 +00:00
|
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
|
1999-05-04 12:26:02 +00:00
|
|
|
png.3:${PORTSDIR}/graphics/png
|
|
|
|
RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell
|
|
|
|
|
|
|
|
DIST_SUBDIR= AbiWord
|
|
|
|
|
1999-11-01 00:53:16 +00:00
|
|
|
VERSION= 0.7.6
|
|
|
|
WRKSRC= ${WRKDIR}/abi-${VERSION}/src
|
|
|
|
USE_XLIB= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config/gtk12-config
|
|
|
|
GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
|
|
|
|
MAKE_ENV= GTK_CONFIG="${GTK_CONFIG}" GLIB_CONFIG="${GLIB_CONFIG}"
|
|
|
|
OSDISTDIR= ${OPSYS}_`uname -r`_${ARCH}_OBJ
|
1999-05-04 12:26:02 +00:00
|
|
|
|
1999-05-12 05:21:11 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1999-05-04 12:26:02 +00:00
|
|
|
post-patch:
|
1999-11-01 00:53:16 +00:00
|
|
|
.if ${OSVERSION} != 310000
|
1999-05-12 05:21:11 +00:00
|
|
|
@${CP} ${WRKSRC}/config/platforms/freebsd.mk \
|
|
|
|
${WRKSRC}/config/platforms/freebsd.mk.version
|
|
|
|
@${SED} -e s,3.1-RELEASE,`uname -r`,g \
|
|
|
|
${WRKSRC}/config/platforms/freebsd.mk.version > \
|
|
|
|
${WRKSRC}/config/platforms/freebsd.mk
|
|
|
|
.endif
|
1999-05-04 12:26:02 +00:00
|
|
|
|
1999-11-01 00:53:16 +00:00
|
|
|
pre-build:
|
|
|
|
@(cd ${WRKDIR}/wv && ./configure)
|
|
|
|
|
1999-05-04 12:26:02 +00:00
|
|
|
do-install:
|
1999-11-01 00:53:16 +00:00
|
|
|
@${MKDIR} ${PREFIX}/AbiSuite/bin
|
|
|
|
@${MKDIR} ${PREFIX}/AbiSuite/docs
|
|
|
|
@(cd ${WRKDIR}/abi-${VERSION}/docs; for DOCS in *; do \
|
|
|
|
${INSTALL_DATA} $${DOCS} ${PREFIX}/AbiSuite/docs/ \
|
|
|
|
;done)
|
|
|
|
@(cd ${WRKDIR}/abi-${VERSION}/test/wp; for TEST in *; do \
|
|
|
|
${INSTALL_DATA} $${TEST} ${PREFIX}/AbiSuite/docs/ \
|
|
|
|
;done)
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${OSDISTDIR}/bin/AbiWord_s \
|
|
|
|
${PREFIX}/AbiSuite/bin/
|
|
|
|
@${LN} -sf ${PREFIX}/AbiSuite/bin/AbiWord ${PREFIX}/bin/AbiWord
|
|
|
|
@${CP} ${WRKDIR}/unixfonts/install.sh \
|
|
|
|
${WRKDIR}/unixfonts/install.sh.orig
|
1999-05-12 05:21:11 +00:00
|
|
|
@${SED} s,/usr/local,${PREFIX}, \
|
1999-11-01 00:53:16 +00:00
|
|
|
${WRKDIR}/unixfonts/install.sh.orig > \
|
|
|
|
${WRKDIR}/unixfonts/install.sh
|
|
|
|
@(cd ${WRKDIR}/unixfonts; yes "" | ./install.sh)
|
1999-05-12 05:21:11 +00:00
|
|
|
@${CAT} ${PKGDIR}/MESSAGE | ${SED} s,/usr/local,${PREFIX},
|
1999-11-01 00:53:16 +00:00
|
|
|
@(${WRKSRC}/pkg/common/unix/scripts/makewrapper.sh \
|
|
|
|
AbiWord ${PREFIX}/AbiSuite)
|
|
|
|
|
1999-05-12 05:21:11 +00:00
|
|
|
.include <bsd.port.post.mk>
|