1999-03-18 23:32:43 +01:00
|
|
|
# Ports collection Makefile for: GnomeICU
|
|
|
|
# Date created: 03/16/1999
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: nectar@FreeBSD.org
|
1998-10-19 16:36:42 +02:00
|
|
|
#
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1998-10-19 16:36:42 +02:00
|
|
|
#
|
|
|
|
|
2000-10-03 11:28:27 +02:00
|
|
|
PORTNAME= gnomeicu
|
2002-04-10 18:09:30 +02:00
|
|
|
PORTVERSION= 0.98.2
|
2002-04-12 19:10:20 +02:00
|
|
|
PORTREVISION= 1
|
2000-10-03 11:28:27 +02:00
|
|
|
CATEGORIES= net gnome
|
2000-10-29 20:49:46 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2002-04-10 18:09:30 +02:00
|
|
|
MASTER_SITE_SUBDIR= gnomeicu
|
1998-10-19 16:36:42 +02:00
|
|
|
|
2001-05-11 18:36:50 +02:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
1999-03-19 23:29:54 +01:00
|
|
|
|
2002-04-10 18:09:30 +02:00
|
|
|
USE_BZIP2= yes
|
2000-10-03 11:28:27 +02:00
|
|
|
USE_X_PREFIX= yes
|
2000-10-05 09:17:31 +02:00
|
|
|
USE_GNOME= yes
|
2000-10-03 11:28:27 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2001-12-29 05:07:34 +01:00
|
|
|
USE_GMAKE= yes
|
2002-04-10 18:09:30 +02:00
|
|
|
BUILD_DEPENDS+= gnet-config:${PORTSDIR}/net/gnet \
|
2002-04-12 19:10:20 +02:00
|
|
|
msgfmt:${PORTSDIR}/devel/gettext
|
2000-10-29 20:49:46 +01:00
|
|
|
.if defined(WITH_DANTE)
|
|
|
|
LIB_DEPENDS+= socks.1:${PORTSDIR}/net/dante
|
|
|
|
SOCKSFLAGS= -Dconnect=Rconnect -Dbind=Rbind -Dgetsockname=Rgetsockname \
|
|
|
|
-Dgetpeername=Rgetpeername -Daccept=Raccept \
|
|
|
|
-Drresvport=Rrresvport -Dbindresvport=Rbindresvport \
|
|
|
|
-Dgethostbyname=Rgethostbyname \
|
|
|
|
-Dgethostbyname2=Rgethostbyname2 -Dsendto=Rsendto \
|
|
|
|
-Drecvfrom=Rrecvfrom -Drecvfrom=Rrecvfrom -Dwrite=Rwrite \
|
|
|
|
-Dwritev=Rwritev -Dsend=Rsend -Dsendmsg=Rsendmsg \
|
|
|
|
-Dread=Rread -Dreadv=Rreadv -Drecv=Rrecv -Drecvmsg=Rrecvmsg
|
|
|
|
SOCKSLIBS= -lsocks
|
2001-12-29 05:07:34 +01:00
|
|
|
.elif defined(WITH_SOCKS5)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
|
|
|
|
SOCKSFLAGS= -DSOCKS -include ${LOCALBASE}/include/socks.h
|
|
|
|
SOCKSLIBS= -lsocks5
|
2000-10-29 20:49:46 +01:00
|
|
|
.endif
|
|
|
|
|
2002-04-10 18:09:30 +02:00
|
|
|
CONFIGURE_ARGS= --with-statusmenu
|
2000-10-29 20:49:46 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${SOCKSFLAGS} -I${LOCALBASE}/include" \
|
2002-03-19 13:52:55 +01:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" LIBS="-liconv ${SOCKSLIBS}" \
|
2002-04-12 19:10:20 +02:00
|
|
|
CFLAGS="${CFLAGS}"
|
2002-04-10 18:09:30 +02:00
|
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
1998-10-19 16:36:42 +02:00
|
|
|
|
2000-08-04 18:11:37 +02:00
|
|
|
pre-patch:
|
2001-03-29 18:35:19 +02:00
|
|
|
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
2000-08-04 04:50:51 +02:00
|
|
|
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'
|
|
|
|
|
1998-10-19 16:36:42 +02:00
|
|
|
.include <bsd.port.mk>
|