- Override install target to make it behave sanely

- Add stage support
This commit is contained in:
Erwin Lansing 2013-09-28 15:14:32 +00:00
parent 61ef99ec4d
commit 3c8b3e267a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328577
2 changed files with 13 additions and 4 deletions

View file

@ -16,12 +16,18 @@ COMMENT= Gopher client for access to a distributed document service
GNU_CONFIGURE= yes
USE_GMAKE= yes
MAN1= gopher.1 gophfilt.1
MAN5= gopherrc.5
NO_STAGE= yes
pre-patch:
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
's,<malloc.h>,<stdlib.h>,'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gopher/gopher ${STAGEDIR}${PREFIX}/bin/gopher
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/gopher
${INSTALL_DATA} ${WRKSRC}/gopher/gopher.rc ${STAGEDIR}${PREFIX}/etc/gopher/gopher.rc
${INSTALL_DATA} ${WRKSRC}/gopher/gopherremote.rc ${STAGEDIR}${PREFIX}/etc/gopher/gopherremote.rc
${INSTALL_DATA} ${WRKSRC}/gopher/gopher.hlp ${STAGEDIR}${PREFIX}/etc/gopher/gopher.hlp
${INSTALL_PROGRAM} ${WRKSRC}/gophfilt/gophfilt ${STAGEDIR}${PREFIX}/bin/gophfilt
${INSTALL_MAN} ${WRKSRC}/doc/gopher.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/gophfilt.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/gopherrc.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
.include <bsd.port.mk>

View file

@ -4,3 +4,6 @@ etc/gopher/gopher.rc
etc/gopher/gopherremote.rc
etc/gopher/gopher.hlp
@dirrm etc/gopher
man/man1/gopher.1.gz
man/man1/gophfilt.1.gz
man/man5/gopherrc.5.gz