blob: b2b38ce8aa7e72314529bb3242ba2f5f10a04af4 (
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
74
75
|
# New ports collection makefile for: EZWGL
# Version required: 1.40
# Date created: 4 May 1998
# Whom: Andrey Zakhvatov
#
# $FreeBSD$
#
DISTNAME= EZWGL-1.40c
CATEGORIES= graphics devel
MASTER_SITES= ftp://ftp.ma.utexas.edu/pub/mzou/
DISTFILES= EZWGL-1.40-doc.tgz ${DISTNAME}-src.tgz
MAINTAINER= andy@icc.surw.chel.su
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
ALL_TARGET= shared clean static
USE_X_PREFIX= yes
WRKSRC= ${WRKDIR}/${PKGNAME}
.include "files/manpages"
.include <bsd.port.pre.mk>
.if ${PORTOBJFORMAT} == "elf"
VERSION= 1
.else
VERSION= 1.4
.endif
pre-install:
.for file in Makefile.orig animate btnbox clock counter hanoi locator meter puzzle
-@ ${RM} ${WRKSRC}/demos/${file}
.endfor
.for file in Makefile.orig src1 src2 target1 target2
-@ ${RM} ${WRKSRC}/demos/DnD/${file}
.endfor
.for file in setroot transparent
-@ ${RM} ${WRKSRC}/demos/Glass/${file}
.endfor
.for file in Makefile.orig gears image julia pendulum
-@ ${RM} ${WRKSRC}/demos/GL/${file}
.endfor
.for file in Makefile.orig client server
-@ ${RM} ${WRKSRC}/demos/Message/${file}
.endfor
-@ ${RMDIR} ${WRKDIR}/EZWGL-1.40/doc/html/misc
-@ ${MV} ${WRKDIR}/EZWGL-1.40/doc/man3/EZ_RegisterCompositeWidget,3 ${WRKDIR}/EZWGL-1.40/doc/man3/EZ_RegisterCompositeWidget.3
-@ ${RM} ${WRKSRC}/examples/Makefile.orig
do-install:
@ ${INSTALL_DATA} ${WRKSRC}/include/EZ.h ${PREFIX}/include
@ ${INSTALL_DATA} ${WRKSRC}/lib/libEZ.a ${PREFIX}/lib
@ ${INSTALL_DATA} ${WRKSRC}/lib/libEZ.so.${VERSION} ${PREFIX}/lib
@ ${LN} -sf libEZ.so.${VERSION} ${PREFIX}/lib/libEZ.so
.for file in ${MAN3}
@ ${INSTALL_MAN} ${WRKDIR}/EZWGL-1.40/doc/man3/${file} ${PREFIX}/man/man3
.endfor
@ ${MKDIR} ${PREFIX}/share/examples/EZ
@ cd ${WRKSRC}/examples; tar cf - * | \
(cd ${PREFIX}/share/examples/EZ; tar --unlink -xf - )
@ ${MKDIR} ${PREFIX}/share/examples/EZ/demos
@ cd ${WRKSRC}/demos; tar cf - * | \
(cd ${PREFIX}/share/examples/EZ/demos; tar --unlink -xf - )
post-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${PREFIX}/share/doc/EZ
@ cd ${WRKDIR}/EZWGL-1.40/doc; tar cf - html ps | \
(cd ${PREFIX}/share/doc/EZ; tar --unlink -xf - )
.endif
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.post.mk>
|