Skip to content

Commit

Permalink
media-libs/glm: respect EPREFIX
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Alfredo Tupone <[email protected]>
  • Loading branch information
atupone committed Sep 10, 2019
1 parent c301566 commit 19fd8f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prefix=/usr
prefix=@CMAKE_INSTALL_PREFIX@
includedir=${prefix}/include

Name: GLM
Description: OpenGL Mathematics
Version: 0.9.9
Version: @GLM_VERSION@
Cflags: -I${includedir}
10 changes: 9 additions & 1 deletion media-libs/glm/glm-0.9.9.6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ IUSE="test cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_avx cpu_flags_x86

RDEPEND="virtual/opengl"

src_prepare() {
cmake-utils_src_prepare
sed \
-e "s:@CMAKE_INSTALL_PREFIX@:${EPREFIX}/usr:" \
-e "s:@GLM_VERSION@:0.9.9:" \
"${FILESDIR}"/glm.pc.in > glm.pc || die
}

src_configure() {
if use test; then
local mycmakeargs=(
Expand All @@ -34,5 +42,5 @@ src_install() {
doheader -r glm
dodoc -r *md doc/*
insinto /usr/$(get_libdir)/pkgconfig
doins "${FILESDIR}"/glm.pc
doins glm.pc
}

0 comments on commit 19fd8f9

Please sign in to comment.