aboutsummaryrefslogtreecommitdiffstats
path: root/games/sol/Makefile
blob: c360ffeeec8714ca9ac65a764eede55650a560f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Created by: Andrey Zakhvatov
# $FreeBSD$

PORTNAME=   sol
PORTVERSION=    1.0.7
PORTREVISION=   5
CATEGORIES= games
MASTER_SITES=   http://shh.thathost.com/pub-unix/files/

MAINTAINER= edwin@mavetju.org
COMMENT=    Solitaire card game for X Window System

LIB_DEPENDS=    libshhopt.so.1:${PORTSDIR}/devel/libshhopt \
        libshhmsg.so.1:${PORTSDIR}/devel/libshhmsg \
        libxalloc.so.1:${PORTSDIR}/devel/libxalloc \
        libshhcards.so.1:${PORTSDIR}/games/libshhcards

CONFLICTS=  gnome-games-*

USES=       gmake
USE_XORG=   xpm x11 xaw

OPTIONS_DEFINE= DOCS

pre-build:
    cd ${WRKSRC} && ${MAKE_CMD} readme.var

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/sol ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/sol.6 ${STAGEDIR}${PREFIX}/man/man6
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/sol
    ${INSTALL_DATA} ${WRKSRC}/sol.score ${STAGEDIR}${PREFIX}/share/sol
    @${CHOWN} root:games ${STAGEDIR}${PREFIX}/bin/sol
    @${CHOWN} root:games ${STAGEDIR}${PREFIX}/share/sol/sol.score
    @${CHMOD} 2755 ${STAGEDIR}${PREFIX}/bin/sol
    @${CHMOD} 770 ${STAGEDIR}${PREFIX}/share/sol
    @${CHMOD} 660 ${STAGEDIR}${PREFIX}/share/sol/sol.score
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/sol
    ${INSTALL_DATA} ${WRKSRC}/CREDITS ${STAGEDIR}${PREFIX}/share/doc/sol
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${PREFIX}/share/doc/sol

.include <bsd.port.mk>