From owner-freebsd-ports@FreeBSD.ORG Sun May 23 03:22:49 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43176106564A for ; Sun, 23 May 2010 03:22:49 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id C5FFC8FC18 for ; Sun, 23 May 2010 03:22:48 +0000 (UTC) Received: by fxm4 with SMTP id 4so2342852fxm.13 for ; Sat, 22 May 2010 20:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:message-id:user-agent:mime-version:content-type; bh=/uxiF8TB3twJI1eEEe1HPV2chd1TGh3M9aNBFktRSA8=; b=ub833GC+kXY9zD3jKy2IN39U8vP20nn3R99RXD2lHYKnNiZv8qvscH0hEdFvCaaa+J V+0mJTTIv/EbcEgpr3abTIcZvfeYjF5B+JSOVs5Nqcxs0ACOojwk+SoNcSezgCfXeVUc xfZoJS+oCmHY0/RBR5Hjax7KGpmxeNK3qDOf0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; b=GFNvt4/rwD9OGF/2MmVRk3Gl5MX+jSfdl9RpuLHW4ciTDfaRLGYWqHvtC0oTy9P3on Czas26s7mYssMEMvCdEPROiB+MtHXXmQ3B0VzU1diCaP7aoP18GrJh8nSYgY9unigBeo AFfshgPppwN56tEWqOobS/kRUKG89bfTmUPAY= Received: by 10.87.64.25 with SMTP id r25mr6245560fgk.20.1274584967770; Sat, 22 May 2010 20:22:47 -0700 (PDT) Received: from localhost (95-25-188-72.broadband.corbina.ru [95.25.188.72]) by mx.google.com with ESMTPS id 4sm7281319fgg.22.2010.05.22.20.22.46 (version=SSLv3 cipher=RC4-MD5); Sat, 22 May 2010 20:22:46 -0700 (PDT) From: Anonymous To: jhell References: <4BF85A4A.8060209@missouri.edu> <86632fa5d4.fsf@gmail.com> <4BF88ED7.5020309@dataix.net> Date: Sun, 23 May 2010 07:20:36 +0400 Message-ID: <86ocg7z4l7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Cc: Stephen Montgomery-Smith , freebsd-ports@freebsd.org Subject: Re: How to extract tcl src X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2010 03:22:49 -0000 --=-=-= jhell writes: > 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 think using bsd.tcl.mk is better idea, see below --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=a.diff Index: graphics/togl/Makefile =================================================================== RCS file: /a/.cvsup/ports/graphics/togl/Makefile,v retrieving revision 1.20 diff -u -p -r1.20 Makefile --- graphics/togl/Makefile 22 Aug 2009 00:23:10 -0000 1.20 +++ graphics/togl/Makefile 23 May 2010 03:15:07 -0000 @@ -15,34 +15,30 @@ DISTNAME= Togl-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= A Tk OpenGL widget -LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84 \ - tcl84.1:${PORTSDIR}/lang/tcl84 - USE_GMAKE= yes GNU_CONFIGURE= yes USE_GL= yes USE_XORG= x11 xt xmu +USE_TK= 85+ +PATCH_TK_SCRIPTS=*.tcl MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" -CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include/tk8.4" \ - LDFLAGS="-L${LOCALBASE}/lib/tk8.4" -CONFIGURE_ARGS= --with-tk=${LOCALBASE}/lib/tk8.4 \ - --with-tcl=${LOCALBASE}/lib/tcl8.4 \ - --with-tclinclude=${LOCALBASE}/include/tcl8.4 \ +CONFIGURE_ENV= CFLAGS="-I${TK_INCLUDEDIR}" \ + LDFLAGS="-L${TK_LIBDIR}" +CONFIGURE_ARGS= --with-tk=${TK_LIBDIR} \ + --with-tcl=${TCL_LIBDIR} \ + --with-tclinclude=${TCL_INCLUDEDIR} \ -TOGL_INSTDIR= ${PREFIX}/lib/tk8.4/${DISTNAME} +TOGL_INSTDIR= ${TK_LIBDIR:S/${LOCALBASE}/${PREFIX}/}/${DISTNAME} PLIST_SUB= TOGL_INSTDIR=${TOGL_INSTDIR:S,^${PREFIX}/,,} .if !defined(NOPORTDOCS) PORTDOCS= * .endif -post-patch: - @${REINPLACE_CMD} -e 's|wish |wish8.4 |' ${WRKSRC}/*.tcl - do-install: @${MKDIR} ${TOGL_INSTDIR} - ${INSTALL_DATA} ${WRKSRC}/libTogl1.7.so ${TOGL_INSTDIR}/togl.so + ${INSTALL_DATA} ${WRKSRC}/libTogl${PORTVERSION}.so ${TOGL_INSTDIR}/togl.so ${INSTALL_DATA} ${WRKSRC}/togl.h ${WRKSRC}/pkgIndex.tcl ${TOGL_INSTDIR} @${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/Makefile ${EXAMPLESDIR} --=-=-= And user can override it with WITH_TCL_VER/WITH_TK_VER or the port will pick up already installed version. I for one use tk86. > > 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. You could have used CVS, i.e. $ cvs -d$CVSROOT co togl $ cvs diff -up > > The most significant change mentioned above was changed to: > BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/lang/tcl85:configure Well, I've tried to update the port myself but I'm yet to figure out how to reliably determine ${WRKSRC} from lang/tcl${TCL_VER}. It's easy to do from a slave port but togl is not one. > > This was needed to provide configured values that graphics/togl would > then read. > > Regards, --=-=-=--