How to extract tcl src

jhell jhell at dataix.net
Sun May 23 02:11:38 UTC 2010


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
-------------- next part --------------
# New ports collection makefile for:	Togl
# Date created:		Wed Aug 18 18:49:17 EDT 1999
# Whom:			Randall Hopper <aa8vb at 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 at 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>


More information about the freebsd-ports mailing list