xlife: fix breakage during install, reported by ajacoutot@.

Switch to using a do-install target in our Makefile like the FreeBSD
port is doing, instead of attempting to appease upstream one with an
endless supply of MAKE_FLAGS and FAKE_FLAGS.
This commit is contained in:
fcambus 2022-07-29 14:22:51 +00:00
parent 46e2aac63b
commit f4ec907191
2 changed files with 8 additions and 7 deletions

View File

@ -17,17 +17,18 @@ WRKDIST= ${WRKDIR}/xlife-6.7
USE_GMAKE= Yes
MAKE_FLAGS=XLIFEPATSDIR=${PREFIX}/share/xlife \
BINDIR=${PREFIX}/bin \
MANDIR=${PREFIX}/man/man6
FAKE_FLAGS=XLIFEPATSDIR=${TRUEPREFIX}/share/xlife
NO_TEST= Yes
post-build:
cd ${WRKSRC} && ${MAKE} CFLAGS="${CFLAGS}"
post-install:
do-install:
.for f in gen-multirules table2r xlife
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
cd ${PREFIX}/bin && ln -sf xlife lifeconv
${INSTALL_DATA} ${WRKSRC}/xlife.man ${PREFIX}/man/man6/xlife.6
cd ${PREFIX}/man/man6 && ln -sf xlife.6 lifeconv.6
${INSTALL_DATA_DIR} ${PREFIX}/share/xlife
cp -r ${WRKDIST}/patterns ${PREFIX}/share/xlife
#pre-install:

View File

@ -1,5 +1,5 @@
@bin bin/gen-multirules
@bin bin/lifeconv
bin/lifeconv
bin/table2r
@bin bin/xlife
@man man/man6/lifeconv.6