Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # $OpenBSD: Makefile,v 1.20 2017/05/11 20:50:55 espie Exp $
  2. COMMENT= General Atomistic Modelling Graphic Interface
  3. V= 0.15.5
  4. DISTNAME= gamgi-all-${V}
  5. PKGNAME= ${DISTNAME:S/-all//}
  6. CATEGORIES= education x11
  7. HOMEPAGE= http://www.gamgi.org/
  8. # GPLv2
  9. PERMIT_PACKAGE_CDROM= Yes
  10. MASTER_SITES= ftp://ftp.gamgi.org/gamgi/src/
  11. USE_GMAKE= Yes
  12. WANTLIB += GL GLU X11 Xext Xi Xmu atk-1.0 c cairo expat freetype
  13. WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 glib-2.0 gmodule-2.0 gobject-2.0
  14. WANTLIB += gtk-x11-2.0 m pango-1.0 pangocairo-1.0 pthread
  15. WANTLIB += gdkglext-x11-1.0 gtkglext-x11-1.0
  16. LIB_DEPENDS= x11/gtkglext
  17. RUN_DEPENDS= graphics/netpbm
  18. WRKDIST= ${WRKDIR}/gamgi${V}
  19. WRKSRC= ${WRKDIST}/src
  20. MAKE_FILE= ${WRKSRC}/makefile
  21. ALL_TARGET= # This comment intentionally left senseless.
  22. NO_TEST= Yes
  23. DOC_DIR= ${PREFIX}/share/doc/gamgi/
  24. DATA_DIR= ${PREFIX}/share/gamgi/
  25. pre-configure:
  26. ${SUBST_CMD} ${WRKSRC}/make_local ${WRKSRC}/io/gamgi_io.h
  27. do-install:
  28. ${INSTALL_PROGRAM} ${WRKSRC}/gamgi ${PREFIX}/bin
  29. ${INSTALL_DATA_DIR} ${DOC_DIR} ${DATA_DIR}
  30. ${INSTALL_DATA} ${WRKDIST}/dat/all.xml ${PREFIX}/share/gamgi
  31. # Clean an empty directory.
  32. rm -fr ${WRKDIST}/dat/util/python/
  33. cd ${WRKDIST}/doc/ && umask 022 && pax -rw . ${DOC_DIR}
  34. cd ${WRKDIST}/dat/ && umask 022 && pax -rw . ${DATA_DIR}
  35. .include <bsd.port.mk>