summaryrefslogtreecommitdiff
path: root/audio/ksmp3play/Makefile
blob: 5cfa02add7bc27bf5cc9918a85130df9c9fef439 (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
# ex:ts=8
# New ports collection makefile for:	ksmp3play
# Date created:			Nov 4, 2001
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	ksmp3play
PORTVERSION=	0.5.1
CATEGORIES=	audio
MASTER_SITES=	http://www.xanadunet.net/ksmp3play/

MAINTAINER=	ports@FreeBSD.org

LIB_DEPENDS=	SDL-1.1.4:${PORTSDIR}/devel/sdl12 \
		smpeg:${PORTSDIR}/graphics/smpeg \
		gnugetopt:${PORTSDIR}/devel/libgnugetopt

USE_REINPLACE=	yes
SDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	SDL_CONFIG=${SDL_CONFIG} \
		LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
MAN1=	ksmp3play.1

post-patch:
	@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure

.if !defined(NOPORTDOCS)
post-install:
	@${MKDIR} ${DOCSDIR}
	${CP} -R ${WRKSRC}/doc/ksmp3play* ${DOCSDIR}
.endif

.include <bsd.port.mk>