anttweakbar-1.16-r1.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2022 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="8"
  4. DESCRIPTION="A library that adds an easy GUI into OpenGL applications"
  5. HOMEPAGE="http://www.antisphere.com/Wiki/tools:anttweakbar?sb=tools"
  6. SRC_URI="https://sourceforge.net/projects/anttweakbar/files/latest/download?source=dlp -> ${P}.zip"
  7. KEYWORDS="~x86 ~amd64"
  8. LICENSE="ZLIB"
  9. SLOT="0"
  10. IUSE=""
  11. DEPEND="
  12. x11-libs/libX11:=
  13. x11-libs/libXext:=
  14. x11-libs/libXxf86vm:=
  15. virtual/libc
  16. "
  17. RDEPEND="$DEPEND"
  18. RESTRICT="mirror"
  19. S="${WORKDIR}/AntTweakBar"
  20. src_configure() {
  21. sed -i -e "s|^LIBS.*$|LIBS\t\t= -L/usr/lib64 -lGL -lX11 -lXxf86vm -lXext -lpthread -lm|g" \
  22. -e "s|^INCPATH.*$||g" \
  23. -e "s|^CXXCFG.*$||g" \
  24. -e "s|\$(AR) \$(OUT_DIR)/lib\$(TARGET)\$(AR_EXT) \$(OBJS) \$(LIBS)|\$(AR) \$(OUT_DIR)/lib\$(TARGET)\$(AR_EXT) \$(OBJS)|g" src/Makefile || die
  25. }
  26. src_compile() {
  27. cd src
  28. emake || die "${P} could not be compiled"
  29. }
  30. src_install() {
  31. dolib.so lib/libAntTweakBar.so
  32. dosym libAntTweakBar.so ${EPREFIX}/usr/$(get_libdir)/libAntTweakBar.so.$(ver_cut 1)
  33. doheader include/AntTweakBar.h
  34. }