blob: 834b80d7da5dc06d0f26b4001a2880d2332f4be2 (
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
|
# New ports collection makefile for: Z88
# Date created: Dec. 2004
# Whom: Pedro F. Giffuni <giffunip@asme.org>
#
# $FreeBSD$
#
PORTNAME= z88
PORTVERSION= 11.0
CATEGORIES= cad
MASTER_SITES= ftp://ftp.uni-bayreuth.de/pub/uni-bayreuth/LS-CAD/unix/:srcs \
ftp://ftp.uni-bayreuth.de/pub/uni-bayreuth/LS-CAD/manual/:dcs
DISTFILES= ${PORTNAME}src${EXTRACT_SUFX}:srcs ${PORTNAME}mane.pdf:dcs
DIST_SUBDIR= z88
EXTRACT_ONLY= ${PORTNAME}src${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= A compact Finite Element Analysis System
NO_WRKSUBDIR= yes
USE_GL= yes
USE_MOTIF= yes
#These defaults can be changed in z88.fcd too
BROWSER?= mozilla
XEDITOR?= nedit
Z88_BINS= z88f z88i1 z88i2 z88com z88d z88e z88g z88h z88n z88o \
z88p z88v z88x laserj88 pxon88
Z88_DATA= z88.fcd z88.dyn *.dxf *.txt
post-patch:
@${CP} ${WRKSRC}/z88.fcd.linux ${WRKSRC}/z88.fcd
@${CP} ${WRKSRC}/z88.mk.kernel.linux ${WRKSRC}/z88kernel.mk
@${CP} ${WRKSRC}/z88.mk.other.linux ${WRKSRC}/z88other.mk
@${CP} ${FILESDIR}/z88.sh ${WRKSRC}/z88.sh
@${REINPLACE_CMD} -e 's+%%DOCSDIR%%+${DOCSDIR}+g; \
s+mozilla+${BROWSER}+ ; \
s+nedit+${XEDITOR}+ ;' \
${WRKSRC}/z88.fcd
@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g ; s+%%CFLAGS%%+${CFLAGS}+g' \
${WRKSRC}/z88kernel.mk
@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g ; s+%%CFLAGS%%+${CFLAGS}+g ; \
s+%%X11BASE%%+${X11BASE}+g;' \
${WRKSRC}/z88other.mk
@${REINPLACE_CMD} -e 's+%%PREFIX%%+${PREFIX}+g; ' \
${WRKSRC}/z88.sh
do-build:
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} -f z88kernel.mk kernel)
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} -f z88other.mk other clean)
do-install:
@${MKDIR} ${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKSRC}/z88.sh ${PREFIX}/bin/z88
@${INSTALL_PROGRAM} ${Z88_BINS:S|^|${WRKSRC}/|} ${PREFIX}/bin
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${Z88_DATA:S|^|${WRKSRC}/|} ${DATADIR}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/*.htm ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/*.gif ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/*.jpg ${DOCSDIR}
.if !defined(NOPORTDOCS)
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/z88mane.pdf ${DOCSDIR}
.endif
.include <bsd.port.mk>
|