blob: f31fefa14c8732ac9e00297215c09ab0494dba79 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# ports collection makefile for: wordperfect
# Version required: 8.0
# Date created: 1998-Dec-10
# Whom: dugsong@OpenBSD.ORG
# msmith@freebsd.org
# Relevant URLs: http://www.corel.com/
#
# $FreeBSD$
DISTNAME= GUILG00
PKGNAME= wordperfect-8.0
CATEGORIES= editors
MASTER_SITES=
EXTRACT_SUFX= .GZ
MAINTAINER= msmith@freebsd.org
RUN_DEPENDS= /compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base
ONLY_FOR_ARCHS= i386
NO_CDROM= "LIC: redistribution not allowed"
IS_INTERACTIVE= "requires user interaction for installation"
NO_WRKSUBDIR= yes
NO_BUILD= yes
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE='The source to this port may not be automatically fetched due to licensing restrictions. You MUST fetch the source manually after reading and agreeing to the license at: http://linux.corel.com/linux8/download.htm Once ${DISTFILES} has been downloaded, move it to ${DISTDIR} and then restart this build.'
.endif
post-extract:
@(cd ${WRKDIR} ; for file in b* g* ; do ${TAR} -xf $$file ; done)
post-patch:
@${CP} ${WRKDIR}/shared/wpdata ${WRKDIR}/shared/wpdata.old
@${SED} 's#idir=#idir=${PREFIX}/lib/corel#' \
< ${WRKDIR}/shared/wpdata.old \
> ${WRKDIR}/shared/wpdata
@${CP} ${WRKDIR}/shared/install.wp ${WRKDIR}/shared/install.wp.old
@sed 's#REPLACE_ME_WITH_DESTINATION#${PREFIX}/lib/corel#' \
< ${WRKDIR}/shared/install.wp.old \
> ${WRKDIR}/shared/install.wp
pre-install:
@${ECHO} "" ; \
${ECHO} " This installation of WordPerfect will expire in 90 days," ; \
${ECHO} " unless you retrieve a free registration key from" ; \
${ECHO} "" ; \
${ECHO} " https://livewire.corel.com/wp8LinuxReg/" ; \
${ECHO} "" ; \
${ECHO} " to register your copy TODAY. Do this now!" ; \
${ECHO} "" ; \
${ECHO} " The installation default directory ${PREFIX}/lib/corel must be" ; \
${ECHO} " accepted for installation to proceed correctly. If the installation" ; \
${ECHO} " needs to be relocated, set PREFIX and restart the installation." ; \
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
.include <bsd.port.post.mk>
|