2004-10-23 18:12:40 +00:00
|
|
|
# New ports collection makefile for: gresolver
|
|
|
|
# Date created: 23 Oct 2004
|
|
|
|
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-09-06 15:13:28 +00:00
|
|
|
PORTNAME= gresolver
|
2006-06-03 17:52:00 +00:00
|
|
|
PORTVERSION= 0.0.5
|
2005-09-06 15:13:28 +00:00
|
|
|
CATEGORIES= dns
|
|
|
|
MASTER_SITES= http://jodrell.net/files/gresolver/
|
2004-10-23 18:12:40 +00:00
|
|
|
|
2005-09-06 15:13:28 +00:00
|
|
|
MAINTAINER= jylefort@FreeBSD.org
|
|
|
|
COMMENT= A graphical DNS query tool using GTK+
|
2004-10-23 18:12:40 +00:00
|
|
|
|
2005-09-06 15:13:28 +00:00
|
|
|
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Gtk2.pm:${PORTSDIR}/x11-toolkits/p5-Gtk2 \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Gtk2/GladeXML.pm:${PORTSDIR}/x11-toolkits/p5-Glade2 \
|
|
|
|
${SITE_PERL}/Net/IPv6Addr.pm:${PORTSDIR}/net-mgmt/p5-Net-IPv6Addr
|
2005-02-07 21:51:13 +00:00
|
|
|
|
2005-09-06 15:13:28 +00:00
|
|
|
USE_X_PREFIX= yes
|
2004-10-23 18:12:40 +00:00
|
|
|
|
2006-06-03 17:52:00 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
# The Perl script uses GtkFileChooser widgets, which need libpthread
|
|
|
|
# through /usr/X11R6/lib/gtk-2.0/2.4.0/filesystems/libgnome-vfs.so.
|
|
|
|
# Unfortunately, on FreeBSD, if an application uses a library which
|
|
|
|
# uses libpthread, the application itself must link against
|
|
|
|
# libpthread. This is why a threaded Perl is required.
|
|
|
|
|
|
|
|
HAVE_THREADS!= ${PERL} -mthreads -e '' >/dev/null 2>&1 && ${ECHO_CMD} 'yes' || true
|
|
|
|
|
|
|
|
.if empty(HAVE_THREADS)
|
|
|
|
IGNORE= needs a threaded Perl, install lang/perl5.8 with threads support and try again
|
|
|
|
.endif
|
|
|
|
|
2005-09-06 15:13:28 +00:00
|
|
|
do-build:
|
|
|
|
@${SED} -e 's|@PREFIX@|${PREFIX}|' ${WRKSRC}/gresolver.pl > ${WRKSRC}/gresolver
|
2004-10-23 18:12:40 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/gresolver ${PREFIX}/bin
|
2005-09-06 15:13:28 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gresolver.desktop ${PREFIX}/share/applications
|
|
|
|
${MKDIR} ${PREFIX}/share/pixmaps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gresolver.png ${PREFIX}/share/pixmaps
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gresolver.glade ${DATADIR}
|
|
|
|
|
2006-06-03 17:52:00 +00:00
|
|
|
.include <bsd.port.post.mk>
|