Update games/hexalate to version 1.1.6
[dports.git] / games / mancala / Makefile
1 # Created by: Jason Helfman <jgh@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       mancala
5 PORTVERSION=    1.0.3
6 CATEGORIES=     games
7 MASTER_SITES=   https://shh.thathost.com/pub-unix/files/
8
9 MAINTAINER=     jgh@FreeBSD.org
10 COMMENT=        Implementation of the simple board game called Mancala
11
12 LICENSE=        ART10
13
14 USES=   gmake
15
16 OPTIONS_DEFINE= DOCS X11
17 OPTIONS_DEFAULT=        X11
18
19 PORTDOCS=       *
20 PLIST_FILES=    bin/mancala
21 X11_LIB_DEPENDS=        libforms.so:x11-toolkits/xforms
22 X11_PLIST_FILES=        bin/xmancala
23 X11_ALL_TARGET= xmancala
24 ALL_TARGET=     mancala
25
26 post-patch:
27         @${REINPLACE_CMD} -e 's|gcc|${CC}|' \
28                 ${WRKSRC}/Makefile
29         @${REINPLACE_CMD} -e 's|^XINCDIR.*|XINCDIR = -I${LOCALBASE}/include|' \
30                 ${WRKSRC}/Makefile
31         @${REINPLACE_CMD} -e 's|^XLIBDIR.*|XLIBDIR = -L${LOCALBASE}/lib|' \
32                 ${WRKSRC}/Makefile
33
34 do-install-DOCS-on:
35         @${MKDIR} ${STAGEDIR}${DOCSDIR}
36 .for doc in ChangeLog INSTALL NEWS README RULES
37         ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
38 .endfor
39
40 do-install:
41         ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
42
43 do-install-X11-on:
44         ${INSTALL_SCRIPT} ${WRKSRC}/x${PORTNAME} ${STAGEDIR}${PREFIX}/bin/x${PORTNAME}
45
46 .include <bsd.port.mk>