aboutsummaryrefslogtreecommitdiffstats
path: root/games/chroma/Makefile
blob: 0b60d418591092b9b93b8010e06b7f74c3d1cec1 (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
43
44
45
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=   chroma
PORTVERSION=    1.08
PORTREVISION=   5
CATEGORIES= games
MASTER_SITES=   http://www.level7.org.uk/chroma/download/ \
        http://mirror.amdmi3.ru/distfiles/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Abstract puzzle game

USE_BZIP2=  yes
USES=       gettext
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  LIBS="-lintl"
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

PORTDOCS=   *
PORTDATA=   *

OPTIONS_DEFINE= DOCS
OPTIONS_MULTI=  INTERFACES
OPTIONS_MULTI_INTERFACES=SDL CURSES
OPTIONS_DEFAULT=SDL CURSES

SDL_DESC=   Enable SDL interface
CURSES_DESC=    Enable curses interface

OPTIONS_SUB=        yes
CURSES_USES=        ncurses
CURSES_CONFIGURE_ENABLE=curses
CURSES_PLIST_FILES= bin/${PORTNAME}-curses
SDL_CONFIGURE_ENABLE=   sdl
SDL_LIB_DEPENDS=    libfreetype.so:${PORTSDIR}/print/freetype2
SDL_USE=        SDL=sdl,image
SDL_PLIST_FILES=    bin/${PORTNAME}

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>