freebsd-ports/multimedia/mkvtoolnix/Makefile
Mario Sergio Fujikawa Ferreira 8b04c891a8 o Play nice in FreeBSD series before 5.x, defaulting on all mkvtoolnix
dependencies (them and it at the same time) to USE_GCC=2.95 is
  enough
o The requirement on gcc 3.x on one of the dependencies was removed
  and I forgot to check yet another variation

PR:		63581
Submitted by:	michael johnson <ahze@ahze.net>
2004-03-14 10:22:53 +00:00

57 lines
1.4 KiB
Makefile

# New ports collection makefile for: mkvtoolnix
# Date created: Tue Feb 24 02:09:12 UTC 2004
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mkvtoolnix
PORTVERSION= 0.8.5
PORTREVISION= 1
CATEGORIES= multimedia audio
MASTER_SITES= http://www.bunkus.org/videotools/mkvtoolnix/sources/
MAINTAINER= lioux@FreeBSD.org
COMMENT= Tools to extract from/get info about/create Matroska media streams
BUILD_DEPENDS= ${LOCALBASE}/lib/libmatroska.a:${PORTSDIR}/multimedia/libmatroska \
${LOCALBASE}/lib/libebml.a:${PORTSDIR}/textproc/libebml
LIB_DEPENDS= FLAC.5:${PORTSDIR}/audio/flac \
vorbis.3:${PORTSDIR}/audio/libvorbis
USE_BZIP2= yes
USE_REINPLACE= yes
USE_SIZE= yes
USE_ICONV= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-extra-includes=${LOCALBASE}/include \
--with-extra-libs=${LOCALBASE}/lib
MAN1= base64tool.1 mkvextract.1 mkvinfo.1 mkvmerge.1 mmg.1
post-patch:
# disable GNU auto* tools
@${FIND} ${WRKSRC} -type f -name "Makefile.in" | ${XARGS} \
-n 10 ${REINPLACE_CMD} -E -e \
's!^(ACLOCAL|AUTOCONF|AUTOMAKE|AUTOHEADER).+$$!\1=${TRUE}!'
.include <bsd.port.pre.mk>
# gcc 3.2 was available on 5.x before this OSVERSION
# do not build gcc 3.3 unless necessary
.if ${OSVERSION} < 501103
# use gcc 3.2
USE_GCC=3.2
.else
# default for 5.x series
USE_GCC=3.3
.endif
.if ${OSVERSION} < 500000
USE_GCC=2.95
# this is gcc 2.x
CFLAGS+= -DNO_WSTRING
.endif
.include <bsd.port.post.mk>