blob: 2fc4c49ad5b4090d2b1b428366d4d624c9c72e3d (
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
|
# $NetBSD: Makefile,v 1.1.1.1 2000/01/27 21:18:55 abs Exp $
#
DISTNAME= fmlinux
PKGNAME= framemaker-5.5.6
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= fmlinux.txt fmlinux.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")
DEPENDS= suse_linux>=6.1:../../emulators/suse_linux
.endif
MIRROR_DISTFILE=NO
NO_CONFIGURE= YES
NO_PACKAGE=
NO_CDROM=
DIST_SUBDIR= framemaker
# BROKEN= Does not work with suse 6.3 shlibs.rpm - needs 6.1
ONLY_FOR_PLATFORM=*-*-i386
WRKSRC= ${WRKDIR}/FM556_linux
PLIST_SRC= ${WRKDIR}/PLIST.src
FMHOME= ${PREFIX}/lib/FM556_linux
FMARCH= bin/scripts/fmarch
WRAPPERS= fmaddlicense maker demomaker
EXTRACT_ONLY= fmlinux.tar.gz
EXTRACT_CMD= ${GTAR} xvzf ${_DISTDIR}/fmlinux.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}/fmlinux.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"
|