aboutsummaryrefslogtreecommitdiffstats
path: root/audio/xmp/Makefile
blob: 625d55da744910be2b8f19b798c44122338dc510 (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
# New ports collection makefile for:    xmp
# Date created:     18 September 1999
# Whom:         Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#

PORTNAME=   xmp
PORTVERSION=    2.0.4
CATEGORIES= audio
MASTER_SITES=   http://xmp.helllabs.org/pkg/%SUBDIR%/ \
        http://xmp.linuxave.net/pkg/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTVERSION}

MAINTAINER= anders@fix.no

USE_BZIP2=  yes
USE_XLIB=   yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-alsa
CONFIGURE_ENV=  LIBS="-L${LOCALBASE}/lib" CFLAGS="-I${LOCALBASE}/include"
USE_AUTOCONF=   yes
WANT_ESOUND=    yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} > 500013 || ${MACHINE_ARCH} == "alpha"
USE_ESOUND= yes
CONFIGURE_ARGS+=    --disable-oss --enable-esd
.elif defined(HAVE_ESOUND)
USE_ESOUND= yes
CONFIGURE_ARGS+=    --enable-esd
.endif

MAN1=       xmp.1
MLINKS=     xmp.1 xxmp.1

post-patch:
    @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/docs/xmp.1

.include <bsd.port.post.mk>