aboutsummaryrefslogtreecommitdiffstats
path: root/audio/xmms-nsf/Makefile
blob: c38d4b8db73bfca9f46f98d6e481de7f9f3f5216 (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
# New ports collection makefile for:    xmms-nsf
# Date created:             18 Aug 2005
# Whom:                 Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=   xmms-nsf
PORTVERSION=    0.0.3
PORTREVISION=   5
CATEGORIES= audio
MASTER_SITES=   http://optronic.sourceforge.net/files/ \
        CRITICAL

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    XMMS input-plugin for playing Nintendo(TM) NSF audio files

LICENSE=    GPLv2

BUILD_DEPENDS=  xmms:${PORTSDIR}/multimedia/xmms
RUN_DEPENDS=    xmms:${PORTSDIR}/multimedia/xmms

GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
USE_CSTD=   gnu89

MAKE_JOBS_SAFE= yes

ONLY_FOR_ARCHS= i386 amd64

CFLAGS+=    -fPIC

PLIST_FILES=    lib/xmms/Input/libnsf.a \
        lib/xmms/Input/libnsf.la \
        lib/xmms/Input/libnsf.so

SUB_FILES=  pkg-message
SUB_LIST=   VERSION=${PORTVERSION}

post-patch:
    @${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|' \
        ${WRKSRC}/src/nes/nestypes.h
    @${REINPLACE_CMD} -e '/objformat=/s|=.*|=elf|' ${WRKSRC}/ltconfig

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>