astro/openuniverse: fix build on FreeBSD 15-CURRENT

ftime() is now provided by libutil; link -lutil in addition to -lcompat
to get it; this is harmless on older FreeBSD.

While we are at it, define LICENSE and fix USE_GL stage-qa warnings.

MFH:		2024Q4
This commit is contained in:
Robert Clausecker 2024-11-10 12:25:32 +01:00
parent ae833d4377
commit c3dde4ea97

View file

@ -1,6 +1,6 @@
PORTNAME= openuniverse
DISTVERSION= 1.0beta3
PORTREVISION= 14
PORTREVISION= 15
CATEGORIES= astro
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/1.0beta3
@ -8,9 +8,12 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= OpenGL Solar System simulator for X Window System
WWW= https://openuniverse.sourceforge.net/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gl gmake jpeg localbase xorg
USE_CXXSTD= c++14
USE_GL= glut
USE_GL= gl glu glut
USE_XORG= sm ice xmu xi xext x11
GNU_CONFIGURE= yes
@ -19,6 +22,6 @@ CONFIGURE_ARGS= --includedir="${LOCALBASE}/include" \
--libdir="${LOCALBASE}/lib" \
CPPFLAGS+= -I${LOCALBASE}/include/GL
LIBS+= -lm -lcompat
LIBS+= -lm -lcompat -lutil
.include <bsd.port.mk>