Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # $OpenBSD: Makefile,v 1.39 2017/04/10 11:45:22 sthen Exp $
  2. COMMENT= free space simulator and planetarium
  3. DISTNAME= celestia-1.6.1
  4. REVISION= 10
  5. CATEGORIES= astro x11
  6. HOMEPAGE= http://www.shatters.net/celestia/
  7. MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
  8. # GPLv2
  9. PERMIT_PACKAGE_CDROM= Yes
  10. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=celestia/}
  11. WANTLIB += GL GLU ICE SM X11 X11-xcb Xcomposite Xcursor Xdamage
  12. WANTLIB += Xext Xfixes Xi Xinerama Xmu Xrandr Xrender Xt Xxf86vm
  13. WANTLIB += atk-1.0 c cairo drm expat ffi fontconfig freetype gdk-x11-2.0
  14. WANTLIB += gdk_pixbuf-2.0 gdkglext-x11-1.0 gio-2.0 glapi glib-2.0
  15. WANTLIB += gmodule-2.0 gobject-2.0 graphite2 gthread-2.0 gtk-x11-2.0
  16. WANTLIB += gtkglext-x11-1.0 harfbuzz iconv intl jpeg m ogg pango-1.0
  17. WANTLIB += pangocairo-1.0 pangoft2-1.0 pangox-1.0 pcre pixman-1
  18. WANTLIB += png pthread pthread-stubs ${LIBCXX} theora xcb xcb-dri2
  19. WANTLIB += xcb-glx xcb-render xcb-shm z
  20. WANTLIB += ${MODLUA_WANTLIB}
  21. MODULES= lang/lua
  22. BUILD_DEPENDS= devel/gettext-tools
  23. LIB_DEPENDS= devel/gettext \
  24. multimedia/libtheora \
  25. x11/gtkglext \
  26. ${MODLUA_LIB_DEPENDS}
  27. RUN_DEPENDS= devel/desktop-file-utils
  28. USE_GMAKE= Yes
  29. CONFIGURE_STYLE=gnu
  30. CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
  31. LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -lGL" \
  32. LUA_CFLAGS="`pkg-config --cflags ${MODLUA_DEP}`" \
  33. LUA_LIBS="`pkg-config --libs ${MODLUA_DEP}`"
  34. CONFIGURE_ARGS= --with-gtk \
  35. --with-lua \
  36. --enable-cairo \
  37. --enable-theora
  38. pre-configure:
  39. ${SUBST_CMD} ${WRKSRC}/src/celestia/celestiacore.cpp
  40. post-install:
  41. ${INSTALL_DATA} ${WRKSRC}/models/*.3ds \
  42. ${PREFIX}/share/celestia/models
  43. .include <bsd.port.mk>