2007-05-14 15:35:08 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2007/05/14 19:35:08 naddy Exp $
|
2005-06-02 21:04:36 -04:00
|
|
|
|
|
|
|
COMMENT= "integer-only ogg vorbis command-line player"
|
|
|
|
DISTNAME= vorbis-tools-1.0
|
2007-05-14 15:35:08 -04:00
|
|
|
PKGNAME= ${DISTNAME:S/vorbis/tremor/}p2
|
2005-06-02 21:04:36 -04:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://www.vorbis.com/files/1.0/unix/
|
|
|
|
|
2006-07-19 09:41:02 -04:00
|
|
|
HOMEPAGE= http://www.xiph.org/vorbis/
|
2005-06-02 21:04:36 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2006-09-18 17:10:11 -04:00
|
|
|
USE_LIBTOOL= Yes
|
2005-06-02 21:04:36 -04:00
|
|
|
|
|
|
|
AUTOCONF_VERSION=2.59
|
|
|
|
AUTOMAKE_VERSION=1.4
|
|
|
|
|
2007-04-01 12:44:19 -04:00
|
|
|
BUILD_DEPENDS= :autoconf-${AUTOCONF_VERSION}*:devel/autoconf/${AUTOCONF_VERSION} \
|
|
|
|
:automake-${AUTOMAKE_VERSION}.*:devel/automake/${AUTOMAKE_VERSION} \
|
2005-06-02 21:04:36 -04:00
|
|
|
::devel/metaauto
|
2006-08-01 08:13:28 -04:00
|
|
|
LIB_DEPENDS= ao.>=3::audio/libao \
|
|
|
|
ogg.>=5::audio/libogg \
|
|
|
|
vorbisidec.>=1::audio/tremor \
|
|
|
|
iconv.>=2::converters/libiconv \
|
|
|
|
curl.>=2::net/curl
|
2005-06-02 21:04:36 -04:00
|
|
|
|
2007-05-14 15:35:08 -04:00
|
|
|
WANTLIB= c crypto idn pthread ssl z
|
2005-06-02 21:04:36 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS+=--disable-vorbistest
|
|
|
|
CONFIGURE_ENV= AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
PTHREAD_CFLAGS="-pthread" PTHREAD_LIBS="-pthread"
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC} && env AUTOMAKE_VERSION=${AUTOMAKE_VERSION} automake
|
|
|
|
cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} autoconf
|
|
|
|
@perl -pi -e s,"hardcode_libdir_flag_spec=.*",,g ${WRKSRC}/configure
|
|
|
|
@perl -pi -e s,-O20,,g ${WRKSRC}/configure
|
|
|
|
@perl -pi -e s,'CFLAGS="-O"','CFLAGS=""',g ${WRKSRC}/configure
|
|
|
|
@perl -pi -e s,'/etc/ogg123rc',${SYSCONFDIR}/igg123rc,g \
|
|
|
|
${WRKSRC}/ogg123/cfgfile_options.c
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tremor-tools
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ogg123/ogg123rc-example \
|
|
|
|
${PREFIX}/share/examples/tremor-tools/igg123rc
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/ogg123/ogg123.1 ${PREFIX}/man/man1/igg123.1
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|