blob: b6820959973b0c0fba82dc0307eacca59587efd5 (
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
|
# New ports collection makefile for: gtkdatabox2
# Date created: 2004-07-03
# Whom: Leonid Zolotarev <leoz.2005@gmail.com>
#
# $FreeBSD$
#
PORTNAME= gtkdatabox2
PORTVERSION= 0.8.2.2
PORTREVISION= 1
CATEGORIES= x11-toolkits
MASTER_SITES= http://www.eudoxos.de/gtk/gtkdatabox/download/
DISTNAME= ${PORTNAME:S/2//}-${PORTVERSION}
DIST_SUBDIR= gnome2
MAINTAINER= shuvaev@physik.uni-wuerzburg.de
COMMENT= A GTK+2 widget to display large amounts of numerical data
USE_LDCONFIG= yes
USE_GNOME= gnomehack gtk20
USE_AUTOTOOLS= libtool:15
CONFIGURE_ARGS+= --includedir="${PREFIX}/include/${PORTNAME:S/2//}"
DEPRECATED= please use x11-toolkits/gtkdatabox instead
EXPIRATION_DATE= 2008-08-11
OPTIONS= GLADE "Enable libglade2 support" off \
GLADEUI "Enable glade3 support" off
.include <bsd.port.pre.mk>
.if !defined(NOPORTEXAMPLES)
PORTEXAMPLES= *.c
.endif
.if !defined(WITHOUT_GLADE)
USE_GNOME+= libglade2
CONFIGURE_ARGS+= --enable-libglade
PLIST_SUB+= GLADE=""
.else
CONFIGURE_ARGS+= --disable-libglade
PLIST_SUB+= GLADE="@comment "
.endif
.if !defined(WITHOUT_GLADEUI)
LIB_DEPENDS+= gladeui-1.7:${PORTSDIR}/devel/glade3
CONFIGURE_ARGS+= --enable-glade
PLIST_SUB+= GLADEUI=""
.else
CONFIGURE_ARGS+= --disable-glade
PLIST_SUB+= GLADEUI="@comment "
.endif
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|@libglade_moduledir@|@prefix@/lib/libglade/2.0|g ; \
s|@glade_moduledir@|@prefix@/lib/glade3/modules|g ; \
s|@glade_catalogdir@|@prefix@/share/glade3/catalogs|g'
post-install:
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/${PORTEXAMPLES} ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>
|