Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 May 2010 22:11:35 -0400
From:      jhell <jhell@dataix.net>
To:        Anonymous <swell.k@gmail.com>
Cc:        Stephen Montgomery-Smith <stephen@missouri.edu>, freebsd-ports@freebsd.org
Subject:   Re: How to extract tcl src
Message-ID:  <4BF88ED7.5020309@dataix.net>
In-Reply-To: <86632fa5d4.fsf@gmail.com>
References:  <4BF85A4A.8060209@missouri.edu> <86632fa5d4.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------080905030201060203050800
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On 05/22/2010 19:23, Anonymous wrote:
> BUILD_DEPENDS=  ${NONEXISTENT}:${PORTSDIR}/lang/tcl85:extract

Attached is the Makefile I just edited to configure against tcl and tk
8.5 instead of 8.4.

I have verified it for functionality (as in) extract, configure, make &
install only.

Before I made the mods I did not make a original copy so this is why I
did not provide a unified diff but I have bumped the the PORTREVISION
from _1 to _2 and it should be ready to be committed as this was a
pretty trivial change.

The most significant change mentioned above was changed to:
BUILD_DEPENDS=  ${NONEXISTENT}:${PORTSDIR}/lang/tcl85:configure

This was needed to provide configured values that graphics/togl would
then read.

Regards,

-- 

 jhell

--------------080905030201060203050800
Content-Type: text/plain;
 name="Makefile"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="Makefile"

# New ports collection makefile for:	Togl
# Date created:		Wed Aug 18 18:49:17 EDT 1999
# Whom:			Randall Hopper <aa8vb@ipass.net>
#
# $FreeBSD: ports/graphics/togl/Makefile,v 1.20 2009/08/22 00:23:10 amdmi3 Exp $
#

PORTNAME=	togl
PORTVERSION=	1.7
PORTREVISION=	2
CATEGORIES=	graphics tk
MASTER_SITES=	SF/${PORTNAME}/Togl/${PORTVERSION}
DISTNAME=	Togl-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A Tk OpenGL widget

BUILD_DEPENDS=  ${NONEXISTENT}:${PORTSDIR}/lang/tcl85:configure

LIB_DEPENDS=	tk85.1:${PORTSDIR}/x11-toolkits/tk85 \
		tcl85.1:${PORTSDIR}/lang/tcl85

USE_GMAKE=	yes
GNU_CONFIGURE=	yes
USE_GL=		yes
USE_XORG=	x11 xt xmu
MAKE_ENV=	PTHREAD_LIBS="${PTHREAD_LIBS}" \
		PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
CONFIGURE_ENV=	CFLAGS="-I${LOCALBASE}/include/tk8.5" \
		LDFLAGS="-L${LOCALBASE}/lib/tk8.5"
CONFIGURE_ARGS=	--with-tk=${LOCALBASE}/lib/tk8.5 \
		--with-tcl=${LOCALBASE}/lib/tcl8.5 \
		--with-tclinclude=${LOCALBASE}/include/tcl8.5 \

TOGL_INSTDIR=	${PREFIX}/lib/tk8.5/${DISTNAME}
PLIST_SUB=	TOGL_INSTDIR=${TOGL_INSTDIR:S,^${PREFIX}/,,}

.if !defined(NOPORTDOCS)
PORTDOCS=	*
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|wish |wish8.5 |' ${WRKSRC}/*.tcl

do-install:
	@${MKDIR} ${TOGL_INSTDIR}
	${INSTALL_DATA} ${WRKSRC}/libTogl1.7.so ${TOGL_INSTDIR}/togl.so
	${INSTALL_DATA} ${WRKSRC}/togl.h ${WRKSRC}/pkgIndex.tcl ${TOGL_INSTDIR}
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/Makefile ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/togl.c ${WRKSRC}/togl.h ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/double.c ${WRKSRC}/double.tcl ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/gears.c ${WRKSRC}/gears.tcl ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/index.c ${WRKSRC}/index.tcl ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/overlay.c ${WRKSRC}/overlay.tcl ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/stereo.c ${WRKSRC}/stereo.tcl ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/texture.c ${WRKSRC}/texture.tcl ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/image.c ${WRKSRC}/image.h ${WRKSRC}/ben.rgb ${WRKSRC}/tree2.rgba ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/Togl.html ${DOCSDIR}
.endif

.include <bsd.port.mk>

--------------080905030201060203050800--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BF88ED7.5020309>