freebsd-ports/net/dgd-lpmud/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

62 lines
1.9 KiB
Makefile

# Created by: adam
# $FreeBSD$
PORTNAME= dgd-lpmud
PORTVERSION= 2.4.5
PORTREVISION= 5
CATEGORIES= net games
MASTER_SITES= LOCAL/glewis/dgd \
http://ftp.dworkin.nl/dgd/lib/
DISTNAME= 2.4.5-for-1.4
MAINTAINER= glewis@FreeBSD.org
COMMENT= LPmud mudlib, for use with DGD
RUN_DEPENDS= ${LOCALBASE}/sbin/dgd:${PORTSDIR}/net/dgd
NO_PACKAGE= May not be used for monetary gain
NO_CDROM= ${NO_PACKAGE}
USES= tar:tgz
DIST_SUBDIR= dgd
WRKSRC= ${WRKDIR}/mud
OPTIONS_DEFINE= DOCS
post-extract:
@${CP} ${FILESDIR}/oconv.c ${WRKSRC}/
@${CP} ${FILESDIR}/Makefile.bin ${WRKSRC}/Makefile
post-patch:
(cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete)
do-configure:
${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:" ${WRKSRC}/lpmud.dgd
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hname ${STAGEDIR}${PREFIX}/bin/lpmud-hname
${INSTALL_PROGRAM} ${WRKSRC}/oconv ${STAGEDIR}${PREFIX}/bin/lpmud-oconv
${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/lpmud.dgd ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/
${MKDIR} ${STAGEDIR}${DATADIR}/lpmud
(cd ${WRKSRC}/2.4.5 && ${FIND} . \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DATADIR}/lpmud)
# Install an RC script for dgd-lpmud
${CAT} ${FILESDIR}/dgd-lpmud.sh | ${SED} -e "s:%%PREFIX%%:${PREFIX}:" \
-e "s:%%DATADIR%%:${DATADIR}:" > \
${STAGEDIR}${PREFIX}/etc/rc.d/dgd-lpmud.sh.sample
${CHMOD} a+x ${STAGEDIR}${PREFIX}/etc/rc.d/dgd-lpmud.sh.sample
${MV} ${STAGEDIR}${DATADIR}/lpmud/ACCESS.ALLOW \
${STAGEDIR}${DATADIR}/lpmud/ACCESS.ALLOW.example
${MV} ${STAGEDIR}${DATADIR}/lpmud/ACCESS.DENY \
${STAGEDIR}${DATADIR}/lpmud/ACCESS.DENY.example
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
post-install:
# Need a temporary directory for certain files
${MKDIR} ${STAGEDIR}${DATADIR}/tmp
# Link in the dgd docs
${LN} -sf ${PREFIX}/share/doc/dgd/kfun ${STAGEDIR}${DATADIR}/lpmud/doc
.include <bsd.port.mk>