Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2002 16:01:42 -0700 (PDT)
From:      Pat Lashley <patl+freebsd@volant.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/44362: MPlayer port provides no mechanism to enable Freetype support
Message-ID:  <200210212301.g9LN1gD40088@knight.volant.org>

next in thread | raw e-mail | index | archive | help

>Number:         44362
>Category:       ports
>Synopsis:       MPlayer port provides no mechanism to enable Freetype support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 21 16:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Pat Lashley
>Release:        FreeBSD 4.7-RC i386
>Organization:
>Environment:
System: FreeBSD knight.volant.org 4.7-RC FreeBSD 4.7-RC #0: Thu Oct 10 16:02:40 PDT 2002 root@knight.volant.org:/d2/usr.obj/usr/src/sys/KNIGHT i386


>Description:
	The basic MPlayer build includes optional support for using
	Freetype version 2.0.9 or later; however it is disabled by
	default.  The mplayer port's Makefile has mechanisms to enable
	various of the other optional support packages; but no way
	to enable freetype.
>How-To-Repeat:

>Fix:

	The patch below adds optional freetype support to the mplayer
	port's Makefile; following that file's apparent philosophy of
	'if it is already installed, use it; and if it isn't, provide
	a knob to make it a dependancy'.

--- Makefile.orig	Mon Oct 21 15:04:32 2002
+++ Makefile	Mon Oct 21 15:41:18 2002
@@ -83,6 +83,10 @@
 WITH_LIVEMEDIA=	yes
 .endif
 
+.if exists(${LOCALBASE}/lib/libfreetype.so.9)
+WITH_FREETYPE=	yes
+.endif
+
 .if defined(WITH_OPTIMIZED_CFLAGS)
 CFLAGS+=       -O3 -ffast-math -fomit-frame-pointer
 .endif
@@ -140,6 +144,14 @@
 CONFIGURE_ARGS+=--enable-xanim --with-xanimlibdir=${X11BASE}/lib/X11/xanim
 .else
 CONFIGURE_ARGS+=--disable-xanim
+.endif
+
+.if defined(WITH_FREETYPE)
+CONFIGURE_ARGS+=--with-extraincdir=${LOCALBASE}/include/freetype2
+CONFIGURE_ARGS+=--enable-freetype
+LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
+.else
+CONFIGURE_ARGS+=--disable-freetype
 .endif
 
 # "enable" build for other archs



>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210212301.g9LN1gD40088>