ports/science/simlib/Makefile
Muhammad Moinur Rahman bbab7f59e9 */*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
2023-12-31 01:37:05 +01:00

50 lines
1.6 KiB
Makefile

PORTNAME= simlib
DISTVERSION= 3.06
DISTVERSIONSUFFIX= -20181003
CATEGORIES= science
MASTER_SITES= http://www.fit.vutbr.cz/~peringer/SIMLIB/source/
MAINTAINER= ports@FreeBSD.org
COMMENT= SIMulation LIBrary for C++ programming language
WWW= https://www.fit.vutbr.cz/~peringer/SIMLIB/index.html.en
LICENSE= LGPL20
BROKEN_riscv64= fails to compile: process.cc:53:3: module process.cc is not ported to this processor architecture
NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 powerpc powerpc64
NOT_FOR_ARCHS_REASON= contains not working ${ARCH}-dependent assembly code
USES= gmake
USE_CXXSTD= c++14
USE_LDCONFIG= yes
CXXFLAGS+= -fPIC
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD
# 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
post-patch:
@${REINPLACE_CMD} -e 's|make|gmake|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#g' \
${WRKSRC}/src/Makefile.generic
@${REINPLACE_CMD} -e 's#g++#${CXX}#g' \
${WRKSRC}/src/Makefile.FreeBSD-i386 \
${WRKSRC}/examples/Makefile.FreeBSD-i386 \
${WRKSRC}/tests/Makefile.FreeBSD-i386
@${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
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsimlib.so
.include <bsd.port.mk>