2000-08-01 09:05:58 +00:00
|
|
|
# Ports collection Makefile for: galeon
|
|
|
|
# Date created: 1 August 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= galeon
|
2001-09-24 10:29:09 +00:00
|
|
|
PORTVERSION= 0.12.2
|
2000-08-01 09:05:58 +00:00
|
|
|
CATEGORIES= www gnome
|
2001-07-23 07:53:26 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2000-08-01 09:05:58 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2001-05-11 16:36:50 +00:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2000-08-01 09:05:58 +00:00
|
|
|
|
2001-02-01 11:48:35 +00:00
|
|
|
BUILD_DEPENDS= ${X11BASE}/include/mozilla/gtkmozembed.h:${PORTSDIR}/www/mozilla-headers \
|
2001-07-05 07:33:46 +00:00
|
|
|
${X11BASE}/lib/${MOZILLA}/libgtkembedmoz.so:${PORTSDIR}/www/${MOZILLA} \
|
2001-07-05 07:44:19 +00:00
|
|
|
msgfmt-new:${PORTSDIR}/devel/gettext-devel
|
2001-07-05 07:33:46 +00:00
|
|
|
LIB_DEPENDS= giconv.2:${PORTSDIR}/converters/libiconv
|
2001-06-19 09:43:08 +00:00
|
|
|
RUN_DEPENDS= ${X11BASE}/lib/${MOZILLA}/libgtkembedmoz.so:${PORTSDIR}/www/${MOZILLA}
|
2000-08-17 09:49:02 +00:00
|
|
|
|
2001-07-05 07:33:46 +00:00
|
|
|
#BROKEN= "b0rken with Mozilla-0.9.1"
|
2001-06-11 20:38:11 +00:00
|
|
|
|
2001-09-18 08:12:37 +00:00
|
|
|
#WITH_FULL_MOZILLA= "Problems with missed scrollbars when linked with mozilla-embedded"
|
2001-08-21 14:27:19 +00:00
|
|
|
|
2000-08-17 09:49:02 +00:00
|
|
|
.if !defined(WITH_FULL_MOZILLA)
|
|
|
|
MOZILLA= mozilla-embedded
|
|
|
|
.else
|
|
|
|
MOZILLA= mozilla
|
|
|
|
.endif
|
2000-08-01 09:05:58 +00:00
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
2000-08-03 06:20:44 +00:00
|
|
|
USE_NEWGCC= yes
|
2000-10-05 07:17:31 +00:00
|
|
|
USE_GNOME= yes
|
2000-08-01 09:05:58 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2001-02-01 11:48:35 +00:00
|
|
|
CONFIGURE_ARGS= --with-mozilla-includes="${X11BASE}/include/mozilla" \
|
|
|
|
--with-mozilla-libs="${X11BASE}/lib/${MOZILLA}"
|
2001-07-05 07:33:46 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -D_REENTRANT ${PTHREAD_CFLAGS}" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
|
|
|
MSGFMT=${LOCALBASE}/bin/msgfmt-new \
|
|
|
|
XGETTEXT=${LOCALBASE}/bin/xgettext-new
|
2001-09-18 08:12:37 +00:00
|
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
2001-07-05 07:33:46 +00:00
|
|
|
|
|
|
|
MAN1= galeon.1
|
2000-08-01 09:05:58 +00:00
|
|
|
|
2000-08-17 09:49:02 +00:00
|
|
|
post-extract:
|
2001-01-17 13:08:10 +00:00
|
|
|
.if !defined(WITH_FULL_MOZILLA)
|
2000-08-17 09:49:02 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} " By default the port uses mozilla-embedded for html rendering, but if you are"
|
|
|
|
@${ECHO_MSG} " planning to use both Mozilla and Galeon you can instruct it to use mozilla by"
|
|
|
|
@${ECHO_MSG} " defining \"WITH_FULL_MOZILLA\"."
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
|
|
|
|
2000-08-04 16:11:37 +00:00
|
|
|
pre-patch:
|
2001-03-29 16:35:19 +00:00
|
|
|
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
2001-07-05 07:33:46 +00:00
|
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
|
|
|
|
s|-liconv|-lgiconv|g ; s|iconv\.h|giconv.h|g' ${WRKSRC}/configure
|
|
|
|
@find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL} -pi -e \
|
2000-08-01 09:05:58 +00:00
|
|
|
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
|
|
|
|
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g ; \
|
2001-03-29 16:35:19 +00:00
|
|
|
s|-lpthread|${PTHREAD_LIBS}|g'
|
2001-07-05 07:33:46 +00:00
|
|
|
@find ${WRKSRC} -name "*.[ch]" | xargs ${PERL} -pi -e \
|
|
|
|
's|iconv\.h|giconv.h|g'
|
2000-08-04 16:11:37 +00:00
|
|
|
|
2000-08-17 09:49:02 +00:00
|
|
|
post-configure:
|
2000-08-01 09:05:58 +00:00
|
|
|
@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g ; \
|
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g ; \
|
2000-08-17 09:49:02 +00:00
|
|
|
s|%%X11BASE%%|${X11BASE}|g ; \
|
|
|
|
s|%%MOZILLA%%|${MOZILLA}|g' ${WRKSRC}/src/galeon
|
2000-08-01 09:05:58 +00:00
|
|
|
|
2001-08-27 10:43:11 +00:00
|
|
|
pre-install:
|
|
|
|
@-${X11BASE}/bin/gconftool --shutdown
|
|
|
|
|
2000-08-01 09:05:58 +00:00
|
|
|
.include <bsd.port.mk>
|