openbsd-ports/astro/celestia/Makefile

60 lines
1.7 KiB
Makefile
Raw Normal View History

2018-11-12 11:08:02 -05:00
# $OpenBSD: Makefile,v 1.46 2018/11/12 16:08:02 naddy Exp $
2007-07-25 11:24:58 -04:00
COMMENT= free space simulator and planetarium
2011-07-08 21:41:13 -04:00
DISTNAME= celestia-1.6.1
2018-11-12 11:08:02 -05:00
REVISION= 16
2010-12-31 02:10:02 -05:00
CATEGORIES= astro x11
HOMEPAGE= http://www.shatters.net/celestia/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=celestia/}
2016-09-08 06:17:26 -04:00
WANTLIB += GL GLU ICE SM X11 X11-xcb Xcomposite Xcursor Xdamage
WANTLIB += Xext Xfixes Xi Xinerama Xmu Xrandr Xrender Xt Xxf86vm
WANTLIB += atk-1.0 c cairo drm expat ffi fontconfig freetype gdk-x11-2.0
WANTLIB += gdk_pixbuf-2.0 gdkglext-x11-1.0 gio-2.0 glapi glib-2.0
WANTLIB += gmodule-2.0 gobject-2.0 graphite2 gthread-2.0 gtk-x11-2.0
WANTLIB += gtkglext-x11-1.0 harfbuzz iconv intl jpeg m ogg pango-1.0
WANTLIB += pangocairo-1.0 pangoft2-1.0 pangox-1.0 pcre pixman-1
2017-10-23 13:02:36 -04:00
WANTLIB += png pthread ${COMPILER_LIBCXX} theora xcb xcb-dri2
2016-09-08 06:17:26 -04:00
WANTLIB += xcb-glx xcb-render xcb-shm z
WANTLIB += ${MODLUA_WANTLIB}
COMPILER = base-clang ports-gcc base-gcc
2016-09-08 06:17:26 -04:00
MODULES= lang/lua
BUILD_DEPENDS= devel/gettext-tools
LIB_DEPENDS= devel/gettext \
2012-05-15 14:03:59 -04:00
multimedia/libtheora \
2016-09-08 06:17:26 -04:00
x11/gtkglext \
2012-05-15 14:03:59 -04:00
${MODLUA_LIB_DEPENDS}
RUN_DEPENDS= devel/desktop-file-utils
USE_GMAKE= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -lGL" \
LUA_CFLAGS="`pkg-config --cflags ${MODLUA_DEP}`" \
LUA_LIBS="`pkg-config --libs ${MODLUA_DEP}`"
2016-03-11 15:28:21 -05:00
CONFIGURE_ARGS= --with-gtk \
2008-04-08 12:04:27 -04:00
--with-lua \
--enable-cairo \
--enable-theora
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/celestia/celestiacore.cpp
post-install:
${INSTALL_DATA} ${WRKSRC}/models/*.3ds \
${PREFIX}/share/celestia/models
.include <bsd.port.mk>