Hi,
I noticed that OpenRocket (https://openrocket.info/) is currently not available in the FreeBSD ports tree.
OpenRocket is an actively supported open source Java application for rocketry model design and flight simulation.
I have created a local port (JAR-based) that installs the official OpenRocket release and provides a startup script. It compiles and runs correctly on my FreeBSD system with OpenJDK 17.
Before preparing an official PR request for the ports, I would like to ask:
1) Is there any work on packaging OpenRocket?
2) Would a JAR-based port be acceptable, or is it better to use a full Gradle build? Should I create two:
/usr /ports/cad/openrocket - jar application
/usr /ports/cad/openrocket-devel - build with Gradle
3) Is cad/openrocket the correct category?
Makefile
pkg-descr
files/openrocket
I noticed that OpenRocket (https://openrocket.info/) is currently not available in the FreeBSD ports tree.
OpenRocket is an actively supported open source Java application for rocketry model design and flight simulation.
I have created a local port (JAR-based) that installs the official OpenRocket release and provides a startup script. It compiles and runs correctly on my FreeBSD system with OpenJDK 17.
Before preparing an official PR request for the ports, I would like to ask:
1) Is there any work on packaging OpenRocket?
2) Would a JAR-based port be acceptable, or is it better to use a full Gradle build? Should I create two:
/usr /ports/cad/openrocket - jar application
/usr /ports/cad/openrocket-devel - build with Gradle
3) Is cad/openrocket the correct category?
Makefile
Code:
PORTNAME= openrocket
DISTVERSION= 24.12
CATEGORIES= cad java
MASTER_SITES= https://downloads.sourceforge.net/project/openrocket/openrocket/${DISTVERSION}/
DISTNAME= OpenRocket-${DISTVERSION}
EXTRACT_SUFX= .jar
MAINTAINER= ports@FreeBSD.org
COMMENT= Model rocketry aerodynamics and trajectory simulation
WWW= https://openrocket.info/
LICENSE= GPLv3
USES= java
USE_JAVA= yes
JAVA_VERSION= 17+
NO_BUILD= yes
NO_WRKSUBDIR= yes
NO_ARCH= yes
SUB_FILES= openrocket
PLIST_FILES= bin/openrocket \
${JAVASHAREDIR}/openrocket/OpenRocket.jar
do-extract:
@${MKDIR} ${WRKSRC}
@${CP} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${WRKSRC}/OpenRocket.jar
do-install:
@${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/openrocket
${INSTALL_DATA} ${WRKSRC}/OpenRocket.jar \
${STAGEDIR}${JAVASHAREDIR}/openrocket/OpenRocket.jar
${INSTALL_SCRIPT} ${WRKDIR}/openrocket \
${STAGEDIR}${PREFIX}/bin/openrocket
.include <bsd.port.mk>
pkg-descr
Code:
OpenRocket is an open source model rocket simulator.
It allows you to design rockets and run flight simulations.
files/openrocket
Code:
#!/bin/sh
exec /usr/local/openjdk17/bin/java -jar %%JAVASHAREDIR%%/openrocket/OpenRocket.jar "$@"