1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

games/starlanes: USES+=ncurses, respect LDFLAGS and MAKE_ENV

Also link to libncurse rather than libcurses
This commit is contained in:
John Marino 2016-01-31 17:44:06 +00:00
parent 4979584876
commit d1322bfb99
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=407656

View File

@ -9,6 +9,7 @@ MASTER_SITES= SUNSITE/games/strategy
MAINTAINER= ports@FreeBSD.org
COMMENT= Classic space-age stock trading game
USES= ncurses
PLIST_FILES= bin/starlanes man/man6/starlanes.6.gz
post-patch:
@ -17,8 +18,8 @@ post-patch:
s|(restrict|(m_restrict|' ${WRKSRC}/starlanes.c
do-build:
(cd ${WRKSRC} \
&& ${CC} ${CFLAGS} -o starlanes starlanes.c -lcurses)
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${CC} ${CFLAGS} -o starlanes starlanes.c ${LDFLAGS} -lncurses)
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} starlanes ${STAGEDIR}${PREFIX}/bin)