# Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= avbin PORTVERSION= 7 PORTREVISION= 7 CATEGORIES= multimedia MASTER_SITES= GOOGLE_CODE http://mirror.amdmi3.ru/distfiles/ DISTNAME= ${PORTNAME}-src-${PORTVERSION} MAINTAINER= amdmi3@FreeBSD.org COMMENT= FFmpeg wrapper BROKEN= Unfetchable (google code has gone away) LIB_DEPENDS= libavcodec0.so:multimedia/ffmpeg0 LIBNAME= libavbin.so.${PORTVERSION} PLIST_FILES= include/avbin.h \ lib/${LIBNAME} \ lib/libavbin.so USE_LDCONFIG= yes PORTDOCS= * OPTIONS_DEFINE= DOCS .include .if ${ARCH} == "amd64" || ${ARCH} == "ia64" CFLAGS+= -fPIC .endif do-build: cd ${WRKSRC} && \ ${CC} ${CFLAGS} -shared -Wl,-soname,${LIBNAME} -o ${LIBNAME} \ src/avbin.c -Iinclude -I${LOCALBASE}/include/ffmpeg0 -I${LOCALBASE}/include \ -DAVBIN_VERSION=${PORTVERSION} -DFFMPEG_REVISION=0 \ -L${LOCALBASE}/lib/ffmpeg0 -L${LOCALBASE}/lib \ -lavcodec0 -lavformat0 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${LIBNAME} ${STAGEDIR}${PREFIX}/lib/ ${LN} -s ${LIBNAME} ${STAGEDIR}${PREFIX}/lib/libavbin.so ${INSTALL_DATA} ${WRKSRC}/include/avbin.h ${STAGEDIR}${PREFIX}/include/ cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/ .include