Lines 1-12
Link Here
|
1 |
# New ports collection makefile for: asunder |
1 |
# Created by: Fraser Tweedale <frase@frase.id.au> |
2 |
# Date created: 14 September 2007 |
|
|
3 |
# Whom: frase@frase.id.au |
4 |
# |
5 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
6 |
|
3 |
|
7 |
PORTNAME= asunder |
4 |
PORTNAME= asunder |
8 |
PORTVERSION= 2.0 |
5 |
PORTVERSION= 2.2 |
9 |
PORTREVISION?= 2 |
|
|
10 |
CATEGORIES= audio |
6 |
CATEGORIES= audio |
11 |
MASTER_SITES= http://littlesvr.ca/asunder/releases/ |
7 |
MASTER_SITES= http://littlesvr.ca/asunder/releases/ |
12 |
|
8 |
|
Lines 16-65
Link Here
|
16 |
LIB_DEPENDS= cddb.4:${PORTSDIR}/audio/libcddb |
12 |
LIB_DEPENDS= cddb.4:${PORTSDIR}/audio/libcddb |
17 |
RUN_DEPENDS= ${LOCALBASE}/bin/cdparanoia:${PORTSDIR}/audio/cdparanoia |
13 |
RUN_DEPENDS= ${LOCALBASE}/bin/cdparanoia:${PORTSDIR}/audio/cdparanoia |
18 |
|
14 |
|
19 |
OPTIONS= LAME "lame support" on \ |
15 |
OPTIONS_DEFINE= LAME OGG FLAC WAVPACK MONKEYAUDIO WINDOWS_CHARS NLS DOCS |
20 |
OGG "ogg-vorbis support" on \ |
16 |
OPTIONS_DEFAULT= LAME OGG FLAC |
21 |
FLAC "FLAC support" on \ |
|
|
22 |
WAVPACK "WavPack support" off \ |
23 |
MONKEYAUDIO "Monkey's Audio support" off \ |
24 |
WINDOWS_CHARS "Allow Windows special chars in filenames" off |
25 |
|
17 |
|
|
|
18 |
MONKEYAUDIO_DESC= Monkey's Audio support |
19 |
WINDOWS_CHARS_DESC= Allow Windows special chars in filenames |
20 |
|
26 |
USE_BZIP2= yes |
21 |
USE_BZIP2= yes |
27 |
GNU_CONFIGURE= yes |
22 |
GNU_CONFIGURE= yes |
|
|
23 |
USE_GETTEXT= yes |
24 |
USE_GMAKE= yes |
28 |
USE_GNOME= gtk20 |
25 |
USE_GNOME= gtk20 |
29 |
|
26 |
|
30 |
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README TODO |
27 |
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README TODO |
31 |
|
28 |
|
32 |
.include <bsd.port.pre.mk> |
29 |
.include <bsd.port.options.mk> |
33 |
|
30 |
|
34 |
.if defined(WITH_LAME) |
31 |
.if ${PORT_OPTIONS:MLAME} |
35 |
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame |
32 |
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame |
36 |
.endif |
33 |
.endif |
37 |
|
34 |
|
38 |
.if defined(WITH_OGG) |
35 |
.if ${PORT_OPTIONS:MOGG} |
39 |
RUN_DEPENDS+= oggenc:${PORTSDIR}/audio/vorbis-tools |
36 |
RUN_DEPENDS+= oggenc:${PORTSDIR}/audio/vorbis-tools |
40 |
.endif |
37 |
.endif |
41 |
|
38 |
|
42 |
.if defined(WITH_FLAC) |
39 |
.if ${PORT_OPTIONS:MFLAC} |
43 |
RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac |
40 |
RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac |
44 |
.endif |
41 |
.endif |
45 |
|
42 |
|
46 |
.if defined(WITH_WAVPACK) |
43 |
.if ${PORT_OPTIONS:MWAVPACK} |
47 |
RUN_DEPENDS+= wavpack:${PORTSDIR}/audio/wavpack |
44 |
RUN_DEPENDS+= wavpack:${PORTSDIR}/audio/wavpack |
48 |
.endif |
45 |
.endif |
49 |
|
46 |
|
50 |
.if defined(WITH_MONKEYAUDIO) |
47 |
.if ${PORT_OPTIONS:MMONKEYAUDIO} |
51 |
RUN_DEPENDS+= mac:${PORTSDIR}/audio/mac |
48 |
RUN_DEPENDS+= mac:${PORTSDIR}/audio/mac |
52 |
.endif |
49 |
.endif |
53 |
|
50 |
|
|
|
51 |
.if ${PORT_OPTIONS:MNLS} |
52 |
PLIST_SUB+= NLS='' |
53 |
.else |
54 |
CONFIGURE_ARGS+= --disable-nls |
55 |
PLIST_SUB+= NLS='@comment ' |
56 |
.endif |
57 |
|
54 |
post-patch: |
58 |
post-patch: |
55 |
.if defined(WITH_WINDOWS_CHARS) |
59 |
@${REINPLACE_CMD} -e 's/^itlocaledir = .*/itlocaledir = @datarootdir@\/locale/' ${WRKSRC}/po/Makefile.in.in |
|
|
60 |
.if ${PORT_OPTIONS:MWINDOWS_CHARS} |
56 |
@${REINPLACE_CMD} -e 's^#define[[:blank:]]*BADCHARS.*^#define BADCHARS "/"^' ${WRKSRC}/src/util.h |
61 |
@${REINPLACE_CMD} -e 's^#define[[:blank:]]*BADCHARS.*^#define BADCHARS "/"^' ${WRKSRC}/src/util.h |
57 |
.endif |
62 |
.endif |
58 |
|
63 |
|
59 |
post-install: |
64 |
post-install: |
60 |
.if !defined(NOPORTDOCS) |
65 |
.if ${PORT_OPTIONS:MDOCS} |
61 |
@${MKDIR} ${DOCSDIR} |
66 |
@${MKDIR} ${DOCSDIR} |
62 |
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ |
67 |
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ |
63 |
.endif |
68 |
.endif |
64 |
|
69 |
|
65 |
.include <bsd.port.post.mk> |
70 |
.include <bsd.port.mk> |