1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-03 11:12:13 +00:00
Rusmir Dusko e7af6a98e0 - Update to 2.10, announce message:
Added desktop file.

- Change PLIST_FILES, changed by me and Upstream
- Simplify installation handling, changed by me and Upstream
- Add REINPLACE, fix GNU/Linux paths
- Strip executable
- Remove Desktop entry file, use supplied desktop files
2014-12-14 23:25:53 +00:00

39 lines
889 B
Makefile

# Created by: Andrey Zakhvatov
# $FreeBSD$
PORTNAME= bs
PORTVERSION= 2.10
CATEGORIES= games
MASTER_SITES= http://www.catb.org/~esr/bs/
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Battleships solitaire game with a color interface
LICENSE= BSD3CLAUSE
USES= gmake
MAKE_ARGS= CC="${CC}"
ALL_TARGET= # empty
PLIST_FILES= bin/${PORTNAME} \
man/man6/${PORTNAME}.6.gz \
share/appdata/${PORTNAME}.xml \
${DESKTOPDIR}/${PORTNAME}.desktop \
share/icons/hicolor/32x32/apps/battleship.png
PORTDOCS= NEWS README
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin/|; \
s|/usr/share/|${PREFIX}/share/|; \
s|/usr/local/share/man|${PREFIX}/man/|' \
${WRKSRC}/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>