Index: head/science/Makefile
===================================================================
--- head/science/Makefile
+++ head/science/Makefile
@@ -199,6 +199,7 @@
     SUBDIR += silo
     SUBDIR += simlib
     SUBDIR += simsmith
+    SUBDIR += siril
     SUBDIR += step
     SUBDIR += svmlight
     SUBDIR += szip
Index: head/science/siril/Makefile
===================================================================
--- head/science/siril/Makefile
+++ head/science/siril/Makefile
@@ -0,0 +1,40 @@
+# $FreeBSD$
+
+PORTNAME=	siril
+DISTVERSION=	0.9.8
+CATEGORIES=	science graphics
+MASTER_SITES=	https://free-astro.org/download/
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Astronomical image processing software
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+LIB_DEPENDS=	libavformat.so:multimedia/ffmpeg \
+		libcfitsio.so:astro/cfitsio \
+		libconfig.so:devel/libconfig \
+		libffms2.so:multimedia/ffms2 \
+		libfftw3.so:math/fftw3 \
+		libgsl.so:math/gsl \
+		liblcms2.so:graphics/lcms2 \
+		libopencv_core.so:graphics/opencv-core \
+		libomp.so:devel/openmp \
+		libpng16.so:graphics/png \
+		libraw.so:graphics/libraw \
+		libtiff.so:graphics/tiff
+LIB_DEPENDS+=	libopencv_photo.so:graphics/opencv # for some reason, configure fails without opencv, but executable only links to opencv-core
+
+USES=		autoreconf desktop-file-utils gettext gmake localbase pkgconfig jpeg shared-mime-info tar:bz2
+GNU_CONFIGURE=	yes
+USE_GNOME=	atk cairo gdkpixbuf2 gtk30 intltool pango
+INSTALLS_ICONS=	yes
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/appdata ${STAGEDIR}${PREFIX}/share/mime/packages
+	${INSTALL_DATA} ${WRKSRC}/platform-specific/linux/org.free-astro.siril.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop
+	${INSTALL_DATA} ${WRKSRC}/platform-specific/linux/org.free-astro.siril.appdata.xml ${STAGEDIR}${PREFIX}/share/appdata/${PORTNAME}.appdata.xml
+	${INSTALL_DATA} ${WRKSRC}/platform-specific/linux/siril.xml ${STAGEDIR}${PREFIX}/share/mime/packages/
+	cd ${WRKSRC}/pixmaps && ${COPYTREE_SHARE} icons ${STAGEDIR}${PREFIX}/share/
+
+.include <bsd.port.mk>
Index: head/science/siril/distinfo
===================================================================
--- head/science/siril/distinfo
+++ head/science/siril/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1517713559
+SHA256 (siril-0.9.8.tar.bz2) = ecb5477937afc02cc89cb07f4a7b99d2d0ab4cc5e715ec536e9be5c92a187170
+SIZE (siril-0.9.8.tar.bz2) = 882068
Index: head/science/siril/files/patch-Makefile.am
===================================================================
--- head/science/siril/files/patch-Makefile.am
+++ head/science/siril/files/patch-Makefile.am
@@ -0,0 +1,16 @@
+--- Makefile.am.orig	2017-11-13 22:13:16 UTC
++++ Makefile.am
+@@ -17,11 +17,9 @@ install-data-local:
+ 	$(INSTALL_DATA) src/gui/siril3.glade $(DESTDIR)$(pkgdatadir)
+ 	$(INSTALL_DATA) src/gui/gtk_old.css $(DESTDIR)$(pkgdatadir)
+ 	$(INSTALL_DATA) src/gui/gtk.css $(DESTDIR)$(pkgdatadir)
+-	$(mkinstalldirs) $(DESTDIR)$(docdir)
+-	$(INSTALL_DATA) AUTHORS LICENSE.md $(DESTDIR)$(docdir)
+ 	$(mkinstalldirs) $(DESTDIR)$(mandir)/man1
+ 	$(INSTALL_DATA) siril.1.gz $(DESTDIR)$(mandir)/man1
+ 
+ ACLOCAL_AMFLAGS = -I m4
+ EXTRA_DIST = config.rpath
+-AUTOMAKE_OPTIONS = foreign
+\ No newline at end of file
++AUTOMAKE_OPTIONS = foreign
Index: head/science/siril/pkg-descr
===================================================================
--- head/science/siril/pkg-descr
+++ head/science/siril/pkg-descr
@@ -0,0 +1,11 @@
+Siril is an astronomical image processing tool, able to convert, pre-process
+images, help aligning them automatically or manually, stack them and enhance
+final images.
+
+Siril is targeted to amateur astronomers having acquired images and wanting
+to process them in a semi-automatic way. It provides a more user-friendly
+interface than Iris' command line as well as more modern and powerful processing
+algorithms, but it is not yet as automated as DeepSkyStacker or Registax. It
+also provides a basic command line to access various processing functions.
+
+WWW: https://free-astro.org/index.php/Siril
Index: head/science/siril/pkg-plist
===================================================================
--- head/science/siril/pkg-plist
+++ head/science/siril/pkg-plist
@@ -0,0 +1,42 @@
+bin/siril
+man/man1/siril.1.gz
+share/appdata/siril.appdata.xml
+share/applications/siril.desktop
+share/icons/hicolor/16x16/apps/siril.png
+share/icons/hicolor/24x24/apps/siril.png
+share/icons/hicolor/256x256/apps/siril.png
+share/icons/hicolor/32x32/apps/siril.png
+share/icons/hicolor/48x48/apps/siril.png
+share/locale/ar_DZ/LC_MESSAGES/siril.mo
+share/locale/el/LC_MESSAGES/siril.mo
+share/locale/es_ES/LC_MESSAGES/siril.mo
+share/locale/fr/LC_MESSAGES/siril.mo
+share/locale/it_IT/LC_MESSAGES/siril.mo
+share/locale/nl_BE/LC_MESSAGES/siril.mo
+share/locale/zh_CN/LC_MESSAGES/siril.mo
+share/mime/packages/siril.xml
+%%DATADIR%%/gtk.css
+%%DATADIR%%/gtk_old.css
+%%DATADIR%%/pixmaps/chain.png
+%%DATADIR%%/pixmaps/cm.png
+%%DATADIR%%/pixmaps/export.png
+%%DATADIR%%/pixmaps/grid.png
+%%DATADIR%%/pixmaps/histo.png
+%%DATADIR%%/pixmaps/histo_dark.png
+%%DATADIR%%/pixmaps/list.png
+%%DATADIR%%/pixmaps/list_dark.png
+%%DATADIR%%/pixmaps/mirrorx.png
+%%DATADIR%%/pixmaps/mirrorx_dark.png
+%%DATADIR%%/pixmaps/mirrory.png
+%%DATADIR%%/pixmaps/mirrory_dark.png
+%%DATADIR%%/pixmaps/neg.png
+%%DATADIR%%/pixmaps/remove1.png
+%%DATADIR%%/pixmaps/rotate-acw.png
+%%DATADIR%%/pixmaps/rotate-acw_dark.png
+%%DATADIR%%/pixmaps/rotate-cw.png
+%%DATADIR%%/pixmaps/rotate-cw_dark.png
+%%DATADIR%%/pixmaps/siril_1.svg
+%%DATADIR%%/pixmaps/siril_logo.svg
+%%DATADIR%%/pixmaps/starfinder.png
+%%DATADIR%%/pixmaps/sum.png
+%%DATADIR%%/siril3.glade