1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/math/libocas/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

51 lines
1.5 KiB
Makefile

PORTNAME= libocas
PORTVERSION= 0.96
CATEGORIES= math
MASTER_SITES= http://cmp.felk.cvut.cz/~xfrancv/ocas/ LOCAL/bf
DISTNAME= ${PORTNAME}_v${PORTVERSION:S/.//}
MAINTAINER= ports@FreeBSD.org
COMMENT= Efficient training of SVM classifiers
WWW= https://cmp.felk.cvut.cz/~xfrancv/ocas/html/index.html
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake zip
USE_LDCONFIG= yes
ALL_TARGET= clean libocas.so.1 svmocas msvmocas linclassif
CLIBS= -lm -lpthread
MAKE_ENV= CLIBS="${CLIBS}" MEXDETECTED=no
PLIST_FILES= bin/linclassif bin/msvmocas bin/svmocas lib/libocas.so \
lib/libocas.so.1
CFLAGS+= -fpic
post-patch:
@${REINPLACE_CMD} \
-e '\|:=|d' \
-e 's|libocas\.so|&.1|' \
-e '\|$$(CC) $$(CFLAGS) -o|{s|$$(CFLAGS)|& ${LDFLAGS}|;}' \
${WRKSRC}/Makefile
do-install:
.for p in linclassif msvmocas svmocas
${INSTALL_PROGRAM} ${WRKSRC}/${p} ${STAGEDIR}${PREFIX}/bin
.endfor
${INSTALL_LIB} ${WRKSRC}/libocas.so.1 ${STAGEDIR}${PREFIX}/lib
@${LN} -sf libocas.so.1 ${STAGEDIR}${PREFIX}/lib/libocas.so
do-test:
${WRKSRC}/msvmocas -c 10 -v 1 ${WRKSRC}/data/example4_train.light \
${WRKSRC}/data/msvmocas.model
${WRKSRC}/linclassif -e -v 1 -o ${WRKSRC}/data/example4_test.pred \
${WRKSRC}/data/example4_test.light ${WRKSRC}/data/msvmocas.model
${WRKSRC}/svmocas -c 10 -b 1 -v 1 ${WRKSRC}/data/riply_trn.light \
${WRKSRC}/data/svmocas.model
${WRKSRC}/linclassif -e -v 1 -o ${WRKSRC}/data/riply_tst.pred \
${WRKSRC}/data/riply_tst.light ${WRKSRC}/data/svmocas.model
.include <bsd.port.mk>