blob: 2ed329782bd8557317a087758faa2a0117f1162d (
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
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
|
# $NetBSD: Makefile,v 1.43 2000/05/30 19:23:46 drochner Exp $
DISTNAME= gnome-libs-1.2.1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=stable/sources/gnome-libs/}
MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.gnome.org/
DEPENDS+= ORBit-*:../../net/ORBit
DEPENDS+= esound-*:../../audio/esound
DEPENDS+= gtk+>=1.2.7:../gtk
DEPENDS+= imlib-*:../../graphics/imlib
DEPENDS+= xpm-3.4k:../../graphics/xpm
GNU_CONFIGURE= yes
USE_X11BASE= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
LDFLAGS+= "-L${LOCALBASE}/lib"
CONFIGURE_ARGS+= --localstatedir=${LOCALSTATEDIR} \
--with-glib-prefix=${LOCALBASE}
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LOCALBASE=${LOCALBASE} \
X11BASE=${X11BASE}
LOCALSTATEDIR= /var/gnome
PLIST_SRC= ${WRKDIR}/PLIST
PLIST_SUBST+= LOCALBASE=${LOCALBASE} \
LOCALSTATEDIR=${LOCALSTATEDIR}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
DEPENDS+= db-*:../../databases/db
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/db2"
pre-configure:
${MV} ${WRKSRC}/configure ${WRKSRC}/configure-pre-db-sub && \
${SED} -e 's|-ldb|-ldb2|g' ${WRKSRC}/configure-pre-db-sub > ${WRKSRC}/configure && \
${CHMOD} 0755 ${WRKSRC}/configure
.endif
post-patch:
${MV} ${WRKSRC}/gnome-config.in ${WRKSRC}/gnome-config.in-pre-lpath && \
${SED} -e "s|XXXLOCALBASEXXX|${LOCALBASE}|" \
${WRKSRC}/gnome-config.in-pre-lpath >${WRKSRC}/gnome-config.in
pre-build:
(cd ${WRKSRC}/support; ${GMAKE} gnomesupport.h)
post-install:
${MKDIR} ${LOCALSTATEDIR}
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
cd ${PREFIX}; ${FIND} lib -name 'libgnome.so.*' >>${PLIST_SRC}
${TEST} ${PREFIX} = ${LOCALBASE} || \
${LN} -fs ${PREFIX}/share/aclocal/libart.m4 \
${LOCALBASE}/share/aclocal/libart.m4
.include "../../mk/bsd.pkg.mk"
.if (${OBJECT_FMT} == a.out)
MAKE_ENV+= A_OUT_STATIC=-static
.endif
|