openbsd-ports/astro/celestia/Makefile
2012-12-23 12:25:30 +00:00

65 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.30 2012/12/23 12:25:30 sthen Exp $
COMMENT= free space simulator and planetarium
DISTNAME= celestia-1.6.1
REVISION= 6
CATEGORIES= astro x11
HOMEPAGE= http://www.shatters.net/celestia/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=celestia/}
WANTLIB += GL GLU ICE SM X11 Xau Xcomposite Xcursor Xdamage Xdmcp
WANTLIB += Xext Xfixes Xi Xinerama Xmu Xrandr Xrender Xt atk-1.0
WANTLIB += c cairo expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gtk-x11-2.0
WANTLIB += jpeg m ogg pango-1.0 pangocairo-1.0 pangoft2-1.0 pangox-1.0
WANTLIB += pcre pixman-1 png pthread pthread-stubs stdc++ xcb z
WANTLIB += gdkglext-x11-1.0 gtkglext-x11-1.0 ${MODLUA_WANTLIB} theora
WANTLIB += Xxf86vm drm gthread-2.0 xcb-render xcb-shm ffi
WANTLIB += harfbuzz icudata icule icuuc
MODULES= devel/gettext \
lang/lua
LIB_DEPENDS= x11/gtkglext \
multimedia/libtheora \
${MODLUA_LIB_DEPENDS}
RUN_DEPENDS= devel/desktop-file-utils
USE_LIBTOOL= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -lm -lGL" \
LUA_CFLAGS="`pkg-config --cflags ${MODLUA_DEP}`" \
LUA_LIBS="`pkg-config --libs ${MODLUA_DEP}`"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-gtk \
--with-lua \
--enable-cairo \
--enable-theora
# /usr/local/lib/libgthread-2.0.so.X.X: undefined symbol 'pthread_mutex_trylock'
CFLAGS+= -pthread
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/celestia/celestiacore.cpp
post-install:
${INSTALL_DATA} ${WRKSRC}/models/*.3ds \
${PREFIX}/share/celestia/models
.include <bsd.port.mk>