summaryrefslogtreecommitdiffstats
path: root/audio/xmms-sexypsf/Makefile
blob: e9dbe9f4c201a26faa828e4fdc4be56c3ef982d7 (plain)
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
# New ports collection makefile for:	xmms-sexypsf
# Date created:				10 Jul 2005
# Whom:					Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=	xmms-sexypsf
PORTVERSION=	0.4.7
CATEGORIES=	audio
MASTER_SITES=	http://projects.raphnet.net/sexypsf/
DISTNAME=	sexypsf-${PORTVERSION}

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	XMMS plugin for playing .psf files

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

USE_BZIP2=	yes
USE_X_PREFIX=	yes
USE_GNOME=	gtk12

WRKSRC=		${WRKDIR}/sexypsf

CFLAGS+=	-I${WRKSRC} -fPIC
DEFINES=	-DSPSFVERSION=\""${PORTVERSION}\"" -DPSS_STYLE=1

PORTDOCS=	ChangeLog README psf_format.txt spu.txt spu2regs.txt \
		system.txt
SOURCES=	PsxBios PsxCounters PsxDma Spu PsxHw PsxMem Misc \
		R3000A PsxInterpreter PsxHLE spu/spu xmms/xmms

PLIST_FILES=	lib/xmms/Input/libsexypsf.so

do-build:
.for f in ${SOURCES}
	${CC} ${CFLAGS} ${DEFINES} `gtk-config --cflags` -c -o ${WRKSRC}/${f}.o ${WRKSRC}/${f}.c
.endfor
	${CC} ${CFLAGS} ${DEFINES} `gtk-config --cflags` ${SOURCES:S/$/.o/:S/^/${WRKSRC}\//} \
		-o ${WRKSRC}/libsexypsf.so -shared -lz

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/libsexypsf.so ${PREFIX}/lib/xmms/Input/libsexypsf.so

.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/Docs/${f} ${DOCSDIR}
.endfor
.endif

post-install:
	@${CAT} pkg-message

.include <bsd.port.mk>
OpenPOWER on IntegriCloud