freebsd-ports/x11-toolkits/gtkdatabox/Makefile
Fernando Apesteguía 7b1d9f45c2 x11-toolkits/gtkdatabox: update to 0.9.3.1
This is a bugfix release.

While here:

* Add USES=gnome
* Add missing components to USE_GNOME
* Add missing LIB_DEPENDS
* Reorder some variables
* Regenerate patches to match current conventions

Reported by:	portscout
2018-12-28 16:45:23 +00:00

59 lines
1.4 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= gtkdatabox
PORTVERSION= 0.9.3.1
CATEGORIES= x11-toolkits
MASTER_SITES= SF
DIST_SUBDIR= gnome2
MAINTAINER= ports@FreeBSD.org
COMMENT= GTK+2 widget to display large amounts of numerical data
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2
USES= gnome libtool pathfix pkgconfig
USE_GNOME= cairo gdkpixbuf2 gtk20
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --includedir="${PREFIX}/include/${PORTNAME}" \
--with-html-dir="${PREFIX}/share/doc"
INSTALL_TARGET= install-strip
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= GLADE GLADEUI DOCS EXAMPLES
OPTIONS_SUB= yes
GLADE_DESC= Enable libglade2 support
GLADE_USE= GNOME=libglade2
GLADE_CONFIGURE_ENABLE= libglade
GLADEUI_DESC= Enable glade3 support
GLADEUI_LIB_DEPENDS= libgladeui-1.so:devel/glade3
GLADEUI_CONFIGURE_ENABLE= glade
post-patch:
@${REINPLACE_CMD} -e \
'/^SUBDIR/s|examples||' ${WRKSRC}/Makefile.in
.for dir in examples gtk
@${REINPLACE_CMD} -e \
'/-O2/d ; \
/DISABLE_DEPRECATED/d' ${WRKSRC}/${dir}/Makefile.in
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} api ${STAGEDIR}${DOCSDIR})
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.c ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>