mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
c609fd4281
- Add stage support - Add DOCS option - Use DOCSDIR and DATADIR in pkg-plist
40 lines
967 B
Makefile
40 lines
967 B
Makefile
# Created by: Andrey Zakhvatov
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= miscom
|
|
PORTVERSION= 1.0
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
MASTER_SITE_SUBDIR= games/arcade
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Atari "Missile Command" clone
|
|
|
|
LICENSE= GPLv2
|
|
|
|
ALL_TARGET=
|
|
|
|
MAKE_ARGS= CC="${CC}" DATADIR="${DATADIR}" \
|
|
CFLAGS="${CFLAGS}"
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "i386"
|
|
CFLAGS+= -DSOUNDSDIR='\"$(DATADIR)\"' -DSOUND_SUPPORT -DMORE_SOUNDBUF
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/miscom ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/miscom.6 ${STAGEDIR}${PREFIX}/man/man6
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/miscom
|
|
${INSTALL_DATA} ${WRKSRC}/sounds/* ${STAGEDIR}${PREFIX}/share/miscom
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/miscom
|
|
.for file in COPYING ChangeLog README TODO
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/share/doc/miscom
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|