openbsd-ports/audio/libsamplerate/Makefile
2010-10-26 08:25:26 +00:00

46 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2010/10/26 08:25:26 dcoppa Exp $
COMMENT= audio sample rate conversion library
DISTNAME= libsamplerate-0.1.7
REVISION= 0
SHARED_LIBS= samplerate 2.0 # .1.3
CATEGORIES= audio
HOMEPAGE= http://mega-nerd.com/SRC/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}
WANTLIB= c m sndfile.>=1
LIB_DEPENDS= ::audio/libsndfile
USE_LIBTOOL= yes
MAKE_FLAGS= CFLAGS="${CFLAGS}"
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--disable-gcc-opt \
--disable-cpu-clip \
--disable-gcc-pipe \
--disable-fftw
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libsamplerate
${INSTALL_DATA} ${WRKSRC}/doc/*.css \
${PREFIX}/share/doc/libsamplerate
${INSTALL_DATA} ${WRKSRC}/doc/*.png \
${PREFIX}/share/doc/libsamplerate
${INSTALL_DATA} ${WRKSRC}/doc/*.html \
${PREFIX}/share/doc/libsamplerate
.include <bsd.port.mk>