freebsd-ports/x11-toolkits/gtkdatabox/Makefile

55 lines
1.3 KiB
Makefile
Raw Normal View History

# Created by: ijliao
# $FreeBSD$
PORTNAME= gtkdatabox
2017-10-27 14:24:20 +02:00
PORTVERSION= 0.9.3.0
CATEGORIES= x11-toolkits
MASTER_SITES= SF
DIST_SUBDIR= gnome2
MAINTAINER= ports@FreeBSD.org
2014-04-22 14:19:35 +02:00
COMMENT= GTK+2 widget to display large amounts of numerical data
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= libtool pathfix pkgconfig
USE_GNOME= gtk20
2014-04-22 14:19:35 +02:00
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --includedir="${PREFIX}/include/${PORTNAME}" \
--with-html-dir="${PREFIX}/share/doc"
USE_LDCONFIG= yes
2014-04-22 14:19:35 +02:00
INSTALL_TARGET= install-strip
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= GLADE GLADEUI DOCS EXAMPLES
OPTIONS_SUB= yes
GLADE_DESC= Enable libglade2 support
2014-04-22 14:19:35 +02:00
GLADE_USE= GNOME=libglade2
GLADE_CONFIGURE_ENABLE= libglade
GLADEUI_DESC= Enable glade3 support
GLADEUI_LIB_DEPENDS= libgladeui-1.so:devel/glade3
2014-04-22 14:19:35 +02:00
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}
2014-04-22 14:19:35 +02:00
(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>