2013-09-21 00:48:30 +02:00
|
|
|
# Created by: Pav Lucistnik <pav@FreeBSD.org>
|
2004-11-27 22:38:03 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= simlib
|
2018-10-19 07:38:42 +02:00
|
|
|
DISTVERSION= 3.06
|
|
|
|
DISTVERSIONSUFFIX= -20181003
|
2004-11-27 22:38:03 +01:00
|
|
|
CATEGORIES= science
|
|
|
|
MASTER_SITES= http://www.fit.vutbr.cz/~peringer/SIMLIB/source/
|
|
|
|
|
2013-09-21 13:02:36 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-11-27 22:38:03 +01:00
|
|
|
COMMENT= SIMulation LIBrary for C++ programming language
|
|
|
|
|
2018-10-19 07:38:42 +02:00
|
|
|
LICENSE= LGPL20
|
|
|
|
|
2013-09-21 13:02:36 +02:00
|
|
|
USES= gmake
|
2007-01-17 08:27:25 +01:00
|
|
|
USE_LDCONFIG= yes
|
2018-10-19 07:38:42 +02:00
|
|
|
|
2013-09-21 13:02:36 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2004-11-27 22:38:03 +01:00
|
|
|
|
2008-04-06 08:35:14 +02:00
|
|
|
CXXFLAGS+= -fPIC
|
|
|
|
|
2017-11-30 06:55:17 +01:00
|
|
|
NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 powerpc powerpc64 sparc64
|
2008-09-16 11:18:28 +02:00
|
|
|
NOT_FOR_ARCHS_REASON= contains not working ${ARCH}-dependent assembly code
|
|
|
|
|
2018-07-07 23:09:10 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2018-11-02 14:32:34 +01:00
|
|
|
.if ${OPSYS} == FreeBSD
|
2018-07-07 23:09:10 +02:00
|
|
|
# nm crashes during the build:
|
|
|
|
# Assertion failed: (ddata->output.size > 0), function cpp_demangle_read_sname, file /usr/src/contrib/elftoolchain/libelftc/libelftc_dem_gnu3.c, line 2137.
|
|
|
|
USE_BINUTILS= yes
|
|
|
|
BINARY_ALIAS= nm=${NM}
|
|
|
|
.endif
|
|
|
|
|
2008-04-06 08:35:14 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|make|gmake|g' ${WRKSRC}/Makefile
|
2009-07-06 16:56:42 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#g' \
|
|
|
|
${WRKSRC}/src/Makefile.generic
|
2013-09-21 13:02:36 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#g++#${CXX}#g' \
|
|
|
|
${WRKSRC}/src/Makefile.FreeBSD-i386 \
|
|
|
|
${WRKSRC}/examples/Makefile.FreeBSD-i386 \
|
|
|
|
${WRKSRC}/tests/Makefile.FreeBSD-i386
|
2008-04-06 08:35:14 +02:00
|
|
|
@${MV} ${WRKSRC}/src/Makefile.FreeBSD-i386 ${WRKSRC}/src/Makefile
|
|
|
|
@${MV} ${WRKSRC}/examples/Makefile.FreeBSD-i386 ${WRKSRC}/examples/Makefile
|
|
|
|
@${MV} ${WRKSRC}/tests/Makefile.FreeBSD-i386 ${WRKSRC}/tests/Makefile
|
2004-11-27 22:38:03 +01:00
|
|
|
|
2015-05-17 16:43:37 +02:00
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsimlib.so
|
|
|
|
|
2004-11-27 22:38:03 +01:00
|
|
|
.include <bsd.port.mk>
|