2005-12-30 11:41:06 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.21 2005/12/30 16:41:06 naddy Exp $
|
2002-11-13 12:50:13 -05:00
|
|
|
|
|
|
|
COMMENT= "MPEG2 and MPEG-4 AAC decoder"
|
2004-12-08 23:57:56 -05:00
|
|
|
COMMENT-xmms= "XMMS input plugin for AAC files"
|
2004-04-27 21:30:00 -04:00
|
|
|
DISTNAME= faad2-2.0
|
2005-09-16 05:51:25 -04:00
|
|
|
PKGNAME= faad-2.0p2
|
2005-12-30 11:41:06 -05:00
|
|
|
PKGNAME-xmms= faad-xmms-2.0p2
|
2002-12-20 18:40:13 -05:00
|
|
|
CATEGORIES= audio
|
2004-04-28 09:05:01 -04:00
|
|
|
MASTER_SITES= http://users.codefusionis.com/~jolan/
|
2005-12-24 14:51:52 -05:00
|
|
|
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
|
|
|
|
2002-12-20 18:40:13 -05:00
|
|
|
HOMEPAGE= http://faac.sourceforge.net/
|
2002-11-13 12:50:13 -05:00
|
|
|
|
|
|
|
# BSD
|
2004-04-27 21:30:00 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= "Patents"
|
2003-05-18 20:10:36 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2004-04-27 21:30:00 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= "Patents"
|
2003-05-18 20:10:36 -04:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-01-05 06:40:04 -05:00
|
|
|
WANTLIB= m stdc++
|
2002-11-13 12:50:13 -05:00
|
|
|
|
2004-04-27 21:30:00 -04:00
|
|
|
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS}
|
|
|
|
USE_GMAKE= Yes
|
2002-12-20 18:40:13 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2002-11-13 12:50:13 -05:00
|
|
|
|
2002-12-20 18:40:13 -05:00
|
|
|
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
|
2002-12-20 18:40:13 -05:00
|
|
|
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
|
|
|
|
2004-12-08 23:57:56 -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 \
|
2005-01-05 06:40:04 -05:00
|
|
|
faad.0,mp4v2.0::audio/faad
|
2004-12-08 23:57:56 -05:00
|
|
|
RUN_DEPENDS= ::audio/xmms
|
2005-01-05 06:40:04 -05:00
|
|
|
WANTLIB+= X11 Xext Xi pthread iconv intl glib gmodule gtk gdk
|
|
|
|
. else
|
|
|
|
WANTLIB+= c
|
2004-12-08 23:57:56 -05:00
|
|
|
. endif
|
|
|
|
.else
|
|
|
|
. if ${MULTI_PACKAGES:M-xmms}
|
|
|
|
LIB_DEPENDS= xmms.3::audio/xmms
|
2005-11-16 02:57:31 -05:00
|
|
|
BUILD_DEPENDS+= ::audio/xmms \
|
2004-12-08 23:57:56 -05:00
|
|
|
::audio/id3lib
|
|
|
|
CONFIGURE_ARGS+= --with-xmms
|
2005-12-24 14:51:52 -05:00
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --without-xmms
|
2004-12-08 23:57:56 -05:00
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2002-11-13 12:50:13 -05:00
|
|
|
post-patch:
|
2003-10-19 16:51:43 -04:00
|
|
|
@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
|
2002-11-13 12:50:13 -05:00
|
|
|
|
2004-12-13 00:40:55 -05:00
|
|
|
post-configure:
|
|
|
|
@cp ${WRKSRC}/config.h ${WRKSRC}/faadconfig.h
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/faadconfig.h ${PREFIX}/include
|
|
|
|
|
2002-11-13 12:50:13 -05:00
|
|
|
.include <bsd.port.mk>
|