55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.8 2001/08/31 20:24:54 naddy Exp $
|
|
|
|
COMMENT= "free lossless audio codec"
|
|
COMMENT-xmms= "XMMS input plugin for playing FLAC files"
|
|
|
|
VERSION= 1.0
|
|
DISTNAME= flac-${VERSION}
|
|
PKGNAME-xmms= xmms-flac-${VERSION}
|
|
CATEGORIES= audio archivers
|
|
NEED_VERSION= 1.427
|
|
HOMEPAGE= http://flac.sourceforge.net/
|
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= flac
|
|
EXTRACT_SUFX= -src.tar.gz
|
|
|
|
MULTI_PACKAGES= -xmms
|
|
SUBPACKAGE?=
|
|
|
|
.if !defined(PACKAGING)
|
|
LIB_DEPENDS+= xmms.2::audio/xmms
|
|
.endif
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
BUILD_DEPENDS+= nasm::devel/nasm
|
|
.endif
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} --enable-static
|
|
|
|
.if defined(PACKAGING) && ${SUBPACKAGE} == "-xmms"
|
|
LIB_DEPENDS= FLAC.1::audio/flac
|
|
RUN_DEPENDS= xmms::audio/xmms
|
|
.endif
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/flac
|
|
|
|
post-extract:
|
|
@rm -rf ${WRKSRC}/obj
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCDIR}
|
|
${INSTALL_DATA_DIR} ${DOCDIR}/images
|
|
${INSTALL_DATA} ${WRKSRC}/doc/images/*.gif ${DOCDIR}/images
|
|
${INSTALL_DATA} ${WRKSRC}/doc/images/*.jpg ${DOCDIR}/images
|
|
|
|
.include <bsd.port.mk>
|