From owner-freebsd-ports@FreeBSD.ORG Thu Jul 10 11:34:47 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 719F837B401; Thu, 10 Jul 2003 11:34:47 -0700 (PDT) Received: from mta4.rcsntx.swbell.net (mta4.rcsntx.swbell.net [151.164.30.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9026243F75; Thu, 10 Jul 2003 11:34:46 -0700 (PDT) (envelope-from noackjr@alumni.rice.edu) Received: from optimator.noacks.org (adsl-65-71-32-219.dsl.hstntx.swbell.net [65.71.32.219])h6AIYie1006544; Thu, 10 Jul 2003 13:34:44 -0500 (CDT) Received: from alumni.rice.edu (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id 38539CA; Thu, 10 Jul 2003 13:34:44 -0500 (CDT) Message-ID: <3F0DB1C1.3060202@alumni.rice.edu> Date: Thu, 10 Jul 2003 13:34:41 -0500 From: Jon Noack User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: daichi References: <3F0C5447.5000407@alumni.rice.edu> <20030710133641.7dd2bfb7.daichi@freebsd.org> <3F0D0E81.4040305@alumni.rice.edu> <20030710173043.3328041a.daichi@freebsd.org> <3F0D2D3D.1030208@alumni.rice.edu> <20030710214335.68521a47.daichi@freebsd.org> In-Reply-To: <20030710214335.68521a47.daichi@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: ports@freebsd.org Subject: Re: gd-nox11-2.0.15 (graphics/gd-nox11) won't build X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2003 18:34:47 -0000 That did it -- worked on 4.8-RELEASE, 4.8-STABLE, and 5.1-RELEASE. Thanks! Jon Noack daichi said the following on 7/10/2003 7:43 AM: > Hi Jon > > Please try follow patch and report me your result. I think that > your problem depends on your CFLAGS's value of /etc/make.conf. > > > diff -urN /usr/ports/graphics/gd2/Makefile graphics/gd2/Makefile > --- /usr/ports/graphics/gd2/Makefile Thu Jul 10 21:25:03 2003 > +++ graphics/gd2/Makefile Thu Jul 10 21:30:17 2003 > @@ -22,34 +22,29 @@ > > LATEST_LINK= gd2 > > -MAKE_ENV= WRKSRC="${WRKSRC}" LDADD="${LDADD}" > +MAKE_ENV= WRKSRC="${WRKSRC}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" > MAKEFILE= ${FILESDIR}/Makefile.bsd > INSTALLS_SHLIB= yes > > -CFLAGS+= -I${WRKSRC} -I${LOCALBASE}/include/freetype2/freetype \ > - -I${LOCALBASE}/include/freetype2 -I${LOCALBASE}/include \ > - -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DHAVE_LIBZ > -LDADD= -L${LOCALBASE}/lib -lpng -lz -ljpeg -lfreetype -lm > - > .include > > .if defined(WITHOUT_X11) || defined(WITHOUT_XPM) > PKGNAMESUFFIX= -nox11 > .if !defined(WITHOUT_XPM) > LIB_DEPENDS+= Xpm:${PORTSDIR}/graphics/xpm > -CFLAGS+= -I${X11BASE}/include/X11 -I${X11BASE}/include -DHAVE_LIBXPM \ > +CPPFLAGS+= -I${X11BASE}/include/X11 -I${X11BASE}/include -DHAVE_LIBXPM \ > -DXPM_NOX > -LDADD+= -L${X11BASE}/lib -lXpm > +LDFLAGS+= -L${X11BASE}/lib -lXpm > .endif > .else > USE_XPM= yes > -CFLAGS+= -I${X11BASE}/include/X11 -I${X11BASE}/include -DHAVE_LIBXPM > -LDADD+= -L${X11BASE}/lib -lXpm -lX11 > +CPPFLAGS+= -I${X11BASE}/include/X11 -I${X11BASE}/include -DHAVE_LIBXPM > +LDFLAGS+= -L${X11BASE}/lib -lXpm -lX11 > .endif > > .if defined(WITH_LZW) || defined(HAVE_UNISYS_LICENSE) || \ > (defined(USA_RESIDENT) && ${USA_RESIDENT} == "YES") > -CFLAGS+= -DLZW_LICENSED > +CPPFLAGS+= -DLZW_LICENSED > .endif > > .if defined(GD_FONTS) > diff -urN /usr/ports/graphics/gd2/files/Makefile.bsd graphics/gd2/files/Makefile.bsd > --- /usr/ports/graphics/gd2/files/Makefile.bsd Thu Jul 10 21:25:03 2003 > +++ graphics/gd2/files/Makefile.bsd Thu Jul 10 21:24:28 2003 > @@ -18,6 +18,13 @@ > SHLIB_NAME!= ${MAKE} -V SHLIB_NAME LIB=${LIB} \ > SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} -f ${MAKEDIR}/bsd.lib.mk > > +CFLAGS+= -I${.CURDIR} -I${LOCALBASE}/include/freetype2/freetype \ > + -I${LOCALBASE}/include/freetype2 -I${LOCALBASE}/include \ > + -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DHAVE_LIBZ \ > + ${CPPFLAGS} > +LDADD= -L${LOCALBASE}/lib -lpng -lz -ljpeg -lfreetype -lm \ > + ${LDFLAGS} > + > # The package comes with tests, but without any sort of test-harness, > # to run them all automaticly. So building tests is disabled here. -mi > all: lib${LIB}.a ${SHLIB_NAME} ${PROGS} # ${TESTS} > > -- > Daichi GOTO, http://people.freebsd.org/~daichi > >