mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
f899c758a6
everything at once. Sometime, rename post-install into a options helper target. I did not fix ports that were such a mess that I could not figure out what they really wanted to do. I also did not change ports that had some version of an auto-plist code in post-install, for the same reason. With hat: portmgr Sponsored by: Absolight
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# Created by: glewis
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dgd-kernel
|
|
PORTVERSION= 1.3.4
|
|
PORTREVISION= 2
|
|
CATEGORIES= net games
|
|
MASTER_SITES= http://ftp.dworkin.nl/kernellib/ \
|
|
http://ftp.dworkin.nl/kernellib/patches/
|
|
DISTNAME= kernellib-${PORTVERSION}
|
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
|
COMMENT= Kernel mudlib, for use with DGD
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/dgd:net/dgd
|
|
|
|
DIST_SUBDIR= dgd
|
|
WRKSRC= ${WRKDIR}
|
|
NO_BUILD= yes
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete
|
|
|
|
do-configure:
|
|
${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:" \
|
|
${WRKSRC}/kernellib/doc/kernel/kernel.dgd
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
|
|
@${INSTALL_DATA} ${WRKSRC}/kernellib/doc/kernel/kernel.dgd \
|
|
${STAGEDIR}${PREFIX}/etc/${PORTNAME}/
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/kernel
|
|
.for DIR in include kernel usr
|
|
@cd ${WRKSRC}/kernellib && ${COPYTREE_SHARE} ${DIR} ${STAGEDIR}${DATADIR}/kernel
|
|
.endfor
|
|
@# Install an RC script for dgd-kernel
|
|
@${CAT} ${FILESDIR}/dgd-kernel.sh | ${SED} -e "s:%%PREFIX%%:${PREFIX}:" \
|
|
-e "s:%%DATADIR%%:${DATADIR}:" > \
|
|
${STAGEDIR}${PREFIX}/etc/rc.d/dgd-kernel.sh.sample
|
|
@${CHMOD} a+x ${STAGEDIR}${PREFIX}/etc/rc.d/dgd-kernel.sh.sample
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@cd ${WRKSRC}/kernellib && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR}
|
|
@# Need a temporary directory for certain files
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/tmp
|
|
|
|
.include <bsd.port.mk>
|