1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/math/libsemigroups/Makefile

46 lines
1.0 KiB
Makefile

# Created by: thierry@pompo.net
# $FreeBSD$
PORTNAME= libsemigroups
PORTVERSION= 1.2.1
DISTVERSIONPREFIX= v
PORTREVISION= 2
CATEGORIES= math
MAINTAINER= thierry@FreeBSD.org
COMMENT= C++ library for semigroups and monoids
LICENSE= GPLv3
BUILD_DEPENDS= HPCombi>0:math/hpcombi
LIB_DEPENDS= libfmt.so:devel/libfmt
USE_GITHUB= yes
USES= autoreconf compiler:c++11-lang libtool pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-external-fmt=yes
USE_LDCONFIG= yes
TEST_TARGET= check
.include <bsd.port.pre.mk>
.if ${ARCH} != amd64
CONFIGURE_ARGS+= --disable-hpcombi
.endif
pre-configure:
.if ${ARCH} == amd64
${REINPLACE_CMD} -e 's|$$srcdir/extern/HPCombi|${LOCALBASE}/share/HPCombi|' \
${WRKSRC}/m4/ax_check_hpcombi.m4
${REINPLACE_CMD} -e 's|extern/HPCombi/include|${LOCALBASE}/include/HPCombi|' \
${WRKSRC}/Makefile.am
${REINPLACE_CMD} -e 's|HPCombi/include|HPCombi|' \
${WRKSRC}/include/libsemigroups/hpcombi.hpp
.endif
${REINPLACE_CMD} -e 's|fmtinclude_HEADERS|#fmtinclude_HEADERS|' \
${WRKSRC}/Makefile.am
.include <bsd.port.post.mk>