# $OpenBSD: Makefile,v 1.8 2017/04/10 11:45:25 sthen Exp $

COMMENT =		universal parsing tool & source code generator

V =			4.5.4
PKGNAME =		codeworker-${V}
REVISION =		0

CATEGORIES =		devel

HOMEPAGE =		http://codeworker.free.fr/

MAINTAINER =		Vincent Auclair <auclair.vincent@gmail.com>

# LGPL
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB =		c m ${LIBCXX}

MASTER_SITES =		${MASTER_SITE_GOOGLECODE:=codeworker/} \
			http://codeworker.free.fr/downloads/
DISTNAME =		CodeWorker_SRC${V:S/./_/g}
EXTRACT_SUFX =		.zip

MAKE_FLAGS =		CXXFLAGS='${CXXFLAGS}' CXX='${CXX}'

USE_GMAKE =		Yes

NO_TEST =		Yes

WRKDIST=${WRKDIR}/CodeWorker${V:S/./_/g}

do-install:
	${INSTALL_PROGRAM} ${WRKDIST}/codeworker ${PREFIX}/bin
	${INSTALL_DATA} ${WRKDIST}/libcodeworker.a ${PREFIX}/lib
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/codeworker
	${INSTALL_DATA} ${WRKSRC}/Documentation/* ${PREFIX}/share/examples/codeworker

.include <bsd.port.mk>
