freebsd-ports/mail/gnubiff/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

65 lines
1.5 KiB
Makefile

# New ports collection makefile for: gnubiff
# Date created: 3 May 2004
# Whom: Tim Bishop <tim@bishnet.net>
#
# $FreeBSD$
#
PORTNAME= gnubiff
PORTVERSION= 2.2.6
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= tdb@FreeBSD.org
COMMENT= A mail notification program for Gnome
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
USE_GNOME= intlhack libglade2 esound
USE_GMAKE= yes
USE_FAM= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
CXXFLAGS="-Wno-long-long"
# CXXFLAGS needed to work round issue with gcc and openssl 0.9.8a
# /usr/local/include/openssl/sha.h:173: error: ISO C++ does not support `long long'
MAN1= gnubiff.1
INFO= gnubiff
.ifdef(WITH_GNUBIFF_PASSWORD)
CONFIGURE_ARGS+= --with-password
.endif
.ifndef(WITHOUT_NLS)
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
USE_GETTEXT= yes
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
# This application can dock in the GNOME panel, or it can not.
# Only install support if gnomepanel is already installed.
WANT_GNOME= yes
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgnomepanel}!=""
USE_GNOME+= gnomepanel gconf2 gnomeprefix gnomehack
PKGNAMESUFFIX+= -gnome
PLIST_SUB+= SHAREDIR="share/gnome"
PLIST_SUB+= BONOBODIR="libdata/bonobo"
PLIST_SUB+= WITH_GNOME=""
.else
CONFIGURE_ARGS+= --disable-gnome
PLIST_SUB+= SHAREDIR="share"
PLIST_SUB+= BONOBODIR="lib/bonobo"
PLIST_SUB+= WITH_GNOME="@comment "
.endif
.include <bsd.port.post.mk>