Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.17 2017/04/10 11:46:20 sthen Exp $
  2. COMMENT = font rendering library for OpenGL applications
  3. V = 2.1.3
  4. DISTNAME = ftgl-$V-rc5
  5. PKGNAME = ftgl-$Vrc5
  6. REVISION = 5
  7. EPOCH = 0
  8. SHARED_LIBS = ftgl 0.0 # 2.1
  9. CATEGORIES = graphics
  10. HOMEPAGE = http://ftgl.wiki.sourceforge.net
  11. MAINTAINER = Peter Hessler <phessler@openbsd.org>
  12. # MIT license or the GNU LGPL, at your option.
  13. PERMIT_PACKAGE_CDROM = Yes
  14. WANTLIB += GL GLU ICE SM X11 Xdamage Xext Xfixes Xmu Xt Xxf86vm drm
  15. WANTLIB += freetype m ${LIBCXX} xcb xcb-glx z expat
  16. WANTLIB += X11-xcb glapi pthread xcb-dri2
  17. WRKDIST = ${WRKDIR}/${DISTNAME:S/-rc/~rc/}
  18. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=ftgl/}
  19. CONFIGURE_STYLE = gnu
  20. CONFIGURE_ARGS += --with-gl-inc=${X11BASE}/include \
  21. --with-gl-lib=${X11BASE}/lib
  22. CONFIGURE_ENV += ac_cv_path_DOXYGEN=no
  23. # 2.1.3~rc5 is a ridiculous version to stow in a pkg-config file,
  24. # so add this workaround to prevent pkg-config from choking.
  25. pre-configure:
  26. sed -i 's,\@PACKAGE_VERSION\@,${V},' ${WRKSRC}/ftgl.pc.in
  27. post-install:
  28. ${INSTALL_DATA} \
  29. ${WRKSRC}/src/FTLibrary.h \
  30. ${WRKSRC}/src/FTFace.h \
  31. ${WRKSRC}/src/FTSize.h \
  32. ${PREFIX}/include/FTGL/
  33. .include <bsd.port.mk>