games/quadra: fix build on 15-CURRENT

Link with -lutil to get ftime() which was moved there with recently.
This is harmless on older FreeBSD.

While we are at it, define LICENSE.

Approved by:	portmgr (build fix blanket, infrastructure blanket)
MFH:		2024Q4
This commit is contained in:
Robert Clausecker 2024-10-26 22:37:37 +02:00
parent bec3162cc0
commit f7b1e63b41
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= quadra
PORTVERSION= 1.3.0
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= games
MASTER_SITES= http://kbrandt.sdf-eu.org/FreeBSD/distfiles/ \
ftp://ftp.bsdforen.de/pub/BSDForen/distfiles/ \
@ -10,6 +10,9 @@ MAINTAINER= kbrandt@sdf-eu.org
COMMENT= Tetris like game with multiplayer support
WWW= https://code.google.com/p/quadra/
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libpng.so:graphics/png
USES= autoreconf gmake localbase sdl tar:bzip2 xorg

View File

@ -5,7 +5,7 @@
# $Id: rules.mk 684 2008-12-20 07:14:57Z pphaneuf $
-source/quadra: LDLIBS+=$(SDL_LIBS) -lpng -lz
+EXT_LIBS := -lcompat # needed in FBSD for the ftime function
+EXT_LIBS := -lcompat -lutil # needed in FBSD for the ftime function
+
+source/quadra: LDLIBS+=$(SDL_LIBS) -lpng -lz $(EXT_LIBS)
source/quadra: $(QUADRA_OBJECTS) $(SDL_MAIN_OBJ) skelton/lib/libugs_s.a