1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/net/dctc-gui/Makefile
Mario Sergio Fujikawa Ferreira a237d3f85f Remove BROKEN since bento no longer complains due to auto* tool
"fixes" introduced in last rev
2002-10-10 16:22:55 +00:00

72 lines
2.2 KiB
Makefile

# 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
PORTVERSION= 0.62
CATEGORIES= net gnome
MASTER_SITES= http://unixpages.org/distfiles/ \
http://ac2i.tzo.com/dctc/
PKGNAMESUFFIX= -gui
DISTNAME= dc_gui-${PORTVERSION}
MAINTAINER= lioux@FreeBSD.org
BUILD_DEPENDS= dctc:${PORTSDIR}/net/dctc
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4 \
intl.4:${PORTSDIR}/devel/gettext
USE_X_PREFIX= yes
USE_GNOMENG= yes
USE_GNOME= gnomelibs
USE_XLIB= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnome=${X11BASE} \
--with-gtk-prefix=${LOCALBASE} \
--datadir=${X11BASE}/share/gnome \
--enable-manual-db-detect \
--with-libiconv-prefix=${LOCALBASE}
DOC_FILES= COPYING ChangeLog README TODO
post-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${PERL} -pi -e \
's|(\$$\(datadir\))/gnome|\1|; \
s|ldb-4.0|ldb4|; \
s|<(db.h>)|<db4/\1|; \
s|include.+<linux/sem.h>|include <sys/ipc.h>\n#include <sys/sem.h>|'
@${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|' \
${WRKSRC}/src/init_fnc.c
# XXX - revise at every port update
@${REINPLACE_CMD} -e "s|%'|%|g" ${WRKSRC}/src/*.c
post-configure:
@${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
@${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
# disable GNU auto* tools
@${FIND} ${WRKSRC} -type f -name "Makefile" | ${XARGS} \
-n 10 ${REINPLACE_CMD} -E -e \
's! (autoconf|autoheader|automake|aclocal)$$! ${TRUE}!'
post-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}${PKGNAMESUFFIX}
.for file in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}${PKGNAMESUFFIX}
.endfor
.endif
.include <bsd.port.mk>