2007-09-15 17:26:00 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2007/09/15 21:26:01 simon Exp $
|
|
|
|
COMMENT= musepack decoder library
|
2006-03-10 04:43:37 -05:00
|
|
|
|
2006-12-24 17:45:35 -05:00
|
|
|
DISTNAME= libmpcdec-1.2.4
|
|
|
|
SHARED_LIBS += mpcdec 2.0 # .5.1
|
2006-03-10 04:43:37 -05:00
|
|
|
CATEGORIES= audio
|
|
|
|
|
2006-03-10 10:53:52 -05:00
|
|
|
HOMEPAGE= http://www.musepack.net/
|
2006-03-10 04:43:37 -05:00
|
|
|
|
2006-12-24 17:45:35 -05:00
|
|
|
MAINTAINER= David Love <david@homeunix.org.uk>
|
2006-03-10 04:43:37 -05:00
|
|
|
|
|
|
|
MASTER_SITES= http://files2.musepack.net/source/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
2006-12-24 17:45:35 -05:00
|
|
|
# documentation is no longer distributed in the tarball
|
|
|
|
#DOCDIR=${PREFIX}/share/doc/libmpcdec
|
|
|
|
|
|
|
|
BUILD_DEPENDS= :automake-${AUTOMAKE_VERSION}*:devel/automake/${AUTOMAKE_VERSION} \
|
|
|
|
:autoconf-${AUTOCONF_VERSION}*:devel/autoconf/${AUTOCONF_VERSION}
|
2006-03-10 04:43:37 -05:00
|
|
|
|
2006-03-10 10:53:52 -05:00
|
|
|
pre-configure:
|
2006-12-24 17:45:35 -05:00
|
|
|
cd ${WRKSRC} && ${SETENV} AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} ./autogen.sh
|
2006-03-10 10:53:52 -05:00
|
|
|
@perl -pi -e 's|-O3\ -fomit-frame-pointer||g' ${WRKSRC}/configure
|
|
|
|
|
2006-03-10 04:43:37 -05:00
|
|
|
post-install:
|
2006-03-10 10:53:52 -05:00
|
|
|
${INSTALL} ${WRKBUILD}/src/.libs/sample ${PREFIX}/bin/mpc2wav
|
2006-12-24 17:45:35 -05:00
|
|
|
# ${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
# cp -r ${WRKDIST}/docs/* ${DOCDIR}
|
2006-03-10 04:43:37 -05:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
2006-03-10 10:53:52 -05:00
|
|
|
WANTLIB= c m stdc++
|
2006-03-10 04:43:37 -05:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
2006-12-24 17:45:35 -05:00
|
|
|
AUTOCONF_VERSION=2.59
|
|
|
|
AUTOMAKE_VERSION=1.9
|
2006-03-10 04:43:37 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|