Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 1999 17:30:56 -0500 (EST)
From:      Patrick Seal <patseal@hyperhost.net>
To:        ports@freebsd.org
Subject:   installing Wordperfect from CD/ports
Message-ID:  <Pine.BSF.4.10.9903301727250.43632-100000@foobar.hyperhost.net>

next in thread | raw e-mail | index | archive | help
I tried questions with no reponse, so I'm trying here!

---------- Forwarded message ----------
I have Wordperfect on CD.  It won't install.  If you're interested, I
asked this question about a week or two ago with a little bit of different
information.

here's what I got so far:
# cd /cdrom
# ./install.wp
errors

# cd /usr/ports/editors/wordperfect
# make install
works fine

# cd /usr/ports/editors/wordperfect/work/
# ./install.wp            (Runme is just a wrapper for this) 
same errors

hmm.  what could the port be doing to make it install right. Oh let's take
a look at the Makefile!!

do-install:
        @${MKDIR} ${WRKDIR}/tmp
  >>>>  @(cd ${WRKDIR} ; ${SCRIPTS_ENV} TMPDIR=${WRKDIR}/tmp ${SH} Runme)
        @sed 's#REPLACE_ME_WITH_DESTINATION#${PREFIX}/lib/corel#' \
                < ${FILESDIR}/xwp \
                > ${WRKDIR}/xwp
        @if test -f ${PREFIX}/bin/xwp ; then \
           ${MV} ${PREFIX}/bin/xwp ${PREFIX}/bin/xwp.old ; fi
        @${INSTALL_SCRIPT} ${WRKDIR}/xwp ${PREFIX}/bin

@(cd ${WRKDIR} ; ${SCRIPTS_ENV} TMPDIR=${WRKDIR}/tmp ${SH} Runme)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I checked the /usr/ports/Mk/bsd.port.mk and it said:

# SCRIPTS_ENV	- Additional environment vars passed to scripts in
#                 ${SCRIPTDIR} executed by bsd.port.mk (default: see
below).

so i did: (to save you guys some trouble, I consolidated it for you)

SCRIPTS_ENV+=	PORTOBJFORMAT=${PORTOBJFORMAT}
SCRIPTS_ENV+=	${INSTALL_MACROS}
SCRIPTS_ENV+=	CURDIR=${MASTERDIR} DISTDIR=${DISTDIR} \
		  WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} PATCHDIR=${PATCHDIR} \
		  SCRIPTDIR=${SCRIPTDIR} FILESDIR=${FILESDIR} \
		  PORTSDIR=${PORTSDIR} DEPENDS="${DEPENDS}" \
		  PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} \ 
		  X11BASE=${X11BASE}
.if defined(BATCH)
SCRIPTS_ENV+=	BATCH=yes
.endif


Since this makes it all run correctly, what can I do to "emulate" what the
port does from the command line?

Any information would be greatful,
Thanks!

------------------------------------ _____________________________________
Patrick Seal                        |"Microsoft isn't evil, they just make
<patseal@hyperhost.net>             |   really crappy operating systems."
Hyperhost - http://www.hyperhost.net| -Linus Torvalds
hosting and Design

http://www.freebsd.org - http://www.linux.org







To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9903301727250.43632-100000>