f78b1814a7
This is in line with what freedesktop.org calls Xaw3d. And this is in preparation to update libXaw3d to the freedesktop.org maintained version. The reason we are doing this is the Slackware version is unmaintained. PR: 285528 Exp-run by: antoine
38 lines
862 B
Makefile
38 lines
862 B
Makefile
PORTNAME= 3dc
|
|
PORTVERSION= 0.8.1
|
|
PORTREVISION= 4
|
|
CATEGORIES= games
|
|
MASTER_SITES= SUNSITE/games/strategy
|
|
DISTNAME= 3Dc-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= 3-Dimensional Chess for X Window System
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/../GPL
|
|
|
|
LIB_DEPENDS= libXaw3d.so:x11-toolkits/libXaw3d
|
|
|
|
USES= perl5 xorg
|
|
USE_PERL5= build
|
|
USE_XORG= x11 xaw xext xmu xpm xt
|
|
WRKSRC= ${WRKDIR}/3Dc/src
|
|
DOCSDIR= ${PREFIX}/share/doc/3Dc
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
.for file in init.c main.c piece.c stack.c xif.c
|
|
@${REINPLACE_CMD} -i '' -e 's|malloc.h|stdlib.h|' \
|
|
${WRKSRC}/${file}
|
|
.endfor
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/3Dc ${STAGEDIR}${PREFIX}/bin
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for file in 3Dc-rules.html ACKNOWLEDGEMENTS GPL README TODO
|
|
${INSTALL_DATA} ${WRKSRC}/../${file} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|