Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2014 16:51:56 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341055 - head/devel/pas2dox
Message-ID:  <201401251651.s0PGpuaB001119@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>



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