From owner-svn-ports-all@FreeBSD.ORG Sat Jan 25 16:51:56 2014 Return-Path: Delivered-To: svn-ports-all@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 879F32BE; Sat, 25 Jan 2014 16:51:56 +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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 72D7C1082; Sat, 25 Jan 2014 16:51:56 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s0PGpuVZ001120; Sat, 25 Jan 2014 16:51:56 GMT (envelope-from miwi@svn.freebsd.org) Received: (from miwi@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s0PGpuaB001119; Sat, 25 Jan 2014 16:51:56 GMT (envelope-from miwi@svn.freebsd.org) Message-Id: <201401251651.s0PGpuaB001119@svn.freebsd.org> From: Martin Wilke Date: Sat, 25 Jan 2014 16:51:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r341055 - head/devel/pas2dox X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jan 2014 16:51:56 -0000 Author: miwi Date: Sat Jan 25 16:51:55 2014 New Revision: 341055 URL: http://svnweb.freebsd.org/changeset/ports/341055 QAT: https://qat.redports.org/buildarchive/r341055/ Log: - Fix build on - Add LICENSE - Stage support - Switch gmake to USES PR: 184886 Submitted by: Ports Fury Modified: head/devel/pas2dox/Makefile Modified: head/devel/pas2dox/Makefile ============================================================================== --- head/devel/pas2dox/Makefile Sat Jan 25 16:49:55 2014 (r341054) +++ head/devel/pas2dox/Makefile Sat Jan 25 16:51:55 2014 (r341055) @@ -9,22 +9,34 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Preprocessor to use doxygen with Pascal sources +LICENSE= GPLv2 + WRKSRC= ${WRKDIR}/${PORTNAME} -USE_GMAKE= yes +USES= gmake ALL_TARGET= ${PORTNAME} -PLIST_FILES= bin/pas2dox +PLIST_FILES= bin/${PORTNAME} + +.include + +.if ${OSVERSION} < 1000033 +BUILD_DEPENDS= flex>0:${PORTSDIR}/textproc/flex +MAKE_ENV= LEX="${LOCALBASE}/bin/flex" +.endif -NO_STAGE= yes post-patch: - ${REINPLACE_CMD} 's,^CC=.*$$,CC=$${CXX} $${CPPFLAGS} $${CXXFLAGS},' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e \ + 's|^LEX=|LEX?=| ; \ + s|$${CC} $$<|$${CXX} $${CXXFLAGS} $$<|' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e \ + 's|yy_flex_realloc|yyrealloc|' ${WRKSRC}/${PORTNAME}.l pre-build: - ${MAKE} -C ${WRKSRC} clean + @${RM} -f ${WRKSRC}/${PORTNAME}.cpp do-install: - ${MKDIR} ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/pas2dox ${PREFIX}/bin + (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \ + ${STAGEDIR}${PREFIX}/bin) .include