summaryrefslogtreecommitdiff
path: root/editors/framemaker/Makefile
blob: c7a9745ac685ba79a67d317fca192b4cca8c0417 (plain)
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
71
72
73
# $NetBSD: Makefile,v 1.7 2000/08/31 02:35:26 hubertf Exp $
#

DISTNAME=	fmlinux
PKGNAME=	framemaker-5.5.6.2
CATEGORIES=	editors textproc
MASTER_SITES=	ftp://ftp.adobe.com/pub/adobe/magic/framemaker/unix/5.x/ \
		ftp://ftp.adobe.com/pub/adobe/magic/framemaker/unix/5.x/beta/
DISTFILES=	fmlinux2.txt fmlinux2.tar.gz dictionaries.txt \
		dictionaries.tar.gz help.txt help.tar.gz manuals.txt \
		manuals.tar.gz

MAINTAINER=	abs@netbsd.org
HOMEPAGE=	http://www.adobe.com/products/framemaker/fmlinux.html

.include "../../mk/bsd.prefs.mk"
.if (${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "i386")
# At least on 1.4.2, suse-6.3 is NOT ok, you need 6.1!
DEPENDS+=	suse_linux>=6.1:../../emulators/suse_linux
CHECK_SHLIBS=	no
.endif

RESTRICTED=		"Distributed only by Adobe Inc."
NO_SRC_ON_FTP=		${RESTRICTED}
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

NO_CONFIGURE=	YES

DIST_SUBDIR=	framemaker

# BROKEN=	Does not work with suse 6.3 shlibs.rpm - needs 6.1
.if !make(fetch)
ONLY_FOR_PLATFORM=*-*-i386
.endif

WRKSRC=		${WRKDIR}/FM556_linux
PLIST_SRC=	${WRKDIR}/PLIST.src
FMHOME=		${PREFIX}/lib/FM556_linux
FMARCH=		bin/scripts/fmarch
WRAPPERS=	fmaddlicense maker demomaker

EXTRACT_ONLY=	fmlinux2.tar.gz
EXTRACT_CMD=	${GTAR} xvzf ${_DISTDIR}/fmlinux2.tar.gz FM556_linux/${FMARCH}

do-build:
.for wrap in ${WRAPPERS}
	@${SED} -e 's|@@PREFIX@@|${PREFIX}|g' -e 's|@@COMMAND@@|${wrap}|g' \
		${FILESDIR}/wrapper > ${WRKDIR}/${wrap}
.endfor

do-install:
	@${GTAR} xzvCf ${PREFIX}/lib ${_DISTDIR}/fmlinux2.tar.gz
	@${GTAR} xzvCf ${FMHOME}/fminit/usenglish ${_DISTDIR}/manuals.tar.gz
	@${GTAR} xzvCf ${FMHOME}/fminit/usenglish ${_DISTDIR}/help.tar.gz
	@${GTAR} xzvCf ${FMHOME}/fminit ${_DISTDIR}/dictionaries.tar.gz
	@${INSTALL_SCRIPT} ${WRKSRC}/${FMARCH} ${FMHOME}/${FMARCH}
.for wrap in ${WRAPPERS}
	@${INSTALL_SCRIPT} ${WRKDIR}/${wrap} ${PREFIX}/bin
.endfor
	@${LN} -s maker ${PREFIX}/bin/framemaker

post-install:
	@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
	@(cd ${PREFIX}; \
	 ${FIND} lib/FM556_linux \( -type f -or -type l \) | \
	   sort >> ${PLIST_SRC}; \
	 for DIR in `${FIND} lib/FM556_linux -type d | sort -r`; do \
	   ${ECHO} "@dirrm $$DIR" >> ${PLIST_SRC}; \
	 done)

.include "../../mk/bsd.pkg.mk"