From owner-freebsd-ports Mon Oct 21 16:10: 8 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC50937B401 for ; Mon, 21 Oct 2002 16:10:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CFAD43E4A for ; Mon, 21 Oct 2002 16:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9LNA1x3053122 for ; Mon, 21 Oct 2002 16:10:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9LNA1pv053120; Mon, 21 Oct 2002 16:10:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A3F537B40A for ; Mon, 21 Oct 2002 16:01:48 -0700 (PDT) Received: from knight.volant.org (knight.volant.org [207.111.218.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAD5C43E6A for ; Mon, 21 Oct 2002 16:01:47 -0700 (PDT) (envelope-from patl@knight.volant.org) Received: (from patl@localhost) by knight.volant.org (8.11.6/8.11.6) id g9LN1gD40088; Mon, 21 Oct 2002 16:01:42 -0700 (PDT) (envelope-from patl) Message-Id: <200210212301.g9LN1gD40088@knight.volant.org> Date: Mon, 21 Oct 2002 16:01:42 -0700 (PDT) From: Pat Lashley Reply-To: Pat Lashley To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/44362: MPlayer port provides no mechanism to enable Freetype support Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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