View | Details | Raw Unified | Return to bug 176575
Collapse All | Expand All

(-)devel/codeworker/Makefile (-10 / +13 lines)
Lines 1-34 Link Here
1
# ex:ts=8
1
# Created by: ijliao
2
# Ports collection makefile for:	CodeWorker
3
# Date created:			Dec 31, 2003
4
# Whom:				ijliao
5
#
6
# $FreeBSD: head/devel/codeworker/Makefile 300896 2012-07-14 13:54:48Z beat $
2
# $FreeBSD: head/devel/codeworker/Makefile 300896 2012-07-14 13:54:48Z beat $
7
#
8
3
9
PORTNAME=	codeworker
4
PORTNAME=	codeworker
10
PORTVERSION=	4.2
5
PORTVERSION=	4.5.3
11
CATEGORIES=	devel
6
CATEGORIES=	devel
12
MASTER_SITES=	http://codeworker.free.fr/downloads/
7
MASTER_SITES=	http://codeworker.free.fr/downloads/
13
DISTNAME=	CodeWorker_SRC${PORTVERSION:S/./_/g}
8
DISTNAME=	CodeWorker_SRC${PORTVERSION:S/./_/g}
14
9
15
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	A parsing tool and a source code generator
11
COMMENT=	Versatile parsing tool and source code generator
17
12
18
EXTRACT_BEFORE_ARGS=	-qo -aa
13
LICENSE=	LGPL21
19
14
20
WRKSRC=		${WRKDIR}/CodeWorker${PORTVERSION:S/./_/g}
15
WRKSRC=		${WRKDIR}/CodeWorker${PORTVERSION:S/./_/g}
21
16
22
USE_ZIP=	yes
17
USE_ZIP=	yes
18
USE_DOS2UNIX=	yes
23
USE_GMAKE=	yes
19
USE_GMAKE=	yes
24
MAKE_ARGS=	CC="${CXX}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LFLAGS="-lm"
20
MAKE_ARGS=	CC="${CXX}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LFLAGS="-lm"
25
ALL_TARGET=	build
21
ALL_TARGET=	build
22
MAKE_JOBS_SAFE=	yes
26
23
27
CFLAGS+=	-Dstricmp=strcasecmp
24
CFLAGS+=	-Dstricmp=strcasecmp
28
25
29
PLIST_FILES=	bin/codeworker
26
PLIST_FILES=	bin/codeworker
30
27
28
post-patch:
29
	@${FIND} ${WRKSRC} -name "*.cpp" -or -name "*.h" | ${XARGS} \
30
		${REINPLACE_CMD} -e \
31
		's|<features.h>|<cstdio>| ; \
32
		 s|__GNUC_PREREQ |__GNUC_PREREQ__|'
33
31
do-install:
34
do-install:
32
	${INSTALL_PROGRAM} ${WRKSRC}/codeworker ${PREFIX}/bin
35
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} codeworker ${PREFIX}/bin)
33
36
34
.include <bsd.port.mk>
37
.include <bsd.port.mk>
(-)devel/codeworker/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (CodeWorker_SRC4_2.zip) = b6749f97ca5ba16ed6fd3be4fbb0ad6e98056f8c43c5854da17f3cd7325c5756
1
SHA256 (CodeWorker_SRC4_5_3.zip) = b5fdf7b01d280d37b5534fe29890cb21357e11393bcab6f129c1a141485f799f
2
SIZE (CodeWorker_SRC4_2.zip) = 3178438
2
SIZE (CodeWorker_SRC4_5_3.zip) = 3277274
(-)devel/codeworker/files/patch-GrfForeach.h (-14 lines)
Lines 1-14 Link Here
1
2
$FreeBSD: head/devel/codeworker/files/patch-GrfForeach.h 300896 2012-07-14 13:54:48Z beat $
3
4
--- GrfForeach.h.orig
5
+++ GrfForeach.h
6
@@ -83,7 +83,7 @@
7
 		virtual SEQUENCE_INTERRUPTION_LIST executeReverseSortedForeach(DtaScriptVariable& theVariable, DtaScriptVariable& stackForeach);
8
 		virtual SEQUENCE_INTERRUPTION_LIST executeReverseSortedIndirectForeach(DtaScriptVariable& theVariable, DtaScriptVariable& stackForeach);
9
 
10
-		SEQUENCE_INTERRUPTION_LIST GrfForeach::iterate(DtaArrayIterator& iteratorData, DtaScriptVariable& stackForeach);
11
+		SEQUENCE_INTERRUPTION_LIST iterate(DtaArrayIterator& iteratorData, DtaScriptVariable& stackForeach);
12
 	};
13
 }
14
 
(-)devel/codeworker/files/patch-NetSocket.cpp (-23 lines)
Lines 1-23 Link Here
1
2
$FreeBSD: head/devel/codeworker/files/patch-NetSocket.cpp 300896 2012-07-14 13:54:48Z beat $
3
4
--- NetSocket.cpp.orig
5
+++ NetSocket.cpp
6
@@ -45,7 +45,7 @@
7
 namespace CodeWorker {
8
 	bool socketReaderCBK(ScpStream& theStream, void* pData) {
9
 		char tcBuffer[2048];
10
-		int hSocket = (int) pData;
11
+		int hSocket = (intptr_t) pData;
12
 		int iLength = recv(hSocket, tcBuffer, 2047, 0);
13
 		if (iLength <= 0) return false;
14
 		theStream.writeBinaryData(tcBuffer, iLength);
15
@@ -53,7 +53,7 @@
16
 	}
17
 
18
 	bool socketWriterCBK(ScpStream& theStream, void* pData) {
19
-		int hSocket = (int) pData;
20
+		int hSocket = (intptr_t) pData;
21
 		int iLength = theStream.size();
22
 		if (iLength <= 0) return false;
23
 		return NetSocket::sendToSocket(hSocket, theStream.readBuffer(), iLength);
(-)devel/codeworker/pkg-descr (-10 / +12 lines)
Lines 1-13 Link Here
1
CodeWorker is a parsing tool and a source code generator, available in Open
1
CodeWorker is a parsing tool and a source code generator, available in
2
Source (distributed under the GNU Lesser General Public License) devoted to
2
Open Source (distributed under the GNU Lesser General Public License)
3
cover many aspects of the generative programming. Generative programming is
3
devoted to cover many aspects of the generative programming. Generative
4
a software engineering approach for producing reusable, tailor-made, evolvable
4
programming is a software engineering approach for producing reusable,
5
and reliable IT systems with a high level of automation.
5
tailor-made, evolvable and reliable IT systems with a high level of
6
automation.
6
7
7
The tool interprets a scripting language that drives the processing of parsing
8
The tool interprets a scripting language that drives the processing of
8
and source code generation in a quite familiar syntax for developers. It
9
parsing and source code generation in a quite familiar syntax for
9
insists on adapting the syntax of the language to the particularities of tasks
10
developers. It insists on adapting the syntax of the language to the
10
to resolve (parse, code generation, procedural) and on offering powerful
11
particularities of tasks to resolve (parse, code generation, procedural)
11
functionalities to do intensive source code generation.
12
and on offering powerful functionalities to do intensive source code
13
generation.
12
14
13
WWW: http://codeworker.free.fr/
15
WWW: http://codeworker.free.fr/

Return to bug 176575