openbsd-ports/audio/faad/Makefile

75 lines
1.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.43 2010/07/01 21:12:50 jasper Exp $
COMMENT-main= MPEG-2 and MPEG-4 AAC decoder
COMMENT-xmms= XMMS input plugin for AAC files
V= 2.6.1
DISTNAME= faad2-${V}
PKGNAME-main= faad-${V}p1
PKGNAME-xmms= faad-xmms-${V}p1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=faac/}
SHARED_LIBS += faad 2.0 # .0.0
SHARED_LIBS += mp4ff 1.0 # .0.0
HOMEPAGE= http://www.audiocoding.com/
# GPL
PERMIT_PACKAGE_CDROM= Patents
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Patents
PERMIT_DISTFILES_FTP= Yes
WANTLIB= m
# bootstrap checks for libtoolize
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS} \
::devel/libtool
2004-04-27 21:30:00 -04:00
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
AUTOMAKE_VERSION=1.9
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
2003-02-15 09:19:19 -05:00
LIBS="-lm" \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION}
2003-12-29 08:17:53 -05:00
PSEUDO_FLAVORS= no_xmms
FLAVOR?= no_xmms
2006-11-25 12:04:32 -05:00
MULTI_PACKAGES=-main
.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
CONFIGURE_ARGS+= --with-xmms
2006-11-25 12:04:32 -05:00
.else
CONFIGURE_ARGS+= --without-xmms
.endif
2006-11-25 12:04:32 -05:00
LIB_DEPENDS-xmms= xmms.>=3::audio/xmms \
faad,mp4ff::audio/faad
2006-11-25 12:04:32 -05:00
RUN_DEPENDS-xmms= ::audio/xmms
WANTLIB-xmms= ${WANTLIB} \
X11 Xau Xdmcp Xext Xi iconv intl glib \
gmodule gtk gdk pthread-stubs xcb
2006-11-25 12:04:32 -05:00
WANTLIB-main= ${WANTLIB} c
post-patch:
@cd ${WRKSRC} && AUTOCONF_VERSION=${AUTOCONF_VERSION} \
2005-01-11 02:16:01 -05:00
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} PATH=${PORTPATH} \
sh bootstrap
post-configure:
@cp ${WRKSRC}/config.h ${WRKSRC}/faadconfig.h
post-install:
@${INSTALL_DATA} ${WRKSRC}/faadconfig.h ${PREFIX}/include
@${INSTALL_DATA} ${WRKSRC}/common/mp4ff/mp4ff.h ${PREFIX}/include
@${INSTALL_DATA} ${WRKSRC}/common/mp4ff/mp4ff_int_types.h ${PREFIX}/include
.include <bsd.port.mk>