[Bug 678955] Review Request: opencsg - Library for Constructive Solid Geometry using OpenGL
bugzilla at redhat.com
bugzilla at redhat.com
Wed Nov 23 22:20:52 UTC 2011
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=678955
--- Comment #16 from Jerry James <loganjerry at gmail.com> 2011-11-23 17:20:50 EST ---
Hmmm, I still don't understand qmake. But there's another solution. The
original makefiles just need a few small tweaks to solve this problem. Also,
%{?_smp_mflags} made rpmbuild try to build the examples before the library was
built, so I removed it. I replaced your %prep and %build sections with these:
------------------------------------------------------------------------------
%prep
%setup -q -n OpenCSG-%{version}
# Use Fedora's glew
rm -rf glew/
sed -i 's/glew //' Makefile
# Get rid of an undesirable rpath, link with libGLEW, and use Fedora's CFLAGS
sed -e "s/,libopencsg\.so\.1.*/,libopencsg.so.1 -Wl,--as-needed/" \
-e "s/-pipe -Wall -W -O2/$RPM_OPT_FLAGS/" \
-e "s/-lGLU/-lGLU -lGLEW/" \
-i src/Makefile
sed -i "s/-pipe -Wall -W -O2/$RPM_OPT_FLAGS/" example/Makefile
%build
make
------------------------------------------------------------------------------
and that seemed to work for me. What do you think of that approach?
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the package-review
mailing list