openbsd-ports/devel/coccinelle/Makefile
sthen 7a8604e95f - Coccinelle native-code builds require dynlib support so only attempt
to use this where dynlib is available

- on native-code arch, only build the native version and install this
to be used by default - it's about 5x faster
2011-05-15 10:17:38 +00:00

61 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2011/05/15 10:17:38 sthen Exp $
SHARED_ONLY = Yes
COMMENT = program matching and transformation engine
# if updating, check for any additional use of diff/grep which
# may need to be switched to gdiff/ggrep
DISTNAME = coccinelle-1.0.0-rc1
PKGNAME = ${DISTNAME:S/-rc/rc/}
REVISION = 0
EXTRACT_SUFX = .tgz
CATEGORIES = devel
HOMEPAGE = http://coccinelle.lip6.fr/
# GPLv2 only
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += c m pthread util ${MODPY_WANTLIB}
MASTER_SITES = ${HOMEPAGE}distrib/
MODULES = lang/ocaml \
lang/python
BUILD_DEPENDS = ${RUN_DEPENDS}
REGRESS_DEPENDS = ${FULLPKGPATH}
RUN_DEPENDS = sysutils/findlib \
sysutils/ggrep \
textproc/gdiff
# asks questions at the end if it does better than expected
REGRESS_IS_INTERACTIVE = Yes
USE_GMAKE = Yes
CONFIGURE_STYLE = simple
CONFIGURE_ENV = MAKE_PROGRAM=${MAKE_PROGRAM}
REGRESS_TARGET = test
SUBST_VARS += MAKE_PROGRAM
pre-configure:
${SUBST_CMD} ${WRKSRC}/configure ${WRKSRC}/pycaml/Makefile
perl -pi -e s,/usr/local,${TRUEPREFIX},g ${WRKSRC}/scripts/spatch*
# can't use MODOCAML_NATIVE because it also needs dynlink
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
ALL_TARGET = all.opt
PKG_ARGS += -DOCAMLOPT=.opt
.else
WANTLIB += curses
PKG_ARGS += -DOCAMLOPT=
.endif
.include <bsd.port.mk>