From owner-svn-ports-head@FreeBSD.ORG Wed Jul 30 15:00:46 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 07515DC0; Wed, 30 Jul 2014 15:00:46 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E92482975; Wed, 30 Jul 2014 15:00:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s6UF0j5T066477; Wed, 30 Jul 2014 15:00:45 GMT (envelope-from bf@svn.freebsd.org) Received: (from bf@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s6UF0j3x066475; Wed, 30 Jul 2014 15:00:45 GMT (envelope-from bf@svn.freebsd.org) Message-Id: <201407301500.s6UF0j3x066475@svn.freebsd.org> From: Brendan Fabeny Date: Wed, 30 Jul 2014 15:00:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r363485 - head/graphics/ocaml-lablgl X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2014 15:00:46 -0000 Author: bf Date: Wed Jul 30 15:00:45 2014 New Revision: 363485 URL: http://svnweb.freebsd.org/changeset/ports/363485 QAT: https://qat.redports.org/buildarchive/r363485/ Log: Use staging Modified: head/graphics/ocaml-lablgl/Makefile head/graphics/ocaml-lablgl/pkg-descr Modified: head/graphics/ocaml-lablgl/Makefile ============================================================================== --- head/graphics/ocaml-lablgl/Makefile Wed Jul 30 14:50:04 2014 (r363484) +++ head/graphics/ocaml-lablgl/Makefile Wed Jul 30 15:00:45 2014 (r363485) @@ -9,7 +9,7 @@ MASTER_SITES= http://wwwfun.kurims.kyoto https://forge.ocamlcore.org/frs/download.php/816/ PKGNAMEPREFIX= ocaml- -MAINTAINER= ports@FreeBSD.org +MAINTAINER= bf@FreeBSD.org COMMENT= OpenGL interface for Objective Caml LICENSE= BSD3CLAUSE @@ -35,7 +35,6 @@ EXAMPLESDIR= ${PREFIX}/share/examples/oc CONFLICTS= ocaml-notk-[0-9]* ocaml-nox11-[0-9]* -NO_STAGE= yes .include USES+= tk:84,85 @@ -50,21 +49,19 @@ post-extract: post-patch: @${REINPLACE_CMD} -e "s,/usr/X11R6,${LOCALBASE},g" \ -e "s,/usr/local,${LOCALBASE},g" \ - -e "s,^\(BINDIR[ \t]*=\).*,\1${PREFIX}/bin,g" \ + -e "s,^\(BINDIR[ \t]*=\).*,\1${STAGEDIR}${PREFIX}/bin,g" \ -e "s,^\(RANLIB[ \t]*=\).*,\1ranlib,g" \ -e "s,^#\(LIBDIR[ \t]*=\).*,\1${PREFIX}/lib/ocaml,g" \ - -e "s,^#\(DLLDIR[ \t]*=\).*,\1${PREFIX}/lib/ocaml/stublibs,g" \ + -e "s,^#\(DLLDIR[ \t]*=\).*,\1${STAGEDIR}${PREFIX}/lib/ocaml/stublibs,g" \ + -e "s,^#\(INSTALLDIR[ \t]*=\).*,\1${STAGEDIR}${PREFIX}/lib/ocaml/lablGL,g" \ + -e "s!^#\(COPTS[ \t]*=\).*!\1-c ${CFLAGS} ${THR_CPP}!g" \ -e "/^TKINCLUDES/s,=.*$$,= -I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR}," \ -e "/^TKLIBS/s,=.*$$,= -L${LOCALBASE}/lib -ltk${TK_SHLIB_VER}\ -ltcl${TCL_SHLIB_VER} ${THR_LD}," \ ${WRKSRC}/Makefile.config - @${REINPLACE_CMD} \ - -e "s,^\(INSTALLDIR[ \t]*=\).*,\1${PREFIX}/lib/ocaml/lablGL,g" \ - -e "s!^\(COPTS[ \t]*=\).*!\1-c ${CFLAGS} ${THR_CPP}!g" \ - ${WRKSRC}/Makefile.common ${WRKSRC}/Makefile - @${REINPLACE_CMD} -E \ + -e '/exec ocaml/s,\$$\(INSTALLDIR\),${PREFIX}/lib/ocaml/lablGL,' \ -e 's,^(${PATTERN}+.*INSTALLDIR),\1\$${BSD_INSTALL_DATA} \3,' \ -e 's,^(${PATTERN}+.*BINDIR),\1\$${BSD_INSTALL_SCRIPT} \3,' \ -e 's,^(${PATTERN}+.*LIBDIR),\1\$${BSD_INSTALL_DATA} \3,' \ @@ -72,23 +69,18 @@ post-patch: ${WRKSRC}/Togl/src/Makefile pre-install: -# -# XXX: for incorrect PREFIX. Really should be done in bsd.ocaml.mk... -# -.if !exists(${PREFIX}/lib/ocaml/stublibs) - @${MKDIR} ${PREFIX}/lib/ocaml/stublibs -.endif + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/ocaml/stublibs post-install: - @${MKDIR} ${EXAMPLESDIR}/lablglut - @${MKDIR} ${EXAMPLESDIR}/togl + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/lablglut + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/togl @(cd ${WRKSRC}/LablGlut/examples && ${COPYTREE_SHARE} \* \ - ${EXAMPLESDIR}/lablglut '! -name Makefile') + ${STAGEDIR}${EXAMPLESDIR}/lablglut '! -name Makefile') @(cd ${WRKSRC}/Togl/examples && ${COPYTREE_SHARE} \* \ - ${EXAMPLESDIR}/togl '! -name Makefile') + ${STAGEDIR}${EXAMPLESDIR}/togl '! -name Makefile') .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .endif .include Modified: head/graphics/ocaml-lablgl/pkg-descr ============================================================================== --- head/graphics/ocaml-lablgl/pkg-descr Wed Jul 30 14:50:04 2014 (r363484) +++ head/graphics/ocaml-lablgl/pkg-descr Wed Jul 30 15:00:45 2014 (r363485) @@ -9,4 +9,4 @@ related functions. Please see ${PREFIX}/share/doc/ocaml/lablgl/README for further information. -WWW: http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgl.html +WWW: http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgl.html