aboutsummaryrefslogtreecommitdiffstats
path: root/games/powerpak/Makefile
blob: 5bab26ced2e291c064de75df270f9d81feb6184b (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
# New ports collection makefile for:    PowerPak
# Date created:             19 August 1999
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   powerpak
PORTVERSION=    20000511
CATEGORIES= games
MASTER_SITES=   http://www.angelfire.com/va/powerpakgsdk/images/
DISTNAME=   PowerPak

MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS=    SDL-1.1.4:${PORTSDIR}/devel/sdl12 \
        png.5:${PORTSDIR}/graphics/png \
        jpeg.9:${PORTSDIR}/graphics/jpeg \
        smpeg.1:${PORTSDIR}/graphics/smpeg \
        SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer

SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config

USE_FREETYPE=   yes
USE_REINPLACE=  yes
INSTALLS_SHLIB= yes
MAKE_ENV=   SDL_CONFIG="${SDL_CONFIG}"
MAKEFILE=   Makefile.UNIX

post-extract:
    @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s/`/usr/bin/printf '\r'`//g ; \
        s|\"SDL/|\"|g ; s|<SDL/|<|g"

do-install:
    @ ${INSTALL_DATA} ${WRKSRC}/libPP.a ${PREFIX}/lib
    @ ${INSTALL_PROGRAM} ${WRKSRC}/libPP.so.1 ${PREFIX}/lib
    @ ${LN} -sf ${PREFIX}/lib/libPP.so.1 ${PREFIX}/lib/libPP.so
    @ ${MKDIR} ${PREFIX}/include/PowerPak
.for dir in . Power3D PowerDraw PowerInput PowerMedia PowerSound
    @ ${INSTALL_DATA} ${WRKSRC}/${dir}/*.h ${PREFIX}/include/PowerPak
    @ if [ -d ${WRKSRC}/${dir}/examples ]; then \
        ${MKDIR} ${PREFIX}/share/examples/PowerPak/${dir}; \
        ${INSTALL_DATA} ${WRKSRC}/${dir}/examples/* ${PREFIX}/share/examples/PowerPak/${dir}; \
      fi
.endfor

.include <bsd.port.mk>