openbsd-ports/audio/flac/Makefile

55 lines
1.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.8 2001/08/31 20:24:54 naddy Exp $
COMMENT= "free lossless audio codec"
2001-08-20 20:27:06 -04:00
COMMENT-xmms= "XMMS input plugin for playing FLAC files"
2001-07-26 13:37:46 -04:00
VERSION= 1.0
2001-08-20 20:27:06 -04:00
DISTNAME= flac-${VERSION}
PKGNAME-xmms= xmms-flac-${VERSION}
CATEGORIES= audio archivers
2001-07-26 13:37:46 -04:00
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
2001-08-20 20:27:06 -04:00
EXTRACT_SUFX= -src.tar.gz
2001-07-26 13:37:46 -04:00
MULTI_PACKAGES= -xmms
SUBPACKAGE?=
.if !defined(PACKAGING)
LIB_DEPENDS+= xmms.2::audio/xmms
.endif
.if ${MACHINE_ARCH} == "i386"
2001-07-26 13:37:46 -04:00
BUILD_DEPENDS+= nasm::devel/nasm
.endif
2001-05-19 15:12:36 -04:00
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} --enable-static
2001-05-19 15:12:36 -04:00
2001-07-26 13:37:46 -04:00
.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>