diff --git a/games/Makefile b/games/Makefile index a3bdc2577d6e..7d130ca37416 100644 --- a/games/Makefile +++ b/games/Makefile @@ -548,6 +548,7 @@ SUBDIR += mahjong SUBDIR += maitretarot SUBDIR += manaplus + SUBDIR += mancala SUBDIR += mangband SUBDIR += mari0 SUBDIR += marsnomercy diff --git a/games/mancala/Makefile b/games/mancala/Makefile new file mode 100644 index 000000000000..9e44167b950c --- /dev/null +++ b/games/mancala/Makefile @@ -0,0 +1,46 @@ +# Created by: Jason Helfman +# $FreeBSD$ + +PORTNAME= mancala +PORTVERSION= 1.0.3 +CATEGORIES= games +MASTER_SITES= https://shh.thathost.com/pub-unix/files/ + +MAINTAINER= jgh@FreeBSD.org +COMMENT= Implementation of the simple board game called Mancala + +LICENSE= ART10 + +USES= gmake + +OPTIONS_DEFINE= DOCS X11 +OPTIONS_DEFAULT= X11 + +PORTDOCS= * +PLIST_FILES= bin/mancala +X11_LIB_DEPENDS= libforms.so:x11-toolkits/xforms +X11_PLIST_FILES= bin/xmancala +X11_ALL_TARGET= xmancala +ALL_TARGET= mancala + +post-patch: + @${REINPLACE_CMD} -e 's|gcc|${CC}|' \ + ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|^XINCDIR.*|XINCDIR = -I${LOCALBASE}/include|' \ + ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|^XLIBDIR.*|XLIBDIR = -L${LOCALBASE}/lib|' \ + ${WRKSRC}/Makefile + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for doc in ChangeLog INSTALL NEWS README RULES + ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} +.endfor + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +do-install-X11-on: + ${INSTALL_SCRIPT} ${WRKSRC}/x${PORTNAME} ${STAGEDIR}${PREFIX}/bin/x${PORTNAME} + +.include diff --git a/games/mancala/distinfo b/games/mancala/distinfo new file mode 100644 index 000000000000..65130bb0d212 --- /dev/null +++ b/games/mancala/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1572042290 +SHA256 (mancala-1.0.3.tar.gz) = ca9fcacb687caea88a16d8ed0eacbbcc96235d591764c3ed92e9843a5f64eee8 +SIZE (mancala-1.0.3.tar.gz) = 16516 diff --git a/games/mancala/pkg-descr b/games/mancala/pkg-descr new file mode 100644 index 000000000000..33bc8b628c87 --- /dev/null +++ b/games/mancala/pkg-descr @@ -0,0 +1,5 @@ +Implementation of the simple board game called Mancala. Contains both a user +unfriendly character based interface, and a nice, user friendly X11 interface. +Be warned: If you just bother to read the rules, you may get hooked on this! + +WWW: https://shh.thathost.com/pub-unix