summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/gtkextra2/Makefile
blob: 97863ead0b3fb4bd6a9a0da73ad9d4899d7cc641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$

PORTNAME=	gtkextra
PORTVERSION=	2.1.2
PORTREVISION=	4
CATEGORIES=	x11-toolkits
MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}
DISTNAME=	${PORTNAME:S/gtk/gtk+/}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Useful widget set complementary to GTK+ 2.0

USES=		gmake libtool pathfix pkgconfig
USE_GNOME=	gtk20
GNU_CONFIGURE=	yes
USE_CSTD=	gnu89
USE_LDCONFIG=	yes
INSTALL_TARGET=	install-strip

DOCSDIR=	${PREFIX}/share/doc/gtkextra2

PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e '/^SUBDIRS/s|docs||' ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
		${WRKSRC}/gtkextra/gtkcharsel.c

post-install:
.for d in reference tutorial
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/${d}
	@(cd ${WRKSRC}/docs/${d} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud