Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / audio / ices-mp3 / Makefile
blobd766de6e88a9deca26dbddd820e1bf5882ab0c79
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}
6 PKGREVISION= 8
7 ICES_VERSION= 0.4
8 CATEGORIES= audio
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
16 USE_LIBTOOL= yes
17 GNU_CONFIGURE= yes
19 BUILD_DEFS+= ICES_USE_PERL ICES_USE_PYTHON
20 ICES_USE_PERL?= NO
21 ICES_USE_PYTHON?= NO
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
37 pre-configure:
38 cd ${WRKSRC} && autoreconf --force
40 do-install:
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 ; \
48 do \
49 ${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${DOCDIR}/$$i ; \
50 done
51 ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
52 for i in ices.conf.dist ices.pm.dist ices.py.dist ; \
53 do \
54 ${INSTALL_DATA} ${WRKSRC}/conf/$$i ${DESTDIR}${EGDIR}/$$i ; \
55 done
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}
66 .endif
67 .if defined(ICES_USE_PYTHON) && (${ICES_USE_PYTHON} == "YES")
68 .include "../../lang/python/application.mk"
69 CONFIGURE_ARGS+= --with-python=${PYTHONBIN:Q}
70 .endif
71 .include "../../textproc/libxml2/buildlink3.mk"
73 .include "../../mk/pthread.buildlink3.mk"
74 .include "../../mk/bsd.pkg.mk"