mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
9f3f1693a1
- Add missing OPTIONS_DEFINE - Fix plist without EXAMPLES
65 lines
2.1 KiB
Makefile
65 lines
2.1 KiB
Makefile
# Created by: Randall Hopper <aa8vb@ipass.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= togl
|
|
PORTVERSION= 1.7
|
|
PORTREVISION= 4
|
|
CATEGORIES= graphics tk
|
|
MASTER_SITES= SF/${PORTNAME}/Togl/${PORTVERSION}
|
|
DISTNAME= Togl-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Tk OpenGL widget
|
|
|
|
USES+= gmake tk
|
|
USE_XORG= x11 xt xmu
|
|
USE_GL= gl
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--with-tk=${TK_LIBDIR} \
|
|
--with-tcl=${TCL_LIBDIR} \
|
|
--with-tclinclude=${TCL_INCLUDEDIR}
|
|
USE_LDCONFIG= yes
|
|
|
|
TOGL_INSTDIR= ${PREFIX}/lib/${DISTNAME}
|
|
|
|
CPPFLAGS+= -I${TK_INCLUDEDIR}
|
|
LDFLAGS+= -L${TK_LIBDIR}
|
|
|
|
PLIST_SUB+= TK_VER=${TK_VER}
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|wish |${WISH:T} |' ${WRKSRC}/*.tcl
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${TOGL_INSTDIR}
|
|
.for i in togl.h togl_ws.h libTogl1.7.so pkgIndex.tcl
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${TOGL_INSTDIR}
|
|
.endfor
|
|
${LN} -s libTogl1.7.so ${STAGEDIR}${TOGL_INSTDIR}/libtogl.so.1
|
|
${LN} -s ${TOGL_INSTDIR}/libTogl1.7.so ${STAGEDIR}${PREFIX}/lib/libtogl.so
|
|
${LN} -s ${TOGL_INSTDIR}/libTogl1.7.so ${STAGEDIR}${PREFIX}/lib/libtogl.so.1
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/Togl.html ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/Makefile ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/ben.rgb ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/double.c ${WRKSRC}/double.tcl ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/gears.c ${WRKSRC}/gears.tcl ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/image.c ${WRKSRC}/image.h ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/index.c ${WRKSRC}/index.tcl ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/overlay.c ${WRKSRC}/overlay.tcl ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/stereo.c ${WRKSRC}/stereo.tcl ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/texture.c ${WRKSRC}/texture.tcl ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/togl.c ${WRKSRC}/togl.h ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/tree2.rgba ${STAGEDIR}${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|