1997-09-03 21:27:58 +02:00
|
|
|
# New ports collection makefile for: X-Emacs
|
2001-10-25 20:30:16 +02:00
|
|
|
# Date created: 25 Oct 2001
|
|
|
|
# Whom: Gary Jennejohn (gj@FreeBSD.org)
|
1997-09-03 21:27:58 +02:00
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1997-09-03 21:27:58 +02:00
|
|
|
#
|
|
|
|
|
2003-04-23 11:55:07 +02:00
|
|
|
PORTNAME= xemacs
|
2000-04-13 08:50:45 +02:00
|
|
|
PORTVERSION= ${XEMACS_VER}
|
2009-07-18 13:11:29 +02:00
|
|
|
PORTREVISION= 1
|
2008-07-20 19:40:01 +02:00
|
|
|
CATEGORIES= editors
|
2000-10-24 14:09:17 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_XEMACS}
|
|
|
|
MASTER_SITE_SUBDIR= xemacs-${XEMACS_REL}
|
2001-10-25 20:30:16 +02:00
|
|
|
DISTNAME= xemacs-${XEMACS_VER}
|
2000-10-24 14:09:17 +02:00
|
|
|
DIST_SUBDIR= xemacs
|
1997-09-03 21:27:58 +02:00
|
|
|
|
2008-07-23 04:43:55 +02:00
|
|
|
MAINTAINER= pgollucci@FreeBSD.org
|
2008-07-20 19:40:01 +02:00
|
|
|
COMMENT= This port tracks the stable version of the XEmacs text editor
|
1997-09-03 21:27:58 +02:00
|
|
|
|
2007-05-03 19:15:47 +02:00
|
|
|
CONFLICTS= emacs-19.* emacs-21.* emacs-22.* \
|
2005-05-06 11:07:45 +02:00
|
|
|
xemacs-devel-[0-9]* \
|
|
|
|
xemacs-mule-[0-9]* xemacs-devel-mule-[0-9]*
|
|
|
|
|
2001-10-25 20:30:16 +02:00
|
|
|
XEMACS_REL= 21.4
|
2009-01-12 01:16:09 +01:00
|
|
|
XEMACS_VER= 21.4.22
|
2000-10-24 12:53:40 +02:00
|
|
|
XEMACS_ARCH= ${CONFIGURE_TARGET}
|
|
|
|
|
2005-02-09 10:38:44 +01:00
|
|
|
USE_BZIP2= yes
|
2005-06-15 09:25:14 +02:00
|
|
|
WANT_GNOME= yes
|
1997-09-03 21:27:58 +02:00
|
|
|
STRIP=
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= autoconf:213
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET=${MACHINE_ARCH}--freebsd
|
2000-06-06 20:17:14 +02:00
|
|
|
|
2000-10-24 12:53:40 +02:00
|
|
|
CONFIGURE_ARGS?=--with-clash-detection \
|
2002-10-29 14:03:48 +01:00
|
|
|
--with-sound=native,nonas,noesd \
|
2000-08-09 19:45:19 +02:00
|
|
|
--site-includes=${LOCALBASE}/include \
|
|
|
|
--site-libraries=${LOCALBASE}/lib \
|
2000-07-13 23:03:03 +02:00
|
|
|
--with-site-lisp \
|
2000-09-23 21:27:31 +02:00
|
|
|
--with-database=berkdb \
|
2005-02-09 10:38:44 +01:00
|
|
|
${WITH_SCROLLBARS} ${WITH_DIALOGS} ${WITH_WIDGETS} \
|
|
|
|
${WITH_XFACE} ${WITH_OFFIX}
|
1999-12-25 13:34:09 +01:00
|
|
|
MAKE_ARGS= prefix=${PREFIX}
|
1997-09-03 21:27:58 +02:00
|
|
|
MAN1= ctags.1 etags.1 gnuattach.1 gnuclient.1 gnudoit.1 \
|
|
|
|
gnuserv.1 xemacs.1
|
2007-07-23 11:36:51 +02:00
|
|
|
INFO= xemacs-${XEMACS_VER}/cl \
|
|
|
|
xemacs-${XEMACS_VER}/custom \
|
|
|
|
xemacs-${XEMACS_VER}/emodules \
|
|
|
|
xemacs-${XEMACS_VER}/external-widget \
|
|
|
|
xemacs-${XEMACS_VER}/info \
|
|
|
|
xemacs-${XEMACS_VER}/internals \
|
|
|
|
xemacs-${XEMACS_VER}/lispref \
|
|
|
|
xemacs-${XEMACS_VER}/new-users-guide \
|
|
|
|
xemacs-${XEMACS_VER}/standards \
|
|
|
|
xemacs-${XEMACS_VER}/term \
|
|
|
|
xemacs-${XEMACS_VER}/termcap \
|
|
|
|
xemacs-${XEMACS_VER}/texinfo \
|
|
|
|
xemacs-${XEMACS_VER}/widget \
|
|
|
|
xemacs-${XEMACS_VER}/xemacs-faq \
|
|
|
|
xemacs-${XEMACS_VER}/xemacs
|
1997-12-15 21:07:46 +01:00
|
|
|
ALL_TARGET= all dist
|
1999-06-23 00:02:00 +02:00
|
|
|
|
2008-07-20 19:40:01 +02:00
|
|
|
PLIST_SUB+= XEMACS_VER=${XEMACS_VER} XEMACS_ARCH=${XEMACS_ARCH}
|
1997-09-03 21:27:58 +02:00
|
|
|
|
2004-03-25 11:17:38 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
# Undump and malloc do not behave on amd64 at the moment
|
|
|
|
.if ${ARCH} == amd64
|
2005-02-09 10:38:44 +01:00
|
|
|
CONFIGURE_ARGS+= --with-system-malloc --pdump
|
2005-11-26 17:32:22 +01:00
|
|
|
PLIST_SUB+= PDUMP=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PDUMP="@comment "
|
2004-03-25 11:17:38 +01:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 16:08:39 +01:00
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
USE_OPENLDAP= yes
|
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-ldap=no
|
|
|
|
.endif
|
|
|
|
|
2007-02-27 19:44:10 +01:00
|
|
|
.if defined(WITH_POSTGRES)
|
2007-03-11 15:41:27 +01:00
|
|
|
USE_PGSQL= yes
|
2007-02-27 19:44:10 +01:00
|
|
|
CONFIGURE_ARGS+= --with-postgresql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-postgresql
|
|
|
|
.endif
|
|
|
|
|
2005-06-15 09:25:14 +02:00
|
|
|
.if !defined(WITHOUT_XEMACS_PACKAGES)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/xemacs/xemacs-packages/etc/enriched.doc:${PORTSDIR}/editors/xemacs-packages
|
|
|
|
.endif
|
2005-02-09 10:38:44 +01:00
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png \
|
2009-07-18 13:11:29 +02:00
|
|
|
jpeg.10:${PORTSDIR}/graphics/jpeg \
|
2005-06-15 09:25:14 +02:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
2005-02-09 10:38:44 +01:00
|
|
|
CONFIGURE_ARGS+= --with-png --with-jpeg --with-tiff
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= xpm x11
|
2005-02-09 10:38:44 +01:00
|
|
|
.if !defined(WITHOUT_MOTIF) && !defined(MOTIF_STATIC)
|
2004-04-13 08:29:58 +02:00
|
|
|
USE_MOTIF= yes
|
2005-02-09 10:38:44 +01:00
|
|
|
WITH_SCROLLBARS= --with-scrollbars=motif
|
|
|
|
WITH_DIALOGS= --with-dialogs=motif
|
|
|
|
WITH_WIDGETS= --with-widgets=motif
|
|
|
|
.else
|
|
|
|
WITH_SCROLLBARS= --with-scrollbars=athena
|
|
|
|
WITH_DIALOGS= --with-dialogs=athena
|
|
|
|
WITH_WIDGETS= --with-widgets=athena
|
|
|
|
.if defined(WITH_XAW3D)
|
|
|
|
LIB_DEPENDS+= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
|
2009-05-16 08:27:56 +02:00
|
|
|
|
|
|
|
MAKE_JOBS_SAFE= yes
|
2005-02-09 10:38:44 +01:00
|
|
|
CONFIGURE_ARGS+= --with-athena=3d
|
1998-01-01 22:06:47 +01:00
|
|
|
.endif
|
2002-01-28 21:44:11 +01:00
|
|
|
.endif
|
2005-02-09 10:38:44 +01:00
|
|
|
.else
|
2002-01-28 21:44:11 +01:00
|
|
|
CONFIGURE_ARGS+= --without-x11
|
|
|
|
.endif
|
1997-09-03 21:27:58 +02:00
|
|
|
|
2005-06-15 09:25:14 +02:00
|
|
|
.if !defined(WITHOUT_X11) && ${HAVE_GNOME:Mgnomehier}!=""
|
|
|
|
USE_GNOME+= gnomehier
|
|
|
|
PLIST_SUB+= DESKTOP=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DESKTOP="@comment "
|
|
|
|
.endif
|
|
|
|
|
2009-01-10 18:34:09 +01:00
|
|
|
post-extract:
|
2005-06-15 09:25:14 +02:00
|
|
|
@${SED} -e 's|@XEMACS_ICON@|${LOCALBASE}/lib/xemacs-${XEMACS_VER}/etc/xemacs-icon.xpm|' \
|
|
|
|
<${FILESDIR}/xemacs.desktop.in >${WRKDIR}/xemacs.desktop
|
|
|
|
|
2005-02-09 10:38:44 +01:00
|
|
|
pre-patch:
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
.if !defined(WITHOUT_MOTIF) && !defined(MOTIF_STATIC)
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "If your MOTIF library is lesstif you might occasionally"
|
|
|
|
@${ECHO_MSG} "experience locked-up frames."
|
|
|
|
@${ECHO_MSG} "In this case, set the environment variable WITHOUT_MOTIF"
|
|
|
|
@${ECHO_MSG} "and recompile, which will force the use of athena for"
|
|
|
|
@${ECHO_MSG} "scrollbars, dialogs and widgets."
|
1997-09-03 21:27:58 +02:00
|
|
|
.endif
|
2005-02-09 10:38:44 +01:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Set the environment variable WITHOUT_X11 if you do not"
|
|
|
|
@${ECHO_MSG} "want to use X11."
|
2002-01-28 21:44:11 +01:00
|
|
|
.endif
|
|
|
|
|
2009-01-10 18:34:09 +01:00
|
|
|
post-patch:
|
2007-07-23 11:36:51 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,@mandir@,@mandir@/man1,' \
|
|
|
|
${WRKSRC}/Makefile.in.in
|
|
|
|
|
1998-10-01 21:29:50 +02:00
|
|
|
# Drop faces (libcompface) and offix (libDnd) if building package,
|
|
|
|
# autodetect otherwise
|
1998-02-16 15:38:26 +01:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
WITH_XFACE?= --with-xface=no
|
1998-10-01 21:29:50 +02:00
|
|
|
WITH_OFFIX?= --with-offix=no
|
1998-02-16 15:38:26 +01:00
|
|
|
.endif
|
2004-12-25 23:27:59 +01:00
|
|
|
|
2001-10-08 12:34:46 +02:00
|
|
|
# fix .so references in a few man pages
|
2009-01-10 18:34:09 +01:00
|
|
|
pre-configure:
|
2005-02-09 10:38:44 +01:00
|
|
|
.for f in etc/ctags.1 etc/gnuattach.1 etc/gnuclient.1 etc/gnudoit.1
|
|
|
|
@${SED} -e 's/\.1/&.gz/' ${WRKSRC}/${f} > ${WRKDIR}/tmp_zot
|
|
|
|
@${MV} ${WRKDIR}/tmp_zot ${WRKSRC}/${f}
|
2001-10-08 12:34:46 +02:00
|
|
|
.endfor
|
|
|
|
|
2009-01-10 18:34:09 +01:00
|
|
|
post-install:
|
2005-02-09 10:38:44 +01:00
|
|
|
.for f in b2m ctags ellcc etags gnuclient xemacs-${XEMACS_VER}
|
|
|
|
${STRIP_CMD} ${PREFIX}/bin/${f}
|
1997-09-03 21:27:58 +02:00
|
|
|
.endfor
|
2005-06-15 09:25:14 +02:00
|
|
|
.if !defined(WITHOUT_X11) && ${HAVE_GNOME:Mgnomehier}!=""
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/xemacs.desktop \
|
2007-10-25 01:37:25 +02:00
|
|
|
${LOCALBASE}/share/applications
|
2005-06-15 09:25:14 +02:00
|
|
|
.endif
|
2000-07-13 23:03:03 +02:00
|
|
|
# For some reason install no longer makes ${PREFIX}/lib/xemacs/site-lisp.
|
|
|
|
# Do what PLIST does for pkg_add.
|
|
|
|
${MKDIR} ${PREFIX}/lib/xemacs/site-lisp
|
|
|
|
${CHMOD} 755 ${PREFIX}/lib/xemacs/site-lisp
|
2005-11-26 17:32:22 +01:00
|
|
|
${RM} -f ${PREFIX}/bin/send-pr
|
1997-09-03 21:27:58 +02:00
|
|
|
|
2004-03-25 11:17:38 +01:00
|
|
|
.include <bsd.port.post.mk>
|