1 # $NetBSD: Makefile,v 1.21 2012/09/12 00:24:39 asau Exp $
4 DISTNAME
= ices-
${ICES_VERSION}
5 PKGNAME
= ices-mp3-
${ICES_VERSION}
9 MASTER_SITES
= http
://svn.xiph.org
/releases
/ices
/
11 MAINTAINER
= kim@tac.nyc.ny.us
12 HOMEPAGE
= http
://www.icecast.org
/ices.php
13 COMMENT
= Source client for a streaming server
15 USE_TOOLS
+= automake pkg-config
19 BUILD_DEFS
+= ICES_USE_PERL ICES_USE_PYTHON
23 CONFIGURE_ARGS
+= --program-suffix
=-mp3
24 CONFIGURE_ARGS
+= --sysconfdir
=${PKG_SYSCONFDIR
:Q
}
25 CONFIGURE_ARGS
+= --with-docdir
=${DOCDIR
:Q
}
26 CONFIGURE_ARGS
+= --with-moddir
=${MODDIR
:Q
}
28 PKG_SYSCONFSUBDIR
= icecast
29 #RCD_SCRIPTS= ${PKGBASE}
31 DOCDIR
= ${PREFIX}/share
/doc
/${PKGBASE}
32 EGDIR
= ${PREFIX}/share
/examples
/${PKGBASE}
33 MODDIR
= ${PREFIX}/share
/${PKGBASE}
35 INSTALLATION_DIRS
= bin
${PKGMANDIR}/man1
38 cd
${WRKSRC} && autoreconf
--force
41 ${INSTALL_PROGRAM} ${WRKSRC}/src
/ices \
42 ${DESTDIR}${PREFIX}/bin
/${PKGBASE}
43 ${INSTALL_MAN} ${WRKSRC}/doc
/ices
.1 \
44 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
/${PKGBASE}.1
45 ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
46 ${INSTALL_DATA} ${WRKSRC}/doc
/icesmanual.html
${DESTDIR}${DOCDIR}
47 for i in AUTHORS BUGS COPYING NEWS README README.playlist TODO
; \
49 ${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${DOCDIR}/$$i ; \
51 ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
52 for i in ices.conf.
dist ices.pm.
dist ices.py.
dist ; \
54 ${INSTALL_DATA} ${WRKSRC}/conf
/$$i ${DESTDIR}${EGDIR}/$$i ; \
56 ${INSTALL_DATA_DIR} ${DESTDIR}${MODDIR}
58 # does not support flac-1.1.3 API
59 #.include "../../audio/flac/buildlink3.mk"
60 .
include "../../audio/lame/buildlink3.mk"
61 .
include "../../audio/libshout/buildlink3.mk"
62 .
include "../../audio/libvorbis/buildlink3.mk"
63 .if defined
(ICES_USE_PERL
) && (${ICES_USE_PERL} == "YES")
64 .
include "../../lang/perl5/buildlink3.mk"
65 CONFIGURE_ARGS
+= --with-perl
=${PERL5
:Q
}
67 .if defined
(ICES_USE_PYTHON
) && (${ICES_USE_PYTHON} == "YES")
68 .
include "../../lang/python/application.mk"
69 CONFIGURE_ARGS
+= --with-python
=${PYTHONBIN
:Q
}
71 .
include "../../textproc/libxml2/buildlink3.mk"
73 .
include "../../mk/pthread.buildlink3.mk"
74 .
include "../../mk/bsd.pkg.mk"