forked from Lainports/freebsd-ports
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $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
|
|
|
|
LIB_DEPENDS= libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0
|
|
|
|
LIBNAME= libavbin.so.${PORTVERSION}
|
|
PLIST_FILES= include/avbin.h \
|
|
lib/${LIBNAME} \
|
|
lib/libavbin.so
|
|
USE_LDCONFIG= yes
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.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 <bsd.port.mk>
|