2018-12-05 08:47:42 +01:00
|
|
|
PORTNAME= lrslib
|
2023-08-15 04:59:10 +02:00
|
|
|
PORTVERSION= 7.2
|
|
|
|
PORTEPOCH= 1
|
2018-12-05 08:47:42 +01:00
|
|
|
CATEGORIES= math
|
2020-09-14 07:47:50 +02:00
|
|
|
MASTER_SITES= http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/
|
2023-08-15 04:59:10 +02:00
|
|
|
DISTNAME= ${PORTNAME}-0${PORTVERSION:S/.//}
|
2018-12-05 08:47:42 +01:00
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= Reverse search algorithm for vertex enumeration/convex hull problems
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= http://cgm.cs.mcgill.ca/~avis/C/lrs.html
|
2018-12-05 08:47:42 +01:00
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2022-07-20 20:48:51 +02:00
|
|
|
BROKEN_armv6= error: __int128 is not supported on this target
|
|
|
|
BROKEN_armv7= error: __int128 is not supported on this target
|
2020-09-22 17:48:43 +02:00
|
|
|
BROKEN_i386= error: __int128 is not supported on this target
|
2021-06-16 11:00:10 +02:00
|
|
|
BROKEN_powerpc= error: __int128 is not supported on this target
|
2020-09-22 17:48:43 +02:00
|
|
|
|
2020-09-16 09:27:55 +02:00
|
|
|
LIB_DEPENDS= libgmp.so:math/gmp
|
2018-12-05 08:47:42 +01:00
|
|
|
|
math/lrslib: fix build on GCC architectures
Use C11 compiler:
lrslong.h:191: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lrs_mp'
lrslong.h:192: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
lrslong.h:193: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
lrslong.h:194: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
lrslong.h:218: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lrs_alloc_mp_t'
lrslong.h:219: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lrs_alloc_mp_vector'
2020-09-23 17:49:10 +02:00
|
|
|
USES= compiler:c11 gmake libtool localbase:ldflags
|
2018-12-05 08:47:42 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2020-09-14 07:47:50 +02:00
|
|
|
MAKEFILE= makefile
|
|
|
|
|
|
|
|
ALL_TARGET= all-shared
|
|
|
|
|
|
|
|
MAKE_ARGS= CFLAGS="${CFLAGS}" INCLUDEDIR=${LOCALBASE}/include LIBDIR=${LOCALBASE}/lib
|
|
|
|
|
2018-12-05 08:47:42 +01:00
|
|
|
LDFLAGS+= -lthr
|
|
|
|
|
2023-08-15 04:59:10 +02:00
|
|
|
BINARY_ALIAS= gcc=${CC}
|
|
|
|
|
2020-09-14 07:47:50 +02:00
|
|
|
post-install:
|
|
|
|
@cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} bin/* lib/*.so
|
2018-12-05 08:47:42 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|