freebsd-ports/mail/xfmail/Makefile
Joe Marcus Clarke 9e5632dd66 Apply a big libtool patch to allow porters to use the libtool installed by
the libtoolX ports instead of the one included with each port.  Ports that
set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of
the included version.  To restore previous behavior, use the new macro,
USE_INC_LIBTOOL_VER.  Both macros accept the same argument: a libtool version.

For example, to use the ports version of libtool-1.5, add the following to
your Makefile:

USE_LIBTOOL_VER=        15

To use the included version of libtool with extra hacks provided by
libtool-1.5, add the following to your Makefile:

USE_INC_LIBTOOL_VER=    15

With this change, ports that had to add additional libtool hacks to prevent
.la files from being installed or to fix certain threading issues can now
delete those hacks (after appropriate testing, of course).

PR:		63944
Based on work by:eik and marcus
Approved by:	ade (autotools maintainer)
Tested by:	kris on pointyhat
Bound to be hidden problems:	You bet
2004-07-09 17:43:11 +00:00

80 lines
1.8 KiB
Makefile

# New ports collection makefile for: xfmail
# Date created: 30 June 1996
# Whom: gena
#
# $FreeBSD$
#
PORTNAME= xfmail
PORTVERSION= 1.5.5
PORTREVISION= 4
CATEGORIES= mail
MASTER_SITES= ftp://xfmail.cfreeze.com/pub/xfmail/release/%SUBDIR%/ \
ftp://ftp.welcomes-you.com/pub/xfmail/release/%SUBDIR%/ \
ftp://xfmail.ufies.org/pub/xfmail/release/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTVERSION}/source/
MAINTAINER= mikeh@FreeBSD.org
COMMENT= An X Window System application for receiving electronic mail
LIB_DEPENDS= forms.1:${PORTSDIR}/x11-toolkits/xforms \
gdbm.3:${PORTSDIR}/databases/gdbm
USE_BZIP2= yes
USE_GNOME= glib12
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
USE_X_PREFIX= yes
USE_XPM= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
USE_REINPLACE= yes
.include <bsd.port.pre.mk>
CONFIGURE_ARGS= --with-dbm-lib=gdbm
.if defined(WITH_ESOUND)
USE_GNOME+= esound
CONFIGURE_ARGS+= --with-esd-sound
.endif
.if defined(WITH_NAS)
LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas
CONFIGURE_ARGS+= --with-nas-sound
.endif
.if defined(WITH_FACES)
LIB_DEPENDS+= compface:${PORTSDIR}/mail/faces
CONFIGURE_ARGS+= --with-faces
.endif
.if defined(WITH_LDAP)
LIB_DEPENDS+= ldap.1:${PORTSDIR}/net/openldap12
CONFIGURE_ARGS+= --with-ldap
.endif
MAN1= xfmail.1
pre-everything::
@echo
.ifndef(WITH_ESOUND)
@echo "To build with esound support, restart make and define WITH_ESOUND"
.endif
.ifndef(WITH_NAS)
@echo "To build with Network Audio System support, restart make and define WITH_NAS"
.endif
.ifndef(WITH_FACES)
@echo "To build with faces support, restart make and define WITH_FACES"
.endif
.ifndef(WITH_LDAP)
@echo "To build with LDAP support, restart make and define WITH_LDAP"
.endif
@echo
post-patch:
@${REINPLACE_CMD} -e 's/libeditor/libxfeditor/g' \
${WRKSRC}/src/editor/Makefile.* \
${WRKSRC}/src/ui/Makefile.*
.include <bsd.port.post.mk>