diff options
author | sada <sada@FreeBSD.org> | 1999-07-02 07:15:54 +0800 |
---|---|---|
committer | sada <sada@FreeBSD.org> | 1999-07-02 07:15:54 +0800 |
commit | 2f3fb3fe5baa5c3f7d4a08a3dd3f9be5ede0bc67 (patch) | |
tree | c94331563d30c46ae4a2e218a51f6410c181c482 /textproc | |
parent | f72fd2385eaae997a618d362bdf9000172d0fac7 (diff) | |
download | freebsd-ports-gnome-2f3fb3fe5baa5c3f7d4a08a3dd3f9be5ede0bc67.tar.gz freebsd-ports-gnome-2f3fb3fe5baa5c3f7d4a08a3dd3f9be5ede0bc67.tar.zst freebsd-ports-gnome-2f3fb3fe5baa5c3f7d4a08a3dd3f9be5ede0bc67.zip |
Fix a probrem which occurs if you specify WRKDIRPREFIX variable.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/coco/Makefile | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/textproc/coco/Makefile b/textproc/coco/Makefile index 424233d190fd..d39be3515674 100644 --- a/textproc/coco/Makefile +++ b/textproc/coco/Makefile @@ -3,7 +3,7 @@ # Date created: 7 July 1997 # Whom: Satoshi Taoka <taoka@FreeBSD.org> # -# $Id: Makefile,v 1.40 1999/05/01 04:00:14 taoka Exp $ +# $Id: Makefile,v 1.41 1999/06/05 22:29:22 mharo Exp $ # DISTNAME= mule-2.3 @@ -21,6 +21,10 @@ PATCH_DIST_STRIP= -p1 MAINTAINER= taoka@FreeBSD.org +.include <bsd.port.pre.mk> + +WRKDIRBASE!= ${ECHO} ${WRKDIRPREFIX}${.CURDIR} | sed s:/editors/mule-common$$:: + .for dir in chinese/mule-wnn4 \ editors/mule \ japanese/mule-canna+sj3+wnn4 \ @@ -35,10 +39,10 @@ MAINTAINER= taoka@FreeBSD.org japanese/mule-wnn4 \ japanese/mule-wnn6 \ korean/mule-wnn4 -.if exists(${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work/.install_done) -WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work -.elif exists(${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work/.build_done) -WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work +.if exists(${WRKDIRBASE}/${dir}/work/.install_done) +WRKDIR= ${WRKDIRBASE}/${dir}/work +.elif exists(${WRKDIRBASE}/${dir}/work/.build_done) +WRKDIR?= ${WRKDIRBASE}/${dir}/work .endif .endfor WRKSRC= ${WRKDIR}/emacs-19.34 @@ -47,7 +51,7 @@ STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/mule.sh .if !defined(WRKDIR) .if defined(PACKAGE_BUILDING) # XXX -WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/../mule/work +WRKDIR= ${WRKDIRBASE}/editors/mule/work pre-build: @cd ${.CURDIR}/../mule; make .else @@ -158,4 +162,4 @@ post-install: post-package: @${TOUCH} ${TOUCH_FLAGS} ${PACKAGE_COOKIE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |