1998-05-19 08:50:10 +00:00
|
|
|
# New ports collection makefile for: EZWGL
|
1999-01-02 19:51:39 +00:00
|
|
|
# Version required: 1.40
|
1998-05-19 08:50:10 +00:00
|
|
|
# Date created: 4 May 1998
|
|
|
|
# Whom: Andrey Zakhvatov
|
|
|
|
#
|
1999-02-22 04:26:20 +00:00
|
|
|
# $Id: Makefile,v 1.14 1999/01/02 19:51:36 steve Exp $
|
1998-05-19 08:50:10 +00:00
|
|
|
#
|
|
|
|
|
1999-02-22 04:26:20 +00:00
|
|
|
DISTNAME= EZWGL-1.40c
|
1998-11-21 07:27:41 +00:00
|
|
|
CATEGORIES= graphics devel
|
1998-05-19 08:50:10 +00:00
|
|
|
MASTER_SITES= ftp://ftp.ma.utexas.edu/pub/mzou/
|
1999-02-22 04:26:20 +00:00
|
|
|
DISTFILES= EZWGL-1.40-doc.tgz ${DISTNAME}-src.tgz
|
1998-05-19 08:50:10 +00:00
|
|
|
|
|
|
|
MAINTAINER= andy@icc.surw.chel.su
|
|
|
|
|
1998-09-15 11:46:15 +00:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
|
1998-05-19 08:50:10 +00:00
|
|
|
|
|
|
|
ALL_TARGET= shared clean static
|
1998-08-05 09:31:52 +00:00
|
|
|
USE_X_PREFIX= yes
|
1998-07-27 00:33:28 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
1998-05-19 08:50:10 +00:00
|
|
|
|
1998-09-19 01:27:52 +00:00
|
|
|
.include "files/manpages"
|
|
|
|
|
1998-11-11 05:37:39 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
|
|
|
VERSION= 1
|
|
|
|
.else
|
1999-01-02 19:51:39 +00:00
|
|
|
VERSION= 1.4
|
1998-11-11 05:37:39 +00:00
|
|
|
.endif
|
|
|
|
|
1998-05-19 08:50:10 +00:00
|
|
|
pre-install:
|
1999-02-22 04:26:20 +00:00
|
|
|
.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
|
1998-09-19 01:27:52 +00:00
|
|
|
-@ ${RM} ${WRKSRC}/examples/Makefile.orig
|
1998-05-19 08:50:10 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/include/EZ.h ${PREFIX}/include
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/lib/libEZ.a ${PREFIX}/lib
|
1998-10-05 02:52:32 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/lib/libEZ.so.${VERSION} ${PREFIX}/lib
|
|
|
|
@ ${LN} -sf libEZ.so.${VERSION} ${PREFIX}/lib/libEZ.so
|
1998-05-19 08:50:10 +00:00
|
|
|
.for file in ${MAN3}
|
1999-02-22 04:26:20 +00:00
|
|
|
@ ${INSTALL_MAN} ${WRKDIR}/EZWGL-1.40/doc/man3/${file} ${PREFIX}/man/man3
|
1998-05-19 08:50:10 +00:00
|
|
|
.endfor
|
1999-01-02 19:51:39 +00:00
|
|
|
@ ${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:
|
1998-05-19 08:50:10 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
1998-07-27 00:33:28 +00:00
|
|
|
@ ${MKDIR} ${PREFIX}/share/doc/EZ
|
1999-02-22 04:26:20 +00:00
|
|
|
@ cd ${WRKDIR}/EZWGL-1.40/doc; tar cf - html ps | \
|
1998-09-19 01:27:52 +00:00
|
|
|
(cd ${PREFIX}/share/doc/EZ; tar --unlink -xf - )
|
1998-05-19 08:50:10 +00:00
|
|
|
.endif
|
1998-10-05 02:52:32 +00:00
|
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
1998-08-09 23:51:08 +00:00
|
|
|
|
1998-11-11 05:37:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|