From owner-freebsd-ports Fri Jul 12 4: 0:25 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 EA82037B401 for ; Fri, 12 Jul 2002 04:00:16 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD34643E70 for ; Fri, 12 Jul 2002 04:00:13 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6CB07JU084008 for ; Fri, 12 Jul 2002 04:00:07 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6CB07PD084007; Fri, 12 Jul 2002 04:00:07 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D41737B400 for ; Fri, 12 Jul 2002 03:59:31 -0700 (PDT) Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAFAB43E31 for ; Fri, 12 Jul 2002 03:59:30 -0700 (PDT) (envelope-from edwin@mavetju.org) Received: from k7.mavetju (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 131FA2B8D3; Fri, 12 Jul 2002 12:59:24 +0200 (CEST) Received: by k7.mavetju (Postfix, from userid 1001) id 50DA06A711E; Fri, 12 Jul 2002 20:59:09 +1000 (EST) Message-Id: <20020712105909.50DA06A711E@k7.mavetju> Date: Fri, 12 Jul 2002 20:59:09 +1000 (EST) From: Edwin Groothuis Reply-To: Edwin Groothuis To: FreeBSD-gnats-submit@FreeBSD.org Cc: JY , David Turnbull X-Send-Pr-Version: 3.113 Subject: ports/40479: [patch] graphics/gd2 doesn't compile on 4.6 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: 40479 >Category: ports >Synopsis: [patch] graphics/gd2 doesn't compile on 4.6 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 12 04:00:04 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Edwin Groothuis >Release: FreeBSD 4.5-RELEASE i386 >Organization: - >Environment: $FreeBSD: ports/graphics/gd2/Makefile,v 1.52 2002/05/21 07:41:54 ijliao Exp $ >Description: graphics/gd2 refuses to compile under 4.6 (it does under 4.5). Message? It can't find bsd.lib.mk. Why? No idea. It's there, it just doesn't include it. >How-To-Repeat: cd /usr/ports/graphics/gd2 make >Fix: A patch for it is attached. I don't know why /usr/share/mk isn't taken as default for it. --- graphics/gd2/files/Makefile.bsd-old Tue May 21 19:20:04 2002 +++ graphics/gd2/files/Makefile.bsd Fri Jul 12 20:43:01 2002 @@ -8,7 +8,8 @@ INCS= gd.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h \ gdfonts.h gdfontt.h SHLIB_NAME!= make -V SHLIB_NAME LIB=${LIB} \ - SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} -f bsd.lib.mk + SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} \ + -f /usr/share/mk/bsd.lib.mk CFLAGS+=-I${.CURDIR} -I${LOCALBASE}/include/freetype2/ \ -I${LOCALBASE}/include/freetype2/freetype -I${LOCALBASE}/include \ @@ -33,17 +34,17 @@ make LIB=${LIB} SRCS="${SRCS}" \ SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} \ CFLAGS="${CFLAGS}" -ECFLAGS LDADD="${LDADD}" \ - -f bsd.lib.mk ${.TARGET} + -f /usr/share/mk/bsd.lib.mk ${.TARGET} ${PROGS} ${TESTS}: ${SHLIB_NAME} lib${LIB}.a make PROG=${.TARGET} NOMAN=1 LDADD="-L. -lgd" \ - CFLAGS="${CFLAGS}" -ECFLAGS -f bsd.prog.mk + CFLAGS="${CFLAGS}" -ECFLAGS -f /usr/share/mk/bsd.prog.mk install: mkdir -p ${PREFIX}/include make LIB=${LIB} LIBDIR=${PREFIX}/lib NOPROFILE=true \ SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} \ - -f bsd.lib.mk install + -f /usr/share/mk/bsd.lib.mk install cd ${.CURDIR} && ${INSTALL_DATA} ${INCS} ${PREFIX}/include cd ${.CURDIR} && ${INSTALL_PROGRAM} ${PROGS} ${PREFIX}/bin/ ${INSTALL_SCRIPT} ${.CURDIR}/bdftogd ${PREFIX}/bin/ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message