openbsd-ports/audio/faad/Makefile

82 lines
1.8 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.21 2005/12/30 16:41:06 naddy Exp $
COMMENT= "MPEG2 and MPEG-4 AAC decoder"
COMMENT-xmms= "XMMS input plugin for AAC files"
2004-04-27 21:30:00 -04:00
DISTNAME= faad2-2.0
PKGNAME= faad-2.0p2
PKGNAME-xmms= faad-xmms-2.0p2
CATEGORIES= audio
MASTER_SITES= http://users.codefusionis.com/~jolan/
SHARED_LIBS= faad 0.0 \
mp4ff 0.0 \
mp4v2 0.0
MODGNU_SHARED_LIBS= faad '' \
mp4ff '' \
mp4v2 ''
2004-04-27 21:30:00 -04:00
HOMEPAGE= http://faac.sourceforge.net/
# BSD
2004-04-27 21:30:00 -04:00
PERMIT_PACKAGE_CDROM= "Patents"
PERMIT_PACKAGE_FTP= Yes
2004-04-27 21:30:00 -04:00
PERMIT_DISTFILES_CDROM= "Patents"
PERMIT_DISTFILES_FTP= Yes
WANTLIB= m stdc++
2004-04-27 21:30:00 -04:00
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS}
USE_GMAKE= Yes
USE_LIBTOOL= Yes
WRKDIST= ${WRKDIR}/faad2
2003-02-15 11:42:22 -05:00
CONFIGURE_STYLE= automake
2004-04-27 21:30:00 -04:00
AUTOCONF_VERSION=2.59
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
2003-02-15 09:19:19 -05:00
LIBS="-lm" \
AUTOCONF_VERSION=${AUTOCONF_VERSION}
2004-04-27 21:30:00 -04:00
CONFIGURE_ARGS+=--with-mp4v2
2003-12-29 08:17:53 -05:00
PSEUDO_FLAVORS= no_xmms
FLAVOR?=
MULTI_PACKAGES=
.if !${FLAVOR:L:Mno_xmms}
MULTI_PACKAGES+=-xmms
.endif
SUBPACKAGE?=
.if defined(PACKAGING)
. if ${SUBPACKAGE} == "-xmms"
LIB_DEPENDS= xmms.3::audio/xmms \
faad.0,mp4v2.0::audio/faad
RUN_DEPENDS= ::audio/xmms
WANTLIB+= X11 Xext Xi pthread iconv intl glib gmodule gtk gdk
. else
WANTLIB+= c
. endif
.else
. if ${MULTI_PACKAGES:M-xmms}
LIB_DEPENDS= xmms.3::audio/xmms
BUILD_DEPENDS+= ::audio/xmms \
::audio/id3lib
CONFIGURE_ARGS+= --with-xmms
. else
CONFIGURE_ARGS+= --without-xmms
. endif
.endif
post-patch:
@cd ${WRKSRC} && AUTOCONF_VERSION=${AUTOCONF_VERSION} \
2005-01-11 02:16:01 -05:00
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} PATH=${PORTPATH} \
sh bootstrap
2004-04-27 21:30:00 -04:00
@perl -pi -e 's/--no-verify//g' ${WRKSRC}/configure
post-configure:
@cp ${WRKSRC}/config.h ${WRKSRC}/faadconfig.h
post-install:
@${INSTALL_DATA} ${WRKSRC}/faadconfig.h ${PREFIX}/include
.include <bsd.port.mk>