Tweak x11-toolkits/gtkextra2 version 2.1.2_1
[dports.git] / x11-toolkits / gtkextra2 / Makefile
1 # Created by: Maxim Sobolev <sobomax@FreeBSD.org>
2 # $FreeBSD: x11-toolkits/gtkextra2/Makefile 327785 2013-09-20 23:57:47Z bapt $
3
4 PORTNAME=       gtkextra
5 PORTVERSION=    2.1.2
6 PORTREVISION=   1
7 CATEGORIES=     x11-toolkits
8 MASTER_SITES=   SF/${PORTNAME}/${PORTVERSION}
9 DISTNAME=       ${PORTNAME:S/gtk/gtk+/}-${PORTVERSION}
10
11 MAINTAINER=     ports@FreeBSD.org
12 COMMENT=        A useful widget set complementary to GTK+ 2.0
13
14 USES=           pathfix pkgconfig
15 USE_GNOME=      gtk20
16 USE_GMAKE=      yes
17 USE_AUTOTOOLS=  libtool
18 USE_CSTD=       gnu89
19 USE_LDCONFIG=   yes
20
21 LATEST_LINK=    gtkextra2
22 DOCSDIR=        ${PREFIX}/share/doc/gtkextra2
23
24 PORTDOCS=       *
25
26 NO_STAGE=       yes
27 .include <bsd.port.options.mk>
28
29 post-patch:
30         @${REINPLACE_CMD} -e '/^SUBDIRS/s|docs||' ${WRKSRC}/Makefile.in
31         @${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
32                 ${WRKSRC}/gtkextra/gtkcharsel.c
33
34 post-install:
35 .if ${PORT_OPTIONS:MDOCS}
36 .for d in reference tutorial
37         @${MKDIR} ${DOCSDIR}/${d}
38         @(cd ${WRKSRC}/docs/${d} && ${COPYTREE_SHARE} . ${DOCSDIR})
39 .endfor
40 .endif
41
42 .include <bsd.port.mk>