diff options
author | Sam James <sam@gentoo.org> | 2021-04-19 07:41:12 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-19 20:09:57 +0100 |
commit | 9e5a3843898a31a232494fa00a6daf0ecc55a688 (patch) | |
tree | b13c993b96036f0656a8d242096ad185dd339593 /media-libs/openctm | |
parent | media-gfx/xzgv: port to EAPI 7, respect ${PKG_CONFIG} (diff) | |
download | gentoo-9e5a3843898a31a232494fa00a6daf0ecc55a688.tar.gz gentoo-9e5a3843898a31a232494fa00a6daf0ecc55a688.tar.bz2 gentoo-9e5a3843898a31a232494fa00a6daf0ecc55a688.zip |
media-libs/openctm: respect ${PKG_CONFIG}, depend on pkgconfig, patch cleanup
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/openctm')
5 files changed, 11 insertions, 9 deletions
diff --git a/media-libs/openctm/files/openctm-1.0.3-do-not-set-rpath.patch b/media-libs/openctm/files/openctm-1.0.3-do-not-set-rpath.patch index e80e5cf34b4c..89a4575a139b 100644 --- a/media-libs/openctm/files/openctm-1.0.3-do-not-set-rpath.patch +++ b/media-libs/openctm/files/openctm-1.0.3-do-not-set-rpath.patch @@ -8,8 +8,8 @@ + $(CPP) -s -o $@ -L$(OPENCTMDIR) $(CTMCONVOBJS) -lopenctm -ltinyxml ctmviewer: $(CTMVIEWEROBJS) -- $(CPP) -s -o $@ -L$(OPENCTMDIR) $(CTMVIEWEROBJS) -Wl,-rpath,. -lopenctm -ltinyxml -ljpeg -lpnglite -lz -lglut -lGLU -lGLEW `pkg-config --libs gtk+-2.0` -+ $(CPP) -s -o $@ -L$(OPENCTMDIR) $(CTMVIEWEROBJS) -lopenctm -ltinyxml -ljpeg -lpnglite -lz -lglut -lGLU -lGLEW `pkg-config --libs gtk+-2.0` +- $(CPP) -s -o $@ -L$(OPENCTMDIR) $(CTMVIEWEROBJS) -Wl,-rpath,. -lopenctm -ltinyxml -ljpeg -lpnglite -lz -lglut -lGLU -lGLEW `${PKG_CONFIG} --libs gtk+-2.0` ++ $(CPP) -s -o $@ -L$(OPENCTMDIR) $(CTMVIEWEROBJS) -lopenctm -ltinyxml -ljpeg -lpnglite -lz -lglut -lGLU -lGLEW `${PKG_CONFIG} --libs gtk+-2.0` ctmbench: $(CTMBENCHOBJS) - $(CPP) -s -o $@ -L$(OPENCTMDIR) $(CTMBENCHOBJS) -Wl,-rpath,. -lopenctm diff --git a/media-libs/openctm/files/openctm-1.0.3-link-ctmviewer-only-with-necessary-gtk-libs.patch b/media-libs/openctm/files/openctm-1.0.3-link-ctmviewer-only-with-necessary-gtk-libs.patch index 370960721b5c..77512ba3c70c 100644 --- a/media-libs/openctm/files/openctm-1.0.3-link-ctmviewer-only-with-necessary-gtk-libs.patch +++ b/media-libs/openctm/files/openctm-1.0.3-link-ctmviewer-only-with-necessary-gtk-libs.patch @@ -4,7 +4,7 @@ $(CPP) -s -o $@ -L$(OPENCTMDIR) $(CTMCONVOBJS) -lopenctm -ltinyxml ctmviewer: $(CTMVIEWEROBJS) -- $(CPP) -s -o $@ -L$(OPENCTMDIR) $(CTMVIEWEROBJS) -lopenctm -ltinyxml -ljpeg -lpnglite -lz -lglut -lGLU -lGLEW `pkg-config --libs gtk+-2.0` +- $(CPP) -s -o $@ -L$(OPENCTMDIR) $(CTMVIEWEROBJS) -lopenctm -ltinyxml -ljpeg -lpnglite -lz -lglut -lGLU -lGLEW `${PKG_CONFIG} --libs gtk+-2.0` + $(CPP) -s -o $@ -L$(OPENCTMDIR) $(CTMVIEWEROBJS) -lopenctm \ + -ltinyxml -ljpeg -lpnglite -lz -lglut -lGLU -lGLEW \ + -lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 diff --git a/media-libs/openctm/files/openctm-1.0.3-respect-flags.patch b/media-libs/openctm/files/openctm-1.0.3-respect-flags.patch index 4a406d0caf88..753c820ff2da 100644 --- a/media-libs/openctm/files/openctm-1.0.3-respect-flags.patch +++ b/media-libs/openctm/files/openctm-1.0.3-respect-flags.patch @@ -39,8 +39,8 @@ RPLYDIR = rply -CPP = g++ --CPPFLAGS = -c -O3 -W -Wall `pkg-config --cflags gtk+-2.0` -I$(OPENCTMDIR) -I$(RPLYDIR) -I$(GLEWDIR) -+CXXFLAGS += -W -Wall `pkg-config --cflags gtk+-2.0` -I$(OPENCTMDIR) -I$(RPLYDIR) -I$(GLEWDIR) +-CPPFLAGS = -c -O3 -W -Wall `${PKG_CONFIG} --cflags gtk+-2.0` -I$(OPENCTMDIR) -I$(RPLYDIR) -I$(GLEWDIR) ++CXXFLAGS += -W -Wall `${PKG_CONFIG} --cflags gtk+-2.0` -I$(OPENCTMDIR) -I$(RPLYDIR) -I$(GLEWDIR) MESHOBJS = mesh.o meshio.o ctm.o ply.o rply.o stl.o 3ds.o dae.o obj.o lwo.o off.o wrl.o CTMCONVOBJS = ctmconv.o common.o systimer.o convoptions.o $(MESHOBJS) diff --git a/media-libs/openctm/files/openctm-1.0.3-use-system-libs.patch b/media-libs/openctm/files/openctm-1.0.3-use-system-libs.patch index e6d158c6c3b1..be2f9b65c14c 100644 --- a/media-libs/openctm/files/openctm-1.0.3-use-system-libs.patch +++ b/media-libs/openctm/files/openctm-1.0.3-use-system-libs.patch @@ -14,7 +14,7 @@ CPP = g++ -CPPFLAGS = -c -O3 -W -Wall `pkg-config --cflags gtk+-2.0` -I$(OPENCTMDIR) -I$(RPLYDIR) -I$(JPEGDIR) -I$(TINYXMLDIR) -I$(GLEWDIR) -I$(ZLIBDIR) -I$(PNGLITEDIR) -+CPPFLAGS = -c -O3 -W -Wall `pkg-config --cflags gtk+-2.0` -I$(OPENCTMDIR) -I$(RPLYDIR) -I$(GLEWDIR) ++CPPFLAGS = -c -O3 -W -Wall `${PKG_CONFIG} --cflags gtk+-2.0` -I$(OPENCTMDIR) -I$(RPLYDIR) -I$(GLEWDIR) MESHOBJS = mesh.o meshio.o ctm.o ply.o rply.o stl.o 3ds.o dae.o obj.o lwo.o off.o wrl.o CTMCONVOBJS = ctmconv.o common.o systimer.o convoptions.o $(MESHOBJS) @@ -39,7 +39,7 @@ -ctmconv: $(CTMCONVOBJS) $(TINYXMLDIR)/libtinyxml.a libopenctm.so - $(CPP) -s -o $@ -L$(OPENCTMDIR) -L$(TINYXMLDIR) $(CTMCONVOBJS) -Wl,-rpath,. -lopenctm -ltinyxml +ctmviewer: $(CTMVIEWEROBJS) -+ $(CPP) -s -o $@ -L$(OPENCTMDIR) $(CTMVIEWEROBJS) -Wl,-rpath,. -lopenctm -ltinyxml -ljpeg -lpnglite -lz -lglut -lGLU -lGLEW `pkg-config --libs gtk+-2.0` ++ $(CPP) -s -o $@ -L$(OPENCTMDIR) $(CTMVIEWEROBJS) -Wl,-rpath,. -lopenctm -ltinyxml -ljpeg -lpnglite -lz -lglut -lGLU -lGLEW `${PKG_CONFIG} --libs gtk+-2.0` -ctmviewer: $(CTMVIEWEROBJS) $(JPEGDIR)/libjpeg.a $(TINYXMLDIR)/libtinyxml.a $(ZLIBDIR)/libz.a libopenctm.so - $(CPP) -s -o $@ -L$(OPENCTMDIR) -L$(TINYXMLDIR) -L$(JPEGDIR) -L$(ZLIBDIR) $(CTMVIEWEROBJS) -Wl,-rpath,. -lopenctm -ltinyxml -ljpeg -lz -lglut -lGLU `pkg-config --libs gtk+-2.0` diff --git a/media-libs/openctm/openctm-1.0.3-r1.ebuild b/media-libs/openctm/openctm-1.0.3-r1.ebuild index e4014df8c998..c77dbee3d4ba 100644 --- a/media-libs/openctm/openctm-1.0.3-r1.ebuild +++ b/media-libs/openctm/openctm-1.0.3-r1.ebuild @@ -7,7 +7,7 @@ inherit edos2unix flag-o-matic toolchain-funcs MY_P=OpenCTM-${PV} -DESCRIPTION="OpenCTM - the Open Compressed Triangle Mesh." +DESCRIPTION="OpenCTM - the Open Compressed Triangle Mesh" HOMEPAGE="http://openctm.sourceforge.net" SRC_URI="https://downloads.sourceforge.net/project/openctm/${MY_P}/${MY_P}-src.tar.bz2 -> ${P}-src.tar.bz2" S="${WORKDIR}/${MY_P}" @@ -16,7 +16,6 @@ LICENSE="GPL-2" SLOT="0/1" KEYWORDS="~amd64 ~x86" -IUSE="" DEPEND=" dev-libs/tinyxml media-libs/freeglut @@ -28,6 +27,7 @@ DEPEND=" x11-libs/gtk+:2 " RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" PATCHES=( "${FILESDIR}/${P}-escape-hyphens-in-ctmconv-man-page.patch" @@ -49,6 +49,8 @@ src_prepare() { } src_compile() { + tc-export PKG_CONFIG + emake CC=$(tc-getCC) CXX="$(tc-getCXX)" -f Makefile.linux } |