summaryrefslogtreecommitdiff
path: root/www/galeon12/Makefile
blob: e02e587fdbed33a1a29ce4e3dd9258e3f7e0d820 (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
66
67
68
69
70
71
72
# $NetBSD: Makefile,v 1.3 2004/08/27 06:29:11 jlam Exp $

DISTNAME=	galeon-1.2.14
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=galeon/}

MAINTAINER=	taya@NetBSD.org
HOMEPAGE=	http://galeon.sourceforge.net/
COMMENT=	GNOME web browser based on gecko (mozilla rendering engine)

CONFLICTS=	galeon-current-[0-9]*

EVAL_PREFIX+=	MOZILLA_PREFIX=mozilla
EVAL_PREFIX+=	ICONV_PREFIX=libiconv
EVAL_PREFIX+=	GCONF_PREFIX=GConf

USE_X11BASE=		yes
USE_BUILDLINK3=		yes
USE_DIRS+=		xdg-1.1
USE_PKGLOCALEDIR=	yes
USE_LIBTOOL=		yes
USE_LANGUAGES=		c c++
USE_GNU_TOOLS+=		make
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-mozilla-includes=${BUILDLINK_PREFIX.mozilla}/include/mozilla \
			--with-mozilla-libs=${BUILDLINK_PREFIX.mozilla}/lib/mozilla \
			--with-libiconv=${LOCALBASE} \
			--disable-applet \
			--disable-werror \
			--sysconfdir=${PREFIX}/etc \
			MOZILLA_CONFIG=${MOZ_LIBDIR}/mozilla-config
CONFIGURE_ARGS+= --with-mozilla-snapshot=1.7

.include	"../../converters/libiconv/buildlink3.mk"
.include	"../../devel/GConf/buildlink3.mk"
.include	"../../devel/gettext-lib/buildlink3.mk"
.include	"../../devel/libglade/buildlink3.mk"
.include	"../../devel/oaf/buildlink3.mk"
.include	"../../graphics/gdk-pixbuf-gnome/buildlink3.mk"
.include	"../../textproc/intltool/buildlink3.mk"
.include	"../../textproc/libxml/buildlink3.mk"
.include	"../../textproc/scrollkeeper/omf.mk"
.include	"../../sysutils/gnome-vfs/buildlink3.mk"
.include	"../../www/mozilla/buildlink3.mk"
.include	"../../x11/gnome-libs/buildlink3.mk"

MOZ_LIBDIR=     ${MOZILLA_PREFIX}/lib/mozilla
LDFLAGS+=       ${COMPILER_RPATH_FLAG}${MOZ_LIBDIR}

# Ensure we export symbols in the linked shared object.
LDFLAGS+=		${EXPORT_SYMBOLS_LDFLAGS}

.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-3*)
# Workaround for gcc3 build issue
post-buildlink:
	${CP} ${BUILDLINK_DIR}/bin/cc ${BUILDLINK_DIR}/bin/cc.orig
	${SED} 's:\(exec \$$cmd\):\1 -lstdc++ -lm:' ${BUILDLINK_DIR}/bin/cc.orig\
						> ${BUILDLINK_DIR}/bin/cc
.endif

pre-install:
	${GCONF_PREFIX}/bin/gconftool --shutdown

post-install:
	${SED} -e "s,@PREFIX@,${PREFIX},g" -e "s,@MOZILLA_PREFIX@,${MOZILLA_PREFIX},g" ${FILESDIR}/galeon.in > ${PREFIX}/bin/galeon
	${CHOWN} ${BINOWN} ${PREFIX}/bin/galeon
	${CHGRP} ${BINGRP} ${PREFIX}/bin/galeon
	${CHMOD} ${BINMODE} ${PREFIX}/bin/galeon
	${INSTALL_PROGRAM_DIR} ${PREFIX}/lib/galeon

.include "../../mk/bsd.pkg.mk"