aboutsummaryrefslogtreecommitdiffstats
path: root/audio/sidplayer/Makefile
blob: 65cb7c22e566f4c1ecdfd3de863a2571e547b45b (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
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$

PORTNAME=   sidplayer
PORTVERSION=    4.4
PORTREVISION=   8
CATEGORIES= audio
MASTER_SITES=   http://sidplayer.cebix.net/downloads/ \
        LOCAL/ehaupt
DISTNAME=   SIDPlayer-${PORTVERSION}

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    C64 SID tune player

LICENSE=    GPLv2

USE_SDL=    yes
GNU_CONFIGURE=  yes

SDLINCLUDEDIR=  SDL

OPTIONS_DEFINE= DOCS
OPTIONS_SUB=    yes
SUB_FILES=  pkg-message

post-patch:
    @${REINPLACE_CMD} -e 's|SDL/SDL_endian\.h|${SDLINCLUDEDIR}/SDL_endian\.h|' \
        ${WRKSRC}/src/main_sdl.cpp

do-install:
    ${INSTALL} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/PSID\ Demo/* ${STAGEDIR}${DOCSDIR}

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>