blob: f09e45878d2075b6b31393bfd3a2923a8b2abfcb (
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
58
59
60
61
62
63
64
65
66
67
68
69
|
# New ports collection makefile for: frozen-bubble
# Date created: 2002-10-06
# Whom: Klaus Goger <klaus.goger@reflex.at>
#
# $FreeBSD$
#
PORTNAME= frozenbubble
PORTVERSION= 1.0.0
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://zarb.org/~gc/fb/
DISTNAME= frozen-bubble-${PORTVERSION}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= ports@FreeBSD.org
COMMENT= Throw colourful bubbles to build groups and destroy the groups
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/SDL_perl.pm:${PORTSDIR}/devel/p5-SDL
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/SDL_perl.pm:${PORTSDIR}/devel/p5-SDL
USE_SDL= mixer image sdl
USE_GMAKE= yes
USE_BZIP2= yes
MAKE_ENV= MKDIR="${MKDIR}" \
TAR="${TAR}"
WRKSRC= ${WRKDIR}/${DISTNAME}/c_stuff/
BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/
USE_PERL5= yes
PERL_CONFIGURE= yes
post-patch:
.for file in fb_c_stuff.xs Makefile.PL
@${REINPLACE_CMD} -e 's|SDL/|SDL11/|g' ${WRKSRC}/${file}
.endfor
@${REINPLACE_CMD} -e 's|sdl-config|\${SDL_CONFIG}|g' ${WRKSRC}/Makefile.PL
@${RM} ${WRKSRC}/lib/FBLE.pm.orig
do-install:
cd ${WRKSRC}; ${GMAKE} install
@${INSTALL_SCRIPT} ${BUILD_WRKSRC}/frozen-bubble ${PREFIX}/bin/frozen-bubble.pl
@${MKDIR} ${PREFIX}/share/frozen-bubble/
@${MKDIR} ${PREFIX}/share/frozen-bubble/data
@${MKDIR} ${PREFIX}/share/frozen-bubble/snd
@${MKDIR} ${PREFIX}/share/frozen-bubble/gfx
@${MKDIR} ${PREFIX}/share/frozen-bubble/gfx/balls
@${MKDIR} ${PREFIX}/share/frozen-bubble/gfx/pinguins
@${MKDIR} ${PREFIX}/share/frozen-bubble/gfx/shoot
@${MKDIR} ${PREFIX}/share/frozen-bubble/gfx/menu
@${INSTALL_DATA} ${BUILD_WRKSRC}/data/levels ${PREFIX}/share/frozen-bubble/data/
@${INSTALL_DATA} ${BUILD_WRKSRC}/data/plasma.raw ${PREFIX}/share/frozen-bubble/data/
@${INSTALL_DATA} ${BUILD_WRKSRC}/gfx/*.png ${PREFIX}/share/frozen-bubble/gfx/
@${INSTALL_DATA} ${BUILD_WRKSRC}/gfx/*.gif ${PREFIX}/share/frozen-bubble/gfx/
@${INSTALL_DATA} ${BUILD_WRKSRC}/gfx/balls/*.png ${PREFIX}/share/frozen-bubble/gfx/balls/
@${INSTALL_DATA} ${BUILD_WRKSRC}/gfx/balls/*.gif ${PREFIX}/share/frozen-bubble/gfx/balls/
@${INSTALL_DATA} ${BUILD_WRKSRC}/gfx/pinguins/*.png ${PREFIX}/share/frozen-bubble/gfx/pinguins/
@${INSTALL_DATA} ${BUILD_WRKSRC}/gfx/shoot/data ${PREFIX}/share/frozen-bubble/gfx/shoot/
@${INSTALL_DATA} ${BUILD_WRKSRC}/gfx/shoot/*.png ${PREFIX}/share/frozen-bubble/gfx/shoot/
@${INSTALL_DATA} ${BUILD_WRKSRC}/gfx/menu/*.png ${PREFIX}/share/frozen-bubble/gfx/menu/
@${INSTALL_DATA} ${BUILD_WRKSRC}/snd/*.wav ${PREFIX}/share/frozen-bubble/snd/
@${INSTALL_DATA} ${BUILD_WRKSRC}/snd/*.xm ${PREFIX}/share/frozen-bubble/snd/
@printf '#!/bin/sh\nLD_PRELOAD=/usr/lib/libc_r.so perl ${PREFIX}/bin/frozen-bubble.pl $$\@\n' > ${WRKSRC}/frozen-bubble
@${INSTALL_SCRIPT} ${WRKSRC}/frozen-bubble ${PREFIX}/bin
.include <bsd.port.mk>
|