summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cad/opentimer/Makefile31
-rw-r--r--cad/opentimer/distinfo6
2 files changed, 26 insertions, 11 deletions
diff --git a/cad/opentimer/Makefile b/cad/opentimer/Makefile
index 53265f808609..4d04b1ad2e4f 100644
--- a/cad/opentimer/Makefile
+++ b/cad/opentimer/Makefile
@@ -1,5 +1,5 @@
PORTNAME= opentimer
-PORTVERSION= g20221116
+DISTVERSION= 2.1.0-20250707
CATEGORIES= cad
MAINTAINER= yuri@FreeBSD.org
@@ -9,17 +9,14 @@ WWW= https://github.com/OpenTimer/OpenTimer
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_i386= undefined reference to `__atomic_compare_exchange_8' #'`
-BROKEN_powerpc= undefined reference to `__atomic_compare_exchange_8' #'`
-
USES= cmake compiler:c++17-lang python:test shebangfix tcl
-SHEBANG_FILES= inttest/*.py
-
USE_GITHUB= yes
GH_ACCOUNT= OpenTimer
GH_PROJECT= OpenTimer
-GH_TAGNAME= a57d03b
+GH_TAGNAME= 8c76916c
+
+SHEBANG_FILES= inttest/*.py
TEST_TARGET= test
@@ -27,10 +24,28 @@ PLIST_FILES= bin/ot-shell \
bin/ot-tau15 \
bin/ot-tau18 \
bin/ot-utility
+PORTDOCS= *
+PORTEXAMPLES= *
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+OPTIONS_SUB= yes
do-install: # see https://github.com/OpenTimer/OpenTimer/issues/47
.for e in ot-shell ot-tau15 ot-tau18 ot-utility
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/${e} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/${e} \
+ ${STAGEDIR}${PREFIX}/bin
+.endfor
+
+post-install-DOCS-on:
+ cd ${WRKSRC} && \
+ ${COPYTREE_SHARE} "doc wiki" ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC}/example && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
+.for e in fcpc26 incremental optimizer simple sizer unit
+ ${STRIP_CMD} ${STAGEDIR}${EXAMPLESDIR}/${e}/${e}
.endfor
quick-test: # runs the script suggested in https://github.com/OpenTimer/OpenTimer
diff --git a/cad/opentimer/distinfo b/cad/opentimer/distinfo
index 5614aca281e7..311fe9afe10a 100644
--- a/cad/opentimer/distinfo
+++ b/cad/opentimer/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1690100071
-SHA256 (OpenTimer-OpenTimer-g20221116-a57d03b_GH0.tar.gz) = 98a33a9136fc1f19dcb8cf557760ee9f308a7189850887cb2e1f04ec955ca9c3
-SIZE (OpenTimer-OpenTimer-g20221116-a57d03b_GH0.tar.gz) = 120871156
+TIMESTAMP = 1759958678
+SHA256 (OpenTimer-OpenTimer-2.1.0-20250707-8c76916c_GH0.tar.gz) = b7cea2c9b8c4370e7b14e99d48f0705b00978148f6094a0d0e38d7bb12f45db9
+SIZE (OpenTimer-OpenTimer-2.1.0-20250707-8c76916c_GH0.tar.gz) = 121025992