2000-09-19 12:18:15 -04:00
|
|
|
# New ports collection makefile for: avifile
|
|
|
|
# Date created: 16 September 2000
|
|
|
|
# Whom: Holger Lamm
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= avifile
|
2001-05-23 02:30:25 -04:00
|
|
|
PORTVERSION= 0.60.20010429
|
2001-06-08 09:11:07 -04:00
|
|
|
PORTREVISION= 1
|
2000-09-19 12:18:15 -04:00
|
|
|
CATEGORIES= graphics
|
2000-10-09 11:52:17 -04:00
|
|
|
MASTER_SITES= http://ernie.eit.uni-kl.de/avifile/ \
|
|
|
|
http://divx.euro.ru/ \
|
|
|
|
http://www.toon.eu.org/divx/
|
|
|
|
DISTFILES= avifile-${PORTVERSION}.tar.gz \
|
2000-09-19 12:18:15 -04:00
|
|
|
|
|
|
|
MAINTAINER= holger@eit.uni-kl.de
|
|
|
|
|
2001-04-09 07:55:04 -04:00
|
|
|
LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl12
|
2001-02-12 21:41:23 -05:00
|
|
|
RUN_DEPENDS= ${CODEC_DETECTION_FILE}:${CODEC_PORT}
|
2000-10-09 11:52:17 -04:00
|
|
|
|
2001-01-16 12:33:20 -05:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2001-04-03 04:14:43 -04:00
|
|
|
USE_QT_VER= 2
|
2000-09-19 12:18:15 -04:00
|
|
|
USE_XLIB= yes
|
2000-10-09 11:52:17 -04:00
|
|
|
USE_GMAKE= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
2001-05-23 02:30:25 -04:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-0.6
|
|
|
|
LDCONFIG_DIRS= %%PREFIX%%/lib/avifile
|
2000-09-19 12:18:15 -04:00
|
|
|
|
2001-05-23 02:30:25 -04:00
|
|
|
USE_AUTOMAKE= yes
|
2001-01-06 18:49:59 -05:00
|
|
|
USE_LIBTOOL= yes
|
2001-05-23 02:30:25 -04:00
|
|
|
LIBTOOLFILES= acinclude.m4
|
|
|
|
# GNU_CONFIGURE= yes
|
2000-09-19 12:18:15 -04:00
|
|
|
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \
|
2001-01-06 18:49:59 -05:00
|
|
|
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib"
|
2001-04-03 04:14:43 -04:00
|
|
|
CONFIGURE_ARGS= --with-win32-path=${LOCALBASE}/lib/win32 \
|
2001-05-23 02:30:25 -04:00
|
|
|
--enable-release --with-gnu-ld
|
|
|
|
|
2001-01-06 18:49:59 -05:00
|
|
|
PLIST_SUB= LIB_VERSION="${LIB_VERSION}"
|
2000-09-19 12:18:15 -04:00
|
|
|
|
2001-02-12 21:41:23 -05:00
|
|
|
FMT= /usr/bin/fmt
|
|
|
|
|
2001-02-13 00:15:43 -05:00
|
|
|
#CODEC_PORT= ${PORTSDIR}/graphics/win32-codecs
|
|
|
|
CODEC_PORT= ${.CURDIR}/../win32-codecs
|
|
|
|
CODEC_DETECTION_FILE!= ${MAKE} -f ${CODEC_PORT}/Makefile -V CODEC_DETECTION_FILE
|
2001-02-12 21:41:23 -05:00
|
|
|
|
2001-01-06 18:49:59 -05:00
|
|
|
LIB_VERSION= 0
|
|
|
|
# Adhoc fix. First part.
|
|
|
|
# qt is there but configure is not finding it
|
|
|
|
# Therefore, it is avoiding this directories
|
|
|
|
# At least, on lioux's homesystem with qt 2.2.3
|
2001-05-23 02:30:25 -04:00
|
|
|
EXTRA_BUILD_DIR= player samples/misc samples/qtrecompress
|
2000-10-09 11:52:17 -04:00
|
|
|
|
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
2001-01-06 18:49:59 -05:00
|
|
|
DIFF?= /usr/bin/diff
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2000-10-09 11:52:17 -04:00
|
|
|
|
2001-05-23 02:30:25 -04:00
|
|
|
pre-extract:
|
2001-06-08 09:11:07 -04:00
|
|
|
@if [ -f ${LOCALBASE}/lib/libpth.so ]; then \
|
|
|
|
${ECHO_MSG} "Error: This packet does not compile when the \
|
|
|
|
packet 'pth' is installed.";\
|
|
|
|
${FALSE};\
|
|
|
|
fi
|
2001-05-23 02:30:25 -04:00
|
|
|
do-configure:
|
|
|
|
(cd ${WRKSRC} && aclocal && ./autogen.sh &&\
|
|
|
|
${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS})
|
2001-01-06 18:49:59 -05:00
|
|
|
# Libtool fix code kindly provided by Mr. Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
post-configure:
|
|
|
|
@${PERL} -pi -e \
|
|
|
|
's|^deplibs_check_method=.*|deplibs_check_method=pass_all|' \
|
|
|
|
${WRKSRC}/libtool
|
2000-10-09 11:52:17 -04:00
|
|
|
|
2001-01-06 18:49:59 -05:00
|
|
|
post-build:
|
|
|
|
.for dir in ${EXTRA_BUILD_DIR}
|
|
|
|
(cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${GMAKE})
|
|
|
|
.endfor
|
2000-10-09 11:52:17 -04:00
|
|
|
|
|
|
|
post-install:
|
2001-02-12 21:41:23 -05:00
|
|
|
@${FMT} < ${PKGMESSAGE}
|
2001-01-06 18:49:59 -05:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/lib/libaviplay.la ${PREFIX}/lib
|
2001-05-23 02:30:25 -04:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/plugins/libaudiodec/libaudiodec.la ${PREFIX}/lib/avifile
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/plugins/libmp3lame_audioenc/libmp3lame_audioenc.la ${PREFIX}/lib/avifile
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/plugins/libmpeg_audiodec/libmpeg_audiodec.la ${PREFIX}/lib/avifile
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/plugins/libwin32/libwin32.la ${PREFIX}/lib/avifile
|
|
|
|
# @${LN} -sf libaviplay.so.${LIB_VERSION} ${PREFIX}/lib/libaviplay.so
|
2001-01-06 18:49:59 -05:00
|
|
|
# Adhoc fix. Second part.
|
|
|
|
# Install the missed applications.
|
|
|
|
.if exists(${PREFIX}/bin/aviplay)
|
|
|
|
${DIFF} ${WRKSRC}/player/.libs/aviplay ${PREFIX}/bin > /dev/null || \
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/player/.libs/aviplay \
|
|
|
|
${PREFIX}/bin
|
|
|
|
.else
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/player/.libs/aviplay ${PREFIX}/bin
|
|
|
|
.endif
|
|
|
|
.if exists(${PREFIX}/bin/benchmark)
|
2001-05-23 02:30:25 -04:00
|
|
|
${DIFF} ${WRKSRC}/samples/misc/.libs/benchmark \
|
2001-01-06 18:49:59 -05:00
|
|
|
${PREFIX}/bin > /dev/null || \
|
|
|
|
${INSTALL_PROGRAM} \
|
2001-05-23 02:30:25 -04:00
|
|
|
${WRKSRC}/samples/misc/.libs/benchmark \
|
2001-01-06 18:49:59 -05:00
|
|
|
${PREFIX}/bin
|
|
|
|
.else
|
2001-05-23 02:30:25 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/samples/misc/.libs/benchmark \
|
2001-01-06 18:49:59 -05:00
|
|
|
${PREFIX}/bin
|
|
|
|
.endif
|
|
|
|
.if exists(${PREFIX}/bin/qtrecompress)
|
|
|
|
${DIFF} ${WRKSRC}/samples/qtrecompress/.libs/qtrecompress \
|
|
|
|
${PREFIX}/bin > /dev/null || \
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/samples/qtrecompress/.libs/qtrecompress ${PREFIX}/bin
|
|
|
|
.else
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/samples/qtrecompress/.libs/qtrecompress \
|
|
|
|
${PREFIX}/bin
|
|
|
|
.endif
|
2000-10-09 11:52:17 -04:00
|
|
|
|
2001-01-06 18:49:59 -05:00
|
|
|
.include <bsd.port.post.mk>
|