2001-11-21 23:34:15 -05:00
|
|
|
# New ports collection makefile for: GUI to Direct Connect Text Client
|
|
|
|
# Date created: Thu Nov 22 00:34:48 BRST 2001
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dctc
|
2002-05-20 20:30:53 -04:00
|
|
|
PORTVERSION= 0.56
|
2001-11-21 23:34:15 -05:00
|
|
|
CATEGORIES= net gnome
|
|
|
|
MASTER_SITES= http://ac2i.tzo.com/dctc/
|
|
|
|
PKGNAMESUFFIX= -gui
|
|
|
|
DISTNAME= dc_gui-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
|
|
|
2002-02-01 09:43:52 -05:00
|
|
|
BUILD_DEPENDS= dctc:${PORTSDIR}/net/dctc
|
2001-11-21 23:34:15 -05:00
|
|
|
LIB_DEPENDS= ORBit.2:${PORTSDIR}/devel/ORBit \
|
2002-03-31 17:20:22 -05:00
|
|
|
db4.0:${PORTSDIR}/databases/db4 \
|
2002-04-12 13:10:20 -04:00
|
|
|
intl.2:${PORTSDIR}/devel/gettext
|
2001-11-21 23:34:15 -05:00
|
|
|
|
|
|
|
USE_GNOMELIBS= yes
|
|
|
|
USE_GTK= yes
|
|
|
|
USE_XLIB= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
CONFIGURE_ARGS= --with-gnome=${X11BASE} \
|
|
|
|
--with-gtk-prefix=${LOCALBASE} \
|
2002-04-17 17:21:29 -04:00
|
|
|
--enable-manual-db-detect \
|
2001-11-21 23:34:15 -05:00
|
|
|
--with-libiconv-prefix=${LOCALBASE}
|
|
|
|
|
2002-04-17 17:21:29 -04:00
|
|
|
DOC_FILES= COPYING ChangeLog README TODO
|
2002-01-20 21:29:58 -05:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${PERL} -pi -e \
|
2002-03-13 16:42:25 -05:00
|
|
|
's|(\$$\(datadir\))/gnome|\1|; \
|
2002-03-31 17:20:22 -05:00
|
|
|
s|ldb-4.0|ldb4|; \
|
2002-04-17 17:21:29 -04:00
|
|
|
s|<(db.h>)|<db4/\1|; \
|
2002-01-20 21:29:58 -05:00
|
|
|
s|include.+<linux/sem.h>|include <sys/ipc.h>\n#include <sys/sem.h>|'
|
2002-03-13 16:42:25 -05:00
|
|
|
@${PERL} -pi -e 's|(hublist)|dc_\1|m' ${WRKSRC}/configure
|
|
|
|
@${PERL} -pi -e 's|(<stdio.h>.*)$$|\1\n#include <config.h>|; \
|
|
|
|
s|(cmdline.+)(hublist)|\1dc_\2|' \
|
2002-01-20 21:29:58 -05:00
|
|
|
${WRKSRC}/src/init_fnc.c
|
|
|
|
|
|
|
|
post-configure:
|
2002-02-19 12:26:10 -05:00
|
|
|
@${ECHO_CMD} '#ifndef MSG_NOSIGNAL' >> ${CONFIGURE_WRKSRC}/config.h
|
|
|
|
@${ECHO_CMD} '# define MSG_NOSIGNAL 0' >> ${CONFIGURE_WRKSRC}/config.h
|
|
|
|
@${ECHO_CMD} '#endif' >> ${CONFIGURE_WRKSRC}/config.h
|
2002-01-29 06:48:57 -05:00
|
|
|
@${ECHO_CMD} '#include <sys/param.h>' >> ${CONFIGURE_WRKSRC}/config.h
|
|
|
|
@${ECHO_CMD} '#ifndef SEMVMX' >> ${WRKSRC}/config.h
|
|
|
|
@${ECHO_CMD} '#define SEMVMX 32767' >> ${WRKSRC}/config.h
|
|
|
|
@${ECHO_CMD} '#endif' >> ${WRKSRC}/config.h
|
2001-11-21 23:34:15 -05:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}${PKGNAMESUFFIX}
|
|
|
|
.for file in ${DOC_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}${PKGNAMESUFFIX}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|