blob: b74df71d4142d28df251a1e445c6a3ad59e03562 (
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
|
# New ports collection makefile for: balsa
# Date created: 02 December 1998
# Whom: Glenn Johnson <gljohns@bellsouth.net>
#
# $FreeBSD$
#
PORTNAME= balsa
PORTVERSION= 1.0.pre1
#PORTREVISION= 1
CATEGORIES= mail gnome
MASTER_SITES= http://www.theochem.kth.se/~pawsa/balsa/ \
ftp://ftp.newton.cx/pub/balsa/
MAINTAINER= sobomax@FreeBSD.org
LIB_DEPENDS= gnome.4:${PORTSDIR}/x11/gnomelibs \
PropList.2:${PORTSDIR}/devel/libPropList \
pspell.2:${PORTSDIR}/textproc/pspell \
gnomeprint.12:${PORTSDIR}/print/gnomeprint
RUN_DEPENDS= gnomecc:${PORTSDIR}/sysutils/gnomecontrolcenter \
${X11BASE}/share/gnome/sounds/login.wav:${PORTSDIR}/audio/gnomeaudio \
panel:${PORTSDIR}/x11/gnomecore
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
USE_X_PREFIX= yes
USE_LIBTOOL= yes
LIBTOOLFILES= configure libmutt/configure
CONFIGURE_ENV= CPPFLAGS='-I${LOCALBASE}/include' \
GTK_CONFIG='${GTK_CONFIG}' \
GLIB_CONFIG='${GLIB_CONFIG}' \
LIBS='-L${LOCALBASE}/lib'
CONFIGURE_ARGS= --localstatedir=${PREFIX}/share/gnome \
--datadir=${PREFIX}/share/gnome \
--with-gnome=${PREFIX} \
--enable-threads \
--disable-more-warnings
MAN1= balsa.1
pre-patch:
@${PERL} -pi -e 's|-lpthread|-pthread|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g ; \
s|\$\(gnomedatadir\)/gnome|\$\(gnomedatadir\)|g'
@find ${WRKSRC}/help -name "*.html" | xargs ${PERL} -pi -e \
's|\.gif|.png|g'
.include <bsd.port.mk>
|