freebsd-ports/devel/codeworker/Makefile
2004-02-23 06:45:09 +00:00

43 lines
947 B
Makefile

# ex:ts=8
# Ports collection makefile for: CodeWorker
# Date created: Dec 31, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= codeworker
PORTVERSION= 3.3
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://codeworker.free.fr/downloads/
DISTNAME= CodeWorker_SRC${PORTVERSION:S/./_/}
MAINTAINER= ports@FreeBSD.org
COMMENT= A parsing tool and a source code generator
PLIST_FILES= bin/codeworker
USE_ZIP= yes
USE_REINPLACE= yes
NO_WRKSUBDIR= yes
LDFLAGS+= -lcompat
USE_GMAKE= yes
MAKE_ENV= LDFLAGS="${LDFLAGS}"
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
BROKEN= "Does not compile on !i386"
.endif
post-patch:
@${REINPLACE_CMD} -e "s|^CXXFLAGS|#CXXFLAGS|g" \
-e s"|LFLAGS|LDFLAGS|" -e "s|^LDFLAGS|#LDFLAGS|" \
-e "s|CC|CXX|g" -e "s|^CXX|#CXX|g" ${WRKSRC}/Makefile
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s|
||"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/codeworker ${PREFIX}/bin
.include <bsd.port.post.mk>