# $NetBSD: Makefile,v 1.9 2010/08/07 14:23:23 jym Exp $ DISTNAME= coccinelle-0.2.3 CATEGORIES= devel MASTER_SITES= http://coccinelle.lip6.fr/distrib/ EXTRACT_SUFX= .tgz MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://coccinelle.lip6.fr/ COMMENT= Tool for writing and applying semantic patches LICENSE= gnu-gpl-v2 BUILD_DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib DEPENDS+= menhir-[0-9]*:../../devel/menhir PKG_DESTDIR_SUPPORT= user-destdir MAKE_JOBS_SAFE= no HAS_CONFIGURE= yes USE_TOOLS= gmake perl REPLACE_PERL= configure BUILD_TARGET= all all.opt CONFIGURE_ARGS+= --prefix=${PREFIX} CONFIG_SHELL= ${PERL5} PYTHON_VERSIONS_ACCEPTED= 25 SUBST_CLASSES+= python SUBST_FILES.python+= pycaml/Makefile SUBST_SED.python+= -e "s, python , ${PYTHONBIN} ,g" SUBST_STAGE.python= post-configure SUBST_MESSAGE.python= Fixing python executable name. SUBST_CLASSES+= man SUBST_FILES.man+= docs/spatch.1 SUBST_SED.man+= -e "s,/usr/local,${PREFIX},g" SUBST_STAGE.man= post-configure SUBST_MESSAGE.man= Fixing path to examples in man page. TEST_TARGET= test .include "../../mk/dlopen.buildlink3.mk" BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:M*} .include "../../lang/ocaml/buildlink3.mk" .include "../../lang/python/application.mk" .include "../../mk/bsd.pkg.mk"