openbsd-ports/astro/stellarium/Makefile
2013-09-28 11:33:11 +00:00

51 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.33 2013/09/28 11:33:11 ajacoutot Exp $
COMMENT= free open source planetarium
DISTNAME= stellarium-0.12.4
CATEGORIES= astro x11
HOMEPAGE= http://www.stellarium.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=stellarium/}
WANTLIB += GL GLU ICE QtGui QtNetwork QtOpenGL QtScript SM X11
WANTLIB += Xext c m pthread stdc++ z
MODULES= devel/gettext \
devel/cmake \
x11/qt4
# used to download more stars definitions
RUN_DEPENDS= net/curl \
devel/desktop-file-utils \
x11/gtk+2,-guic
CONFIGURE_STYLE=cmake
CONFIGURE_ENV= HOME=${WRKDIR}
CONFIGURE_ARGS= -Wno-dev \
-DCMAKE_C_FLAGS="${CFLAGS} -I${X11BASE}/include" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -I${X11BASE}/include"
PORTHOME= ${WRKDIR}
NO_TEST= Yes
pre-configure:
perl -pi -e 's,/usr/local,${LOCALBASE},g' \
${WRKSRC}/CMakeLists.txt \
${WRKSRC}/cmake/FindIconv.cmake
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/data/stellarium.desktop \
${PREFIX}/share/applications
.include <bsd.port.mk>