aboutsummaryrefslogtreecommitdiffstats
path: root/audio/lame/Makefile
blob: d65e4720f656fafe8bbb3d876372ffd83e98f0b0 (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
49
50
51
52
53
# ports collection makefile for:   lame
# Date created:        11 January 1998
# Whom:                yoshiaki Uchikawa
#
# $FreeBSD$
#

PORTNAME=   lame
PORTVERSION=    3.97
CATEGORIES= audio
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE} \
        ftp://ftp.fu-berlin.de/unix/sound/%SUBDIR%/
MASTER_SITE_SUBDIR= lame

MAINTAINER= netchild@FreeBSD.org
COMMENT=    ISO code based fast MP3 encoder kit

INSTALLS_SHLIB= yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
CONFIGURE_ARGS= --enable-nasm --enable-mp3rtp --disable-gtktest

RESTRICTED= patent issues, see http://www.mp3licensing.com/

MAN1=       lame.1

DOC_FILES=  API LICENSE README TODO USAGE

.include <bsd.port.pre.mk>

.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS=  nasm:${PORTSDIR}/devel/nasm
.endif

.if defined(NOPORTDOCS)
do-install:
    @cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
        ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-exec
    @cd ${INSTALL_WRKSRC}/include && ${SETENV} ${MAKE_ENV} ${GMAKE} \
        ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-data
    @cd ${INSTALL_WRKSRC}/doc/man && ${SETENV} ${MAKE_ENV} ${GMAKE} \
        ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-data
.else
post-install: install-doc

install-doc:
    @${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
    @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>