svn commit: r319044 - head/graphics/togl
Pietro Cerutti
gahr at FreeBSD.org
Sat May 25 11:06:00 UTC 2013
Author: gahr
Date: Sat May 25 11:05:59 2013
New Revision: 319044
URL: http://svnweb.freebsd.org/changeset/ports/319044
Log:
- Append to instead of overwrite CONFIGURE_ARGS
- Fix build with Tk 8.6
- While at it, trim Makefile header and switch to OPTIONSng
Reported by: miwi (Tcl/Tk 8.6 exp-run latecomers)
Approved by: portmgr
Modified:
head/graphics/togl/Makefile (contents, props changed)
Modified: head/graphics/togl/Makefile
==============================================================================
--- head/graphics/togl/Makefile Sat May 25 10:51:57 2013 (r319043)
+++ head/graphics/togl/Makefile Sat May 25 11:05:59 2013 (r319044)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: Togl
-# Date created: Wed Aug 18 18:49:17 EDT 1999
-# Whom: Randall Hopper <aa8vb at ipass.net>
-#
+# Created by: Randall Hopper <aa8vb at ipass.net>
# $FreeBSD$
-#
PORTNAME= togl
PORTVERSION= 1.7
@@ -13,7 +9,7 @@ MASTER_SITES= SF/${PORTNAME}/Togl/${PORT
DISTNAME= Togl-${PORTVERSION}
MAINTAINER= ports at FreeBSD.org
-COMMENT= A Tk OpenGL widget
+COMMENT= Tk OpenGL widget
USE_XORG= x11 xt xmu
USE_GL= gl
@@ -23,7 +19,7 @@ USE_TK_BUILD= 84+
USE_TK= 84+
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-tk=${TK_LIBDIR} \
+CONFIGURE_ARGS+=--with-tk=${TK_LIBDIR} \
--with-tcl=${TCL_LIBDIR} \
--with-tclinclude=${TCL_INCLUDEDIR}
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
@@ -36,6 +32,8 @@ PLIST_SUB= TOGL_INSTDIR="${TOGL_INSTDIR:
CPPFLAGS+= -I${TK_INCLUDEDIR}
LDFLAGS+= -L${TK_LIBDIR}
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|wish |${WISH:T} |' ${WRKSRC}/*.tcl
@@ -47,11 +45,11 @@ do-install:
${LN} -s ${TOGL_INSTDIR}/libTogl1.7.so ${TOGL_INSTDIR}/libtogl.so.1
${LN} -s ${TOGL_INSTDIR}/libTogl1.7.so ${PREFIX}/lib/libtogl.so
${LN} -s ${TOGL_INSTDIR}/libTogl1.7.so ${PREFIX}/lib/libtogl.so.1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Togl.html ${DOCSDIR}
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/Makefile ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/ben.rgb ${EXAMPLESDIR}
More information about the svn-ports-head
mailing list