diff options
-rw-r--r-- | multimedia/libmatroska/Makefile | 25 | ||||
-rw-r--r-- | multimedia/libmatroska/distinfo | 2 | ||||
-rw-r--r-- | textproc/libebml/Makefile | 11 | ||||
-rw-r--r-- | textproc/libebml/distinfo | 2 |
4 files changed, 33 insertions, 7 deletions
diff --git a/multimedia/libmatroska/Makefile b/multimedia/libmatroska/Makefile index 5a9de54bfc2d..26591467cf98 100644 --- a/multimedia/libmatroska/Makefile +++ b/multimedia/libmatroska/Makefile @@ -6,7 +6,7 @@ # PORTNAME= libmatroska -PORTVERSION= 0.4.2 +PORTVERSION= 0.4.3 CATEGORIES= multimedia audio MASTER_SITES= http://matroska.sourceforge.net/downloads/ @@ -16,7 +16,6 @@ COMMENT= Extensible Multimedia Container Format BUILD_DEPENDS= ${LOCALBASE}/lib/libebml.a:${PORTSDIR}/textproc/libebml USE_BZIP2= yes -USE_GCC= 3.1 USE_GMAKE= yes USE_REINPLACE= yes BUILD_WRKSRC= ${WRKSRC}/make/linux @@ -44,4 +43,24 @@ do-configure: s,^(INSTALL_OPTS_LIB|INSTALL_OPTS)[[:space:]]*=.*$$,\1=${INSTALL_DATA},' \ ${WRKSRC}/make/linux/Makefile -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +# this is gcc 2.x +CFLAGS+= -DNO_WSTRING +.endif + +.if exists(${LOCALBASE}/bin/gcc32) +WITH_GCC_32= yes +.else if exists(${LOCALBASE}/bin/gcc31) +WITH_GCC_31= yes +.endif + +# prefer 3.2 over 3.1 +.if defined (WITH_GCC_31) +USE_GCC=3.1 +.else +USE_GCC=3.2 +.endif + +.include <bsd.port.post.mk> diff --git a/multimedia/libmatroska/distinfo b/multimedia/libmatroska/distinfo index 1b04024afcd1..349a0741e58e 100644 --- a/multimedia/libmatroska/distinfo +++ b/multimedia/libmatroska/distinfo @@ -1 +1 @@ -MD5 (libmatroska-0.4.2.tar.bz2) = 4cb382fd5d2bbc64622fc75d50096216 +MD5 (libmatroska-0.4.3.tar.bz2) = a0597e3b3991a03fd91f1fa1479c3892 diff --git a/textproc/libebml/Makefile b/textproc/libebml/Makefile index efbb431ffe91..db70f6d77334 100644 --- a/textproc/libebml/Makefile +++ b/textproc/libebml/Makefile @@ -6,7 +6,7 @@ # PORTNAME= libebml -PORTVERSION= 0.4.2 +PORTVERSION= 0.4.3 CATEGORIES= textproc MASTER_SITES= http://matroska.sourceforge.net/downloads/ @@ -32,4 +32,11 @@ do-configure: s,^(INSTALL_OPTS_LIB|INSTALL_OPTS)[[:space:]]*=.*$$,\1=${INSTALL_DATA},' \ ${WRKSRC}/make/linux/Makefile -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +# this is gcc 2.x +CFLAGS+= -DNO_WSTRING +.endif + +.include <bsd.port.post.mk> diff --git a/textproc/libebml/distinfo b/textproc/libebml/distinfo index 554fbd6ca3a6..1c546c5cf8f0 100644 --- a/textproc/libebml/distinfo +++ b/textproc/libebml/distinfo @@ -1 +1 @@ -MD5 (libebml-0.4.2.tar.bz2) = d07a4b9323e615d320c0460ce1b69009 +MD5 (libebml-0.4.3.tar.bz2) = 835f215d5ef9cab9187f5e4114c7f775 |