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-09-25 12:22:32 -04:00
|
|
|
PORTVERSION= 0.60.20010920
|
2000-09-19 12:18:15 -04:00
|
|
|
CATEGORIES= graphics
|
2001-09-25 12:22:32 -04:00
|
|
|
MASTER_SITES= http://ernie.eit.uni-kl.de/avifile/
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
2000-09-19 12:18:15 -04:00
|
|
|
|
|
|
|
MAINTAINER= holger@eit.uni-kl.de
|
|
|
|
|
2001-09-25 12:22:32 -04:00
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
2001-04-09 07:55:04 -04:00
|
|
|
LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl12
|
2001-09-25 12:22:32 -04:00
|
|
|
.if !defined(WITHOUT_VORBIS)
|
|
|
|
LIB_DEPENDS+= ogg.2:${PORTSDIR}/audio/libogg \
|
|
|
|
vorbis.0:${PORTSDIR}/audio/libvorbis
|
|
|
|
.endif
|
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
|
2000-09-19 12:18:15 -04:00
|
|
|
|
2001-09-25 12:22:32 -04:00
|
|
|
USE_AUTOCONF= yes
|
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
|
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-09-25 12:22:32 -04:00
|
|
|
--enable-release --with-gnu-ld --enable-x86opt
|
2000-09-19 12:18:15 -04:00
|
|
|
|
2001-09-25 12:22:32 -04:00
|
|
|
PLIST_SUB= LIB_VERSION="${LIB_VERSION}" VERSION="${VERSION}"
|
|
|
|
.if defined(WITHOUT_VORBIS)
|
|
|
|
PLIST_SUB+= VORBIS="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= VORBIS=""
|
|
|
|
.endif
|
2001-02-12 21:41:23 -05:00
|
|
|
|
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-09-25 12:22:32 -04:00
|
|
|
LIB_VERSION= 3
|
|
|
|
VERSION= 0.6
|
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
|
2001-09-25 12:22:32 -04:00
|
|
|
FMT?= /usr/bin/fmt
|
2001-01-06 18:49:59 -05:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2000-10-09 11:52:17 -04:00
|
|
|
|
2001-09-25 12:22:32 -04:00
|
|
|
.if !defined(WITHOUT_VORBIS)
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} "You can disable vorbis support by defining WITHOUT_VORBIS."
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
|
|
|
post-install:
|
2001-02-12 21:41:23 -05:00
|
|
|
@${FMT} < ${PKGMESSAGE}
|
2000-10-09 11:52:17 -04:00
|
|
|
|
2001-01-06 18:49:59 -05:00
|
|
|
.include <bsd.port.post.mk>
|