Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # $OpenBSD: Makefile,v 1.15 2017/04/10 11:46:20 sthen Exp $
  2. COMMENT = geometry viewer for OOGL file formats
  3. V = 1.9.4
  4. DISTNAME = geomview-$V
  5. REVISION = 7
  6. SHARED_LIBS = geomview 0.0
  7. CATEGORIES = graphics
  8. HOMEPAGE = http://www.geomview.org
  9. MAINTAINER = Patsy <openbsd@ethernull.org>
  10. # GPLv2
  11. PERMIT_PACKAGE_CDROM = Yes
  12. WANTLIB += ICE SM X11 Xext Xft Xm Xmu Xrender Xt c expat fontconfig
  13. WANTLIB += freetype iconv jpeg m png pthread-stubs ${LIBCXX} xcb z
  14. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=geomview/}
  15. RUN_DEPENDS = graphics/netpbm \
  16. print/ps2eps
  17. LIB_DEPENDS = converters/libiconv \
  18. x11/motif
  19. SUBST_VARS += V
  20. CONFIGURE_STYLE=gnu
  21. CONFIGURE_ARGS = --without-opengl
  22. CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -Dalloca=alloca"
  23. MAN1_PAGES = animate.1 anytooff.1 anytoucd.1 bdy.1 bez2mesh.1 clip.1 \
  24. geomview.1 hvectext.1 math2oogl.1 nose.1 offconsol.1 \
  25. oogl2rib.1 oogl2vrml.1 polymerge.1 togeomview.1 ucdtooff.1 \
  26. vrml2oogl.1
  27. MAN3_PAGES = anytopl.3 bdy.3 fsaparse.3 geomutil.3 plcombine.3 plconsol.3 \
  28. lisp.3
  29. MAN5_PAGES = discgrp.5 oogl.5 geomview.5
  30. post-install:
  31. .for i in ${MAN1_PAGES}
  32. mv ${PREFIX}/man/man1/${i}gv ${PREFIX}/man/man1/${i}
  33. .endfor
  34. .for i in ${MAN3_PAGES}
  35. mv ${PREFIX}/man/man3/${i}gv ${PREFIX}/man/man3/${i}
  36. .endfor
  37. .for i in ${MAN5_PAGES}
  38. mv ${PREFIX}/man/man5/${i}gv ${PREFIX}/man/man5/${i}
  39. .endfor
  40. chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/geomview/html/
  41. # avoid conflict with graphics/ImageMagick
  42. mv ${PREFIX}/man/man1/animate.1 ${PREFIX}/man/man1/geomview-animate.1
  43. .include <bsd.port.mk>