aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mp3splt/Makefile
blob: 3a2057daf793601675e0b4647bab9199558eb62c (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
# Created by: Ulrich Spoerlein <q@uni.de>
# $FreeBSD$

PORTNAME=   mp3splt
PORTVERSION=    2.5.2
CATEGORIES= audio
MASTER_SITES=   SF/mp3splt/${PORTNAME}/${PORTVERSION}

MAINTAINER= citrin@citrin.ru
COMMENT=    Utility to split MP3 and Ogg files (via CUE sheets)

LICENSE=    GPLv2

LIB_DEPENDS=    mp3splt:${PORTSDIR}/audio/libmp3splt

USES=   pkgconfig:build
USE_AUTOTOOLS=  libltdl
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-oggsplt_symlink
CONFIGURE_ENV+= PKG_CONFIG_PATH=${LOCALBASE}/lib/pkgconfig

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

MAN1=       oggsplt.1 mp3splt.1
PLIST_FILES=    bin/mp3splt bin/oggsplt

OPTIONS_DEFINE= NLS
OPTIONS_DEFAULT=    NLS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT=    yes
LANGUAGES=  cs de_DE es fr_FR
.for language in ${LANGUAGES}
PLIST_FILES+=   share/locale/${language}/LC_MESSAGES/mp3splt.mo
.endfor
PLIST_DIRSTRY+= share/locale/de_DE/LC_MESSAGES
PLIST_DIRSTRY+= share/locale/de_DE
.else
CONFIGURE_ARGS+=    --disable-nls
.endif

.include <bsd.port.mk>