git: ccceb7dfeb5e - main - games/opengfx: Restore previous do-install target

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Fri, 10 Jun 2022 21:06:24 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ccceb7dfeb5e5232d51f54c05150560b9b94e26d

commit ccceb7dfeb5e5232d51f54c05150560b9b94e26d
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2022-06-10 21:00:35 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-06-10 21:04:01 +0000

    games/opengfx: Restore previous do-install target
    
    In 7a66a72bd431 a more verbose version of the do-install target was introduced.
    Restore the previous, more compact one.
    
    Reported by:    danfe@
    Fixes:  7a66a72bd431
---
 games/opengfx/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/games/opengfx/Makefile b/games/opengfx/Makefile
index 5807ddc33fc4..b0cf6a4d9735 100644
--- a/games/opengfx/Makefile
+++ b/games/opengfx/Makefile
@@ -16,14 +16,14 @@ LICENSE_FILE=	${WRKSRC}/license.txt
 NO_ARCH=	yes
 NO_BUILD=	yes
 
+DATADIR=	${PREFIX}/share/openttd/baseset/${PORTNAME}
+
 post-extract:
 	@cd ${WRKDIR} && tar -xf ${PORTNAME}-${PORTVERSION}.tar
 
 do-install:
-	@${MKDIR} \
-		${STAGEDIR}${PREFIX}/share/openttd/baseset/${PORTNAME}
-	${INSTALL_DATA} \
-		${WRKSRC}/* \
-		${STAGEDIR}${PREFIX}/share/openttd/baseset/${PORTNAME}
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/* ${STAGEDIR}${DATADIR}
+
 
 .include <bsd.port.mk>