2314c85f45
zap default spec that are not needed convert libspecs as well convert p* to REVISION. No package changes
77 lines
1.9 KiB
Makefile
77 lines
1.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.46 2010/11/15 00:22:46 espie 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}
|
|
REVISION-main= 1
|
|
PKGNAME-xmms= faad-xmms-${V}
|
|
REVISION-xmms= 1
|
|
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
|
|
USE_GMAKE= Yes
|
|
USE_LIBTOOL= Yes
|
|
|
|
WRKDIST= ${WRKDIR}/faad2
|
|
CONFIGURE_STYLE= automake
|
|
AUTOCONF_VERSION=2.59
|
|
AUTOMAKE_VERSION=1.9
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
LIBS="-lm" \
|
|
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION}
|
|
|
|
PSEUDO_FLAVORS= no_xmms
|
|
FLAVOR?= no_xmms
|
|
MULTI_PACKAGES=-main
|
|
|
|
.if !${FLAVOR:L:Mno_xmms}
|
|
MULTI_PACKAGES+=-xmms
|
|
BUILD_DEPENDS+= audio/id3lib
|
|
CONFIGURE_ARGS+= --with-xmms
|
|
.else
|
|
CONFIGURE_ARGS+= --without-xmms
|
|
.endif
|
|
|
|
LIB_DEPENDS-xmms= audio/xmms \
|
|
audio/faad
|
|
RUN_DEPENDS-xmms= audio/xmms
|
|
WANTLIB-xmms= ${WANTLIB} \
|
|
X11 Xau Xdmcp Xext Xi iconv intl glib \
|
|
gmodule gtk gdk pthread-stubs xcb \
|
|
xmms>=3 faad mp4ff
|
|
WANTLIB-main= ${WANTLIB} c
|
|
|
|
post-patch:
|
|
@cd ${WRKSRC} && AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
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>
|