2010-07-01 17:12:50 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.43 2010/07/01 21:12:50 jasper Exp $
|
2002-11-13 12:50:13 -05:00
|
|
|
|
2008-09-15 17:58:19 -04:00
|
|
|
COMMENT-main= MPEG-2 and MPEG-4 AAC decoder
|
2007-09-15 17:26:00 -04:00
|
|
|
COMMENT-xmms= XMMS input plugin for AAC files
|
2008-09-15 17:58:19 -04:00
|
|
|
V= 2.6.1
|
|
|
|
DISTNAME= faad2-${V}
|
2010-06-14 13:44:46 -04:00
|
|
|
PKGNAME-main= faad-${V}p1
|
|
|
|
PKGNAME-xmms= faad-xmms-${V}p1
|
2002-12-20 18:40:13 -05:00
|
|
|
CATEGORIES= audio
|
2008-09-15 17:58:19 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=faac/}
|
|
|
|
SHARED_LIBS += faad 2.0 # .0.0
|
|
|
|
SHARED_LIBS += mp4ff 1.0 # .0.0
|
2005-12-24 14:51:52 -05:00
|
|
|
|
2006-07-03 11:55:24 -04:00
|
|
|
HOMEPAGE= http://www.audiocoding.com/
|
2002-11-13 12:50:13 -05:00
|
|
|
|
2006-07-03 11:55:24 -04:00
|
|
|
# GPL
|
2007-09-15 17:26:00 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Patents
|
2003-05-18 20:10:36 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2007-09-15 17:26:00 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= Patents
|
2003-05-18 20:10:36 -04:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2008-09-15 17:58:19 -04:00
|
|
|
WANTLIB= m
|
2002-11-13 12:50:13 -05:00
|
|
|
|
2010-06-23 13:02:46 -04:00
|
|
|
# bootstrap checks for libtoolize
|
|
|
|
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS} \
|
|
|
|
::devel/libtool
|
2004-04-27 21:30:00 -04:00
|
|
|
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
|
2008-09-15 17:58:19 -04:00
|
|
|
AUTOMAKE_VERSION=1.9
|
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" \
|
2008-09-15 17:58:19 -04:00
|
|
|
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION}
|
2003-12-29 08:17:53 -05:00
|
|
|
|
2004-12-08 23:57:56 -05:00
|
|
|
PSEUDO_FLAVORS= no_xmms
|
2010-07-01 17:12:50 -04:00
|
|
|
FLAVOR?= no_xmms
|
2006-11-25 12:04:32 -05:00
|
|
|
MULTI_PACKAGES=-main
|
|
|
|
|
2004-12-08 23:57:56 -05:00
|
|
|
.if !${FLAVOR:L:Mno_xmms}
|
|
|
|
MULTI_PACKAGES+=-xmms
|
2006-11-11 16:04:27 -05:00
|
|
|
USE_X11= Yes
|
2006-11-25 12:04:32 -05:00
|
|
|
BUILD_DEPENDS+= ::audio/id3lib
|
2004-12-08 23:57:56 -05:00
|
|
|
CONFIGURE_ARGS+= --with-xmms
|
2006-11-25 12:04:32 -05:00
|
|
|
.else
|
2005-12-24 14:51:52 -05:00
|
|
|
CONFIGURE_ARGS+= --without-xmms
|
2004-12-08 23:57:56 -05:00
|
|
|
.endif
|
|
|
|
|
2006-11-25 12:04:32 -05:00
|
|
|
LIB_DEPENDS-xmms= xmms.>=3::audio/xmms \
|
2008-09-15 17:58:19 -04:00
|
|
|
faad,mp4ff::audio/faad
|
2006-11-25 12:04:32 -05:00
|
|
|
RUN_DEPENDS-xmms= ::audio/xmms
|
|
|
|
WANTLIB-xmms= ${WANTLIB} \
|
2007-12-11 06:00:37 -05:00
|
|
|
X11 Xau Xdmcp Xext Xi iconv intl glib \
|
2009-08-10 02:29:51 -04:00
|
|
|
gmodule gtk gdk pthread-stubs xcb
|
2006-11-25 12:04:32 -05:00
|
|
|
WANTLIB-main= ${WANTLIB} c
|
|
|
|
|
|
|
|
|
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
|
2006-02-07 23:54:48 -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
|
2010-04-08 03:17:21 -04:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/common/mp4ff/mp4ff.h ${PREFIX}/include
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/common/mp4ff/mp4ff_int_types.h ${PREFIX}/include
|
2004-12-13 00:40:55 -05:00
|
|
|
|
2002-11-13 12:50:13 -05:00
|
|
|
.include <bsd.port.mk>
|