2014-06-04 17:37:30 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.55 2014/06/04 21:37:30 miod Exp $
|
|
|
|
|
|
|
|
# gcc -iquote
|
|
|
|
NOT_FOR_ARCHS= ${GCC3_ARCHS}
|
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
|
2013-12-15 14:50:44 -05:00
|
|
|
COMMENT-xmms= XMMS input plugin for MP4/M4A/AAC files
|
2011-07-05 13:37:33 -04:00
|
|
|
|
2012-05-22 14:38:48 -04:00
|
|
|
V= 2.7
|
2008-09-15 17:58:19 -04:00
|
|
|
DISTNAME= faad2-${V}
|
2010-09-05 06:25:16 -04:00
|
|
|
PKGNAME-main= faad-${V}
|
2013-12-15 14:50:44 -05:00
|
|
|
PKGNAME-xmms= xmms-faad-${V}
|
|
|
|
REVISION-xmms= 1
|
2002-12-20 18:40:13 -05:00
|
|
|
CATEGORIES= audio
|
2008-09-15 17:58:19 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=faac/}
|
2012-05-22 14:38:48 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2011-07-05 13:37:33 -04:00
|
|
|
|
2012-05-22 14:38:48 -04:00
|
|
|
SHARED_LIBS= faad 3.0 \
|
|
|
|
mp4ff 2.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
|
|
|
|
2011-07-05 13:37:33 -04:00
|
|
|
# GPLv2+
|
2007-09-15 17:26:00 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Patents
|
2003-05-18 20:10:36 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2010-09-05 06:25:16 -04:00
|
|
|
|
2012-05-22 14:38:48 -04:00
|
|
|
WANTLIB-main= c m
|
2012-08-25 13:10:58 -04:00
|
|
|
WANTLIB-xmms= X11 Xext Xi faad gdk glib gmodule gtk m mp4ff pthread \
|
|
|
|
xcb xmms>=3 ${MODGETTEXT_WANTLIB}
|
2012-05-22 14:38:48 -04:00
|
|
|
|
|
|
|
MODULES= devel/gettext
|
2010-06-23 13:02:46 -04:00
|
|
|
# bootstrap checks for libtoolize
|
|
|
|
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS} \
|
2011-07-05 13:37:33 -04:00
|
|
|
${MODGNU_AUTOMAKE_DEPENDS} \
|
2010-11-14 19:22:45 -05:00
|
|
|
devel/libtool
|
2002-11-13 12:50:13 -05:00
|
|
|
|
2012-05-22 14:38:48 -04:00
|
|
|
LIB_DEPENDS-main= # empty
|
|
|
|
RUN_DEPENDS-main= # empty
|
|
|
|
|
|
|
|
LIB_DEPENDS-xmms= ${BUILD_PKGPATH} \
|
|
|
|
${MODGETTEXT_LIB_DEPENDS} \
|
|
|
|
audio/xmms
|
|
|
|
RUN_DEPENDS-xmms= ${MODGETTEXT_RUN_DEPENDS}
|
2011-07-05 13:37:33 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
AUTOCONF_VERSION= 2.61
|
|
|
|
AUTOMAKE_VERSION= 1.9
|
2002-12-20 18:40:13 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2012-05-22 14:38:48 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
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
|
2011-07-05 13:37:33 -04:00
|
|
|
|
2011-10-17 06:38:41 -04:00
|
|
|
MULTI_PACKAGES=-main -xmms
|
2006-11-25 12:04:32 -05:00
|
|
|
|
2011-10-17 06:38:41 -04:00
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
|
|
|
|
.if ${BUILD_PACKAGES:M-xmms}
|
2011-07-05 13:37:33 -04:00
|
|
|
BUILD_DEPENDS+= audio/id3lib
|
2004-12-08 23:57:56 -05:00
|
|
|
CONFIGURE_ARGS+= --with-xmms
|
|
|
|
.endif
|
|
|
|
|
2012-05-22 14:38:48 -04:00
|
|
|
post-extract:
|
|
|
|
@mv ${WRKSRC}/frontend/faad.man ${WRKSRC}/frontend/faad.1
|
2006-11-25 12:04:32 -05:00
|
|
|
|
2002-11-13 12:50:13 -05:00
|
|
|
post-patch:
|
2011-07-05 13:37:33 -04:00
|
|
|
@cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
2012-05-22 14:38:48 -04:00
|
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} PATH=${PORTPATH} \
|
|
|
|
sh bootstrap
|
2004-12-13 00:40:55 -05:00
|
|
|
|
2002-11-13 12:50:13 -05:00
|
|
|
.include <bsd.port.mk>
|