1dd602ade3
PR: ports/33146 Submitted by: Jochem Kossen <j.kossen@home.nl> Fix the locale directories. Add a WITH_SOCKS5 knob while I'm here.
51 lines
1.6 KiB
Makefile
51 lines
1.6 KiB
Makefile
# Ports collection Makefile for: GnomeICU
|
|
# Date created: 03/16/1999
|
|
# Whom: nectar@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gnomeicu
|
|
PORTVERSION= 0.98
|
|
CATEGORIES= net gnome
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= gnomeicu
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
USE_X_PREFIX= yes
|
|
USE_GNOME= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
BUILD_DEPENDS+= gnet-config:${PORTSDIR}/net/gnet
|
|
.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
|
|
.elif defined(WITH_SOCKS5)
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
|
|
SOCKSFLAGS= -DSOCKS -include ${LOCALBASE}/include/socks.h
|
|
SOCKSLIBS= -lsocks5
|
|
.endif
|
|
|
|
CONFIGURE_ARGS= --with-statusmenu
|
|
CONFIGURE_ENV= CPPFLAGS="${SOCKSFLAGS} -I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" LIBS="-lgiconv ${SOCKSLIBS}" \
|
|
CFLAGS="${CFLAGS}"
|
|
|
|
pre-patch:
|
|
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|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'
|
|
|
|
.include <bsd.port.mk>
|