- Pass maintainership to submitter

- Remove GUI Option (default install GUI)
- Add license (GPLv2)
- USES desktop-file-utils tk
- Add pkg-message
- Change REINPLACE_CMD
- Simplify Makefile
- Change pkg-descr

Approved by:	pawel / wg (mentors, implicit
This commit is contained in:
Rusmir Dusko 2013-11-21 00:34:47 +00:00
parent e55eb71445
commit 9dacf5b80c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334465
4 changed files with 38 additions and 38 deletions

View file

@ -6,42 +6,31 @@ PORTVERSION= 1.5
CATEGORIES= games
MASTER_SITES= SAVANNAH
MAINTAINER= ports@FreeBSD.org
MAINTAINER= nemysis@FreeBSD.org
COMMENT= African board game
OPTIONS_DEFINE= GUI DOCS
OPTIONS_DEFAULT= GUI
OPTIONS_SUB= yes
GUI_DESC= Installs Tcl/Tk GUI
LICENSE= GPLv2
GUI_RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84
GNU_CONFIGURE= yes
USES= desktop-file-utils tk
.include <bsd.port.options.mk>
SUB_FILES= pkg-message
PORTDOCS= AUTHORS ChangeLog NEWS README THANKS
OPTIONS_DEFINE= DOC
post-patch:
@${REINPLACE_CMD} -e '/bin\/bash/d' ${WRKSRC}/src/xawale.tcl
@${ECHO_CMD} "#!/bin/sh" > ${WRKSRC}/src/x${PORTNAME}
@${ECHO_CMD} "${DATADIR}/xawale.tcl" >> ${WRKSRC}/src/x${PORTNAME}
@${REINPLACE_CMD} -e 's|wish|wish8.4|' ${WRKSRC}/src/xawale.tcl
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh| ; \
s|exec wish|exec ${WISH}|' \
${WRKSRC}/src/xawale.tcl
@${REINPLACE_CMD} -e 's|share/man|man|' \
${WRKSRC}/man/Makefile.in
do-build:
(cd ${WRKSRC}/src && ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
@${MKDIR} ${STAGEDIR}${DATADIR}
.for f in README *.bmp *.gif *.ico *.png
${INSTALL_DATA} ${WRKSRC}/src/${f} ${STAGEDIR}${DATADIR}
.endfor
.if ${PORT_OPTIONS:MGUI}
${INSTALL_SCRIPT} ${WRKSRC}/src/x${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/x${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
${INSTALL_SCRIPT} ${WRKSRC}/src/xawale.tcl ${STAGEDIR}${DATADIR}
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in AUTHORS ChangeLog NEWS README THANKS
cd ${WRKSRC} && ${INSTALL_DATA} ${f} ${STAGEDIR}${DOCSDIR}
.endfor
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -0,0 +1,16 @@
===============================================================================
Free Awale has been installed.
To start Free Awale please use
for CLI
xawale
for GUI
%%PREFIX%%/share/applications/awale.desktop
===============================================================================

View file

@ -1,7 +1,7 @@
Awale or Oware is a game of great antiquity, and has been played around
the world in various forms for millenia. Currently it is the official
the world in various forms for millenia. Currently it is the official
board game of Africa.
Wikipedia: http://en.wikipedia.org/wiki/Oware
Wikipedia Oware
WWW: http://www.nongnu.org/awale/

View file

@ -1,7 +1,8 @@
bin/awale
bin/xawale
man/man6/awale.6.gz
%%GUI%%man/man6/xawale.6.gz
%%GUI%%bin/xawale
man/man6/xawale.6.gz
share/applications/awale.desktop
%%DATADIR%%/AwaleBanner.bmp
%%DATADIR%%/README
%%DATADIR%%/Trou00.gif
@ -27,11 +28,5 @@ man/man6/awale.6.gz
%%DATADIR%%/fr.gif
%%DATADIR%%/sp.gif
%%DATADIR%%/uk.gif
%%GUI%%%%DATADIR%%/xawale.tcl
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/THANKS
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%DATADIR%%/xawale.tcl
@dirrm %%DATADIR%%