blob: 5c799719666d3a91fbc229a22afbb8b65819cc0e (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# New ports collection makefile for: irit
# Date created: 6 August 2002
# Whom: Igor Pokrovsky <tiamat@telegraph.spb.ru>
#
# $FreeBSD$
#
PORTNAME= irit
PORTVERSION= 9.5
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= http://www.cs.technion.ac.il/~irit/
DISTNAME= ${PORTNAME}-sm
MAINTAINER= ports@FreeBSD.org
COMMENT= Solid modeling system
LIB_DEPENDS= rle.1:${PORTSDIR}/graphics/urt
BUILD_DEPENDS= ${LOCALBASE}/lib/libpng.a:${PORTSDIR}/graphics/png \
${LOCALBASE}/lib/libungif.a:${PORTSDIR}/graphics/libungif
USE_ZIP= yes
USE_GMAKE= yes
.ifdef (WITH_MOTIF)
USE_MOTIF= yes
USE_GL= gl
.endif
USE_LDCONFIG= yes
NO_WRKSUBDIR= yes
MAKEFILE= makefile.gnux
MAKE_ARGS= "CFG=Rel"
MAKE_ENV= WRKSRC=${WRKSRC} \
ECHO_CMD=${ECHO_CMD} \
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${WRKSRC}/lib
NOT_FOR_ARCHS= sparc64
.ifdef (WITH_MOTIF)
MAKE_ENV+= WITH_MOTIF_DEF=yes
.endif
SUB_FILES= pkg-message
SUB_LIST= "DATADIR=${DATADIR}"
PORTDOCS= irit.doc prog_man.html general.inf technion.inf update.new \
coding.std coding.hints
.if !defined(WITH_MOTIF)
PLIST_SUB= WITH_MOTIF="@comment "
.else
PLIST_SUB= WITH_MOTIF=""
.endif
.ifndef (WITH_MOTIF)
pre-everything::
@${ECHO_CMD} ""
@${ECHO_CMD} "Define WITH_MOTIF=yes to build X11/Motif and OpenGL display drivers"
@${ECHO_CMD} ""
.endif
pre-build:
@${CP} ${WRKSRC}/makefile.gnux ${WRKSRC}/makefile.unx
@${CP} ${WRKSRC}/makeflag.gnux ${WRKSRC}/makeflag.unx
do-install:
FILES="`${FIND} ${WRKSRC}/bin -type f`"; \
for i in $${FILES}; do \
if [ "`${FILE} -b $$i | ${GREP} LSB`" ]; then \
${INSTALL_PROGRAM} $$i ${PREFIX}/bin; \
fi; \
done
${INSTALL_PROGRAM} ${WRKSRC}/lib/libIrit*.so ${PREFIX}/lib/
@${MKDIR} ${PREFIX}/include/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/${PORTNAME}
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/bin/*.cfg ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/bin/iritfont.itd ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/bin/iritinit.irt ${DATADIR}
@${MKDIR} ${EXAMPLESDIR}
@${MKDIR} ${EXAMPLESDIR}/data
${INSTALL_DATA} ${WRKSRC}/data/* ${EXAMPLESDIR}/data
@${MKDIR} ${EXAMPLESDIR}/emacs
${INSTALL_DATA} ${WRKSRC}/emacs/irit.el ${EXAMPLESDIR}/emacs
@${MKDIR} ${EXAMPLESDIR}/scripts
${INSTALL_DATA} ${WRKSRC}/scripts/*.irt ${EXAMPLESDIR}/scripts
.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|