Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # $OpenBSD: Makefile,v 1.49 2017/04/26 16:36:03 rsadowski Exp $
  2. COMMENT= free open source planetarium
  3. DISTNAME= stellarium-0.15.2
  4. CATEGORIES= astro x11
  5. HOMEPAGE= http://www.stellarium.org/
  6. MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
  7. # GPLv2
  8. PERMIT_PACKAGE_CDROM= Yes
  9. WANTLIB += Qt5Concurrent Qt5Core Qt5Gui Qt5Multimedia Qt5MultimediaWidgets
  10. WANTLIB += Qt5Network Qt5PrintSupport Qt5Script Qt5SerialPort Qt5Widgets
  11. WANTLIB += c m pthread z
  12. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=stellarium/}
  13. MODULES= devel/cmake \
  14. x11/qt5
  15. LIB_DEPENDS= x11/qt5/qtmultimedia \
  16. x11/qt5/qtscript \
  17. x11/qt5/qtserialport
  18. # used to download more stars definitions
  19. RUN_DEPENDS= net/curl \
  20. devel/desktop-file-utils \
  21. x11/gtk+3,-guic
  22. CONFIGURE_ENV= HOME=${WRKDIR}
  23. CONFIGURE_ARGS= -Wno-dev \
  24. -DCMAKE_C_FLAGS="${CFLAGS} -I${X11BASE}/include" \
  25. -DCMAKE_CXX_FLAGS="${CXXFLAGS} -I${X11BASE}/include" \
  26. -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen:Bool=Yes
  27. PORTHOME= ${WRKDIR}
  28. NO_TEST= Yes
  29. pre-configure:
  30. sed -i 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/CMakeLists.txt
  31. post-install:
  32. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
  33. ${INSTALL_DATA} ${WRKSRC}/data/stellarium.desktop \
  34. ${PREFIX}/share/applications
  35. .include <bsd.port.mk>