blob: 1e0614f7918f910acf3ed239b8574c71a5e0183f (
plain) (
blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= gtkdatabox
PORTVERSION= 0.9.2.0
CATEGORIES= x11-toolkits
MASTER_SITES= SF
DIST_SUBDIR= gnome2
MAINTAINER= ports@FreeBSD.org
COMMENT= A GTK+2 widget to display large amounts of numerical data
LICENSE= LGPL21
OPTIONS_DEFINE= GLADE GLADEUI DOCS EXAMPLES
GLADE_DESC= Enable libglade2 support
GLADEUI_DESC= Enable glade3 support
USES= pathfix
USE_GNOME= gtk20
USE_PKGCONFIG= build
USE_AUTOTOOLS= libtool
CONFIGURE_ARGS= --includedir="${PREFIX}/include/${PORTNAME}" \
--with-html-dir="${PREFIX}/share/doc"
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
PORTDOCS= *
PORTEXAMPLES= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGLADE}
USE_GNOME+= libglade2
CONFIGURE_ARGS+= --enable-libglade
PLIST_SUB+= GLADE=""
.else
CONFIGURE_ARGS+= --disable-libglade
PLIST_SUB+= GLADE="@comment "
.endif
.if ${PORT_OPTIONS:MGLADEUI}
LIB_DEPENDS+= gladeui-1:${PORTSDIR}/devel/glade3
CONFIGURE_ARGS+= --enable-glade
PLIST_SUB+= GLADEUI=""
.else
CONFIGURE_ARGS+= --disable-glade
PLIST_SUB+= GLADEUI="@comment "
.endif
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:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} api ${DOCSDIR})
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${INSTALL_DATA} *.c ${EXAMPLESDIR})
.endif
.include <bsd.port.mk>
|