diff options
Diffstat (limited to 'editors/AbiWord2/Makefile')
-rw-r--r-- | editors/AbiWord2/Makefile | 66 |
1 files changed, 37 insertions, 29 deletions
diff --git a/editors/AbiWord2/Makefile b/editors/AbiWord2/Makefile index 25d2d9c99cfe..366918b2f2ea 100644 --- a/editors/AbiWord2/Makefile +++ b/editors/AbiWord2/Makefile @@ -1,42 +1,39 @@ # New ports collection makefile for: AbiWord -# Version required: 0.5.5 +# Version required: 0.7.5 # Date created: 3 Mar 1999 # Whom: Donald Burr <dburr@FreeBSD.org> # # $FreeBSD$ # -DISTNAME= abi-0.5.5-src -PKGNAME= AbiWord-0.5.5 +DISTNAME= abi-${VERSION} +PKGNAME= AbiWord-${VERSION} CATEGORIES= editors -MASTER_SITES= http://www.abisource.com/downloads/ -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} expat.tar.gz \ - unixfonts-0.5.4.tar.gz +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 MAINTAINER= dburr@FreeBSD.org -BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash2 LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \ png.3:${PORTSDIR}/graphics/png RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell DIST_SUBDIR= AbiWord -WRKSRC= ${WRKDIR}/abi-0.5.5/src -USE_XLIB= YES -USE_GMAKE= YES - -# the build is placed in a directory name of the form -# FreeBSD_3.1-RELEASE_i386_OBJ. This variable makes it -# a bit easier to type this whenever it's needed in the -# do-install target. -OSDISTDIR= `uname -s`_`uname -r`_`uname -m`_OBJ +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 .include <bsd.port.pre.mk> post-patch: - @ cd ${WRKDIR} && ${LN} -sf abi-0.5.5 abi -.if ${OSVERSION} > 310000 +.if ${OSVERSION} != 310000 @${CP} ${WRKSRC}/config/platforms/freebsd.mk \ ${WRKSRC}/config/platforms/freebsd.mk.version @${SED} -e s,3.1-RELEASE,`uname -r`,g \ @@ -44,18 +41,29 @@ post-patch: ${WRKSRC}/config/platforms/freebsd.mk .endif +pre-build: + @(cd ${WRKDIR}/wv && ./configure) + do-install: - ${MKDIR} ${PREFIX}/AbiSuite/bin - ${MKDIR} ${PREFIX}/AbiSuite/lib - ( cd ${WRKDIR}/abi-0.5.5/dist/${OSDISTDIR}/bin ; for BIN in *; do ${INSTALL_PROGRAM} $${BIN} ${PREFIX}/AbiSuite/bin ; done ) - ( cd ${WRKDIR}/abi-0.5.5/dist/${OSDISTDIR}/lib ; for LIB in *; do ${INSTALL_DATA} $${LIB} ${PREFIX}/AbiSuite/lib ; done ) - @${CP} ${WRKDIR}/unixfonts-0.5.4/install.sh \ - ${WRKDIR}/unixfonts-0.5.4/install.sh.orig + @${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 @${SED} s,/usr/local,${PREFIX}, \ - ${WRKDIR}/unixfonts-0.5.4/install.sh.orig > \ - ${WRKDIR}/unixfonts-0.5.4/install.sh - ( cd ${WRKDIR}/unixfonts-0.5.4 ; yes "" | bash ./install.sh ) - for BIN in ${PREFIX}/AbiSuite/bin/* ; do ${LN} -sf $${BIN} ${PREFIX}/bin ; done + ${WRKDIR}/unixfonts/install.sh.orig > \ + ${WRKDIR}/unixfonts/install.sh + @(cd ${WRKDIR}/unixfonts; yes "" | ./install.sh) @${CAT} ${PKGDIR}/MESSAGE | ${SED} s,/usr/local,${PREFIX}, - + @(${WRKSRC}/pkg/common/unix/scripts/makewrapper.sh \ + AbiWord ${PREFIX}/AbiSuite) + .include <bsd.port.post.mk> |