Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#823 closed defect (fixed)

graphics/gd2 does not build because of error

Reported by: darwin@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

The Portfile for gd2 includes a reinplace in the post-configure section in which the fields are reversed. In order to build properly, gd2 needs to have an -I/opt/local/include option included in the CPPFLAGS. The post-configure section attempts to add this, but the members of the regexp are reversed. Below is a Portfile which works for building gd2:

# $Id $

PortSystem 1.0

name gd2 version 2.0.15 distname gd-${version} categories graphics maintainers michaelm@… description GD creates PNG and JPEG images, among other formats master_sites http://www.boutell.com/gd/http/ checksums md5 6ededf633b4fd054662ec123c7825fbb depends_lib lib:libdl.1:dlcompat lib:libpng.3:libpng \

lib:libjpeg.62:jpeg lib:libfreetype.6:freetype \ lib:libX11.6:XFree86

patchfiles patch-configure post-configure {

reinplace "s|CPPFLAGS = |CPPFLAGS = -I${prefix}/include |" \

Makefile

reinplace "s|LDFLAGS = |LDFLAGS = -L${prefix}/lib |" \

Makefile

}

build.args CCLD="gcc -L./.libs"

long_description \ gd is a graphics library. It allows your code to quickly draw images \ complete with lines, arcs, text, multiple colors, cut and paste from \ other images, and flood fills, and write out the result as a .PNG file. \ This is particularly useful in World Wide Web applications, where .PNG \ is the format used for inline images. \ gd is not a paint program. If you are looking for a paint program, you \ are looking in the wrong place. If you are not a programmer, you are \ looking in the wrong place.

Change History (3)

comment:1 Changed 21 years ago by fkr@…

Resolution: fixed
Status: newclosed

fixed. thanks a lot.

comment:2 Changed 21 years ago by darwin@…

Keywords: VERIFIED added

Looks good...

post-configure { reinplace "s|CPPFLAGS = |CPPFLAGS = -I${prefix}/include |g" Makefile

reinplace "s|LDFLAGS = |LDFLAGS = -L${prefix}/libi |g"

comment:3 Changed 21 years ago by darwin@…

Keywords: VERIFIED removed
Note: See TracTickets for help on using tickets.