aboutsummaryrefslogtreecommitdiffstats
path: root/games/pinball/Makefile
blob: b42201772d406fab83c4ac57dc772768fcbd199e (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
46
47
48
49
50
51
52
53
54
55
56
57
# New ports collection makefile for:    pinball
# Date created:     Tue 13 aug 2002 22:46:02 CEST
# Whom:         thierry@pompo.net
#
# $FreeBSD$
#

PORTNAME=   pinball
PORTVERSION=    0.1.2
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= thierry@pompo.net
COMMENT=    Emilia Pinball is a free pinball game

.if !defined(WITH_ALLEGRO)
BUILD_DEPENDS=  ${SDL_CONFIG}:${PORTSDIR}/devel/sdl12
LIB_DEPENDS=    SDL_image.10:${PORTSDIR}/graphics/sdl_image \
        SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
.else
BUILD_DEPENDS=  ${ALLEGRO_CONFIG}:${PORTSDIR}/devel/allegro
LIB_DEPENDS=    alleg.41:${PORTSDIR}/devel/allegro
.endif

USE_X_PREFIX=   yes
HAS_CONFIGURE=  yes
USE_GMAKE=  yes
USE_MESA=   yes
USE_LIBTOOL=    yes
INSTALLS_SHLIB= yes

CONFIGURE_ARGS= --prefix=${PREFIX}
.if defined(WITH_ALLEGRO)
CONFIGURE_ARGS+=    --with-allegro
.endif
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
        LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib" \
        SDL_CONFIG="${SDL_CONFIG}"
SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config
ALLEGRO_CONFIG= ${LOCALBASE}/bin/allegro-config

DOCS=       README

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for FILE in ${DOCS}
    @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
    @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
    @${ECHO_MSG}
    @${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g"
    @${ECHO_MSG}

.include <bsd.port.mk>