ports/104251: [PATCH] graphics/pixie: builds, but doesn't run
Sergey Zaharchenko
doublef-ctm at yandex.ru
Tue Oct 10 08:40:20 UTC 2006
>Number: 104251
>Category: ports
>Synopsis: [PATCH] graphics/pixie: builds, but doesn't run
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Oct 10 08:40:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Sergey Zaharchenko
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
Volgograd State Technical University
>Environment:
System: FreeBSD shark.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Thu Sep 14 16:32:04 MSD 2006 root at shark.localdomain:/var/obj/src/usr.src/sys/GENERIC i386
>Description:
The graphics/pixie port (used by other ports like graphics/makehuman)
builds and installs, but doesn't work correctly as it's misconfigured
and a shared library is missing.
>How-To-Repeat:
Install graphics/pixie and try running rndr. It will complain about
libcommon.so not being found. If you add it, it will complain about
not finding `display drivers' named `file', `framebuffer', or
whatever display you have in the .rib file, and the shaders you have
in the .rib file.
>Fix:
The following patch installs the `common' shlib and configures pixie so that
rndr can find the shaders, etc. it wants.
diff -ud pixie.orig/Makefile pixie/Makefile
--- pixie.orig/Makefile Sun Sep 3 11:35:51 2006
+++ pixie/Makefile Tue Oct 10 11:56:10 2006
@@ -28,8 +28,9 @@
CXXFLAGS="${CXXFLAGS} -O -fPIC -I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
LIBS="${PTHREAD_LIBS}"
+CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/${PORTNAME} --with-shaderdir=${PREFIX}/share/${PORTNAME}/shaders --with-modeldir=${PREFIX}/share/${PORTNAME} --with-texturedir=${PREFIX}/share/${PORTNAME} --with-proceduraldir=${PREFIX}/share/${PORTNAME} --with-displaysdir=${PREFIX}/lib/${PORTNAME}
USE_LDCONFIG= yes
-LDCONFIG_DIRS= %%PREFIX%%/lib/${PORTNAME}
+LDCONFIG_DIRS= ${PREFIX}/lib/${PORTNAME}
WRKSRC= ${WRKDIR}/Pixie
PIXIE_EXES= precomp rndr sdrc sdrinfo show texmake
@@ -68,7 +69,7 @@
# libs
# avoid conflicts by installing in separate dir
@${MKDIR} ${PREFIX}/lib/${PORTNAME}
-.for i in sdr ri
+.for i in sdr ri common
${INSTALL_DATA} ${WRKSRC}/src/${i}/.libs/lib${i}.a \
${PREFIX}/lib/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/src/${i}/.libs/lib${i}.so.0 \
Common subdirectories: pixie.orig/files and pixie/files
diff -ud pixie.orig/pkg-plist pixie/pkg-plist
--- pixie.orig/pkg-plist Tue Oct 10 12:09:26 2006
+++ pixie/pkg-plist Tue Oct 10 11:40:30 2006
@@ -12,6 +12,8 @@
include/pixie/shadeop.h
lib/pixie/file.so
lib/pixie/framebuffer.so
+lib/pixie/libcommon.so
+lib/pixie/libcommon.so.0
lib/pixie/libri.a
lib/pixie/libri.so
lib/pixie/libri.so.0
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list