ports/math/lrslib/Makefile
2025-01-15 22:35:10 -08:00

41 lines
1.0 KiB
Makefile

PORTNAME= lrslib
PORTVERSION= 7.3
PORTEPOCH= 1
CATEGORIES= math
MASTER_SITES= http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/
DISTNAME= ${PORTNAME}-0${PORTVERSION:S/.//}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Reverse search algorithm for vertex enumeration/convex hull problems
WWW= http://cgm.cs.mcgill.ca/~avis/C/lrs.html
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_armv6= error: __int128 is not supported on this target
BROKEN_armv7= error: __int128 is not supported on this target
BROKEN_i386= error: __int128 is not supported on this target
BROKEN_powerpc= error: __int128 is not supported on this target
LIB_DEPENDS= libgmp.so:math/gmp
USES= compiler:c11 gmake libtool localbase:ldflags
USE_LDCONFIG= yes
MAKEFILE= makefile
ALL_TARGET= all-shared
MAKE_ARGS= CFLAGS="${CFLAGS}" INCLUDEDIR=${LOCALBASE}/include LIBDIR=${LOCALBASE}/lib
CFLAGS+= -I${WRKSRC}/lrsarith-011
LDFLAGS+= -lthr
BINARY_ALIAS= gcc=${CC}
post-install:
@cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} bin/* lib/*.so
.include <bsd.port.mk>