#67255 closed defect (invalid)

libsdl12 writes wrong pkgconfig settings in sdl.pc

Reported by: barracuda156 Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: libsdl12

Description

libsdl12 installs into ${prefix}/libexec/libsdl12 but has the following in sdl.pc:

# sdl pkg-config source file

prefix=/opt/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

This can’t possibly work.

Change History (2)

comment:1 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Agreed. The install name is wrong too:

% otool -L /opt/local/libexec/libsdl12/lib/libSDL-1.2.0.dylib | head -n 2 
/opt/local/libexec/libsdl12/lib/libSDL-1.2.0.dylib:
	/opt/local/lib/libSDL-1.2.0.dylib (compatibility version 12.0.0, current version 12.5.0)

The port should probably tell the build system what places to install into at configure time rather than try to change it after the fact in the destroot phase.

comment:2 Changed 13 months ago by jmroot (Joshua Root)

Resolution: invalid
Status: assignedclosed

It's not incorrect, it's supposed to be used via the libsdl port.

Note: See TracTickets for help on using tickets.