freebsd-ports/science/gramps/Makefile
Baptiste Daroussin 2c672a4de9 INSTALLS_ICONS: retire the macro and rework the related dependencies
While here, make sure gtk-update-icon-cache is only on run dependency
where added as a dependency
Enforce gtk3 to depend on gtk-update-icon-cache (previously it was
inheriting the dependency)
2021-10-10 21:44:42 +02:00

50 lines
1.7 KiB
Makefile

# Created by: Andreas Fehlner <fehlner@gmx.de>
PORTNAME= gramps
PORTVERSION= 5.1.4
DISTVERSIONPREFIX= v
CATEGORIES= science gnome python
MAINTAINER= ports@FreeBSD.org
COMMENT= GTK3-based genealogy program
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgeocode-glib.so:net/geocode-glib \
libosmgpsmap-1.0.so:x11-toolkits/osm-gps-map
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bsddb3>0:databases/py-bsddb3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyicu>=1.8:devel/py-pyicu@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pygraphviz>=0:graphics/py-pygraphviz@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} \
xdg-open:devel/xdg-utils
USES= desktop-file-utils gettext gnome python:3.3+ shared-mime-info
USE_GITHUB= yes
GH_ACCOUNT= gramps-project
USE_GNOME= cairo gtk30 intltool librsvg2 pango pygobject3
INSTALLS_OMF= yes
USE_PYTHON= autoplist distutils noflavors
CONFIGURE_ARGS= --disable-mime-install
NO_ARCH= yes
OPTIONS_DEFINE= GEXIV GTKSPELL PIL RCS TTFFREEFONT
OPTIONS_DEFAULT= GEXIV GTKSPELL
GEXIV_DESC= Manage Exif metadata embedded in media
GTKSPELL_DESC= Spell checking support via gtkspell
PIL_DESC= Crop/convert images with Python Imaging Library (Pillow)
RCS_DESC= Manage revisions of family trees with with GNU RCS
TTFFREEFONT_DESC= More font support in reports
GEXIV_LIB_DEPENDS= libgexiv2.so:graphics/gexiv2
GTKSPELL_LIB_DEPENDS= libgtkspell3-3.so:textproc/gtkspell3
PIL_RUN_DEPENDS= ${PY_PILLOW}
RCS_RUN_DEPENDS= rcsdiff:devel/rcs
TTFFREEFONT_RUN_DEPENDS=${LOCALBASE}/share/fonts/freefont-ttf/FreeMono.ttf:x11-fonts/freefont-ttf
post-install:
${ECHO_CMD} -n ${PREFIX}/share > ${STAGEDIR}${PYTHON_SITELIBDIR}/gramps/gen/utils/resource-path
.include <bsd.port.mk>