# New ports collection makefile for: XEmacs with Mule # Date created: 8 Dec 1999 # Whom: KIRIYAMA Kazuhiko # # $FreeBSD$ # PORTNAME= xemacs-mule PORTVERSION= ${XEMACS_VER} PORTREVISION= 9 CATEGORIES+= editors MASTER_SITES= ${MASTER_SITE_XEMACS} MASTER_SITE_SUBDIR= xemacs-${XEMACS_REL} .if defined(CANNA) && defined(FREEWNN) PKGNAMESUFFIX+= -canna+freewnn .elif defined(CANNA) && defined(WNN6) PKGNAMESUFFIX+= -canna+wnn6 .elif defined(FREEWNN) PKGNAMESUFFIX+= -freewnn .elif defined(WNN6) PKGNAMESUFFIX+= -wnn6 .elif defined(CANNA) PKGNAMESUFFIX+= -canna .endif DISTNAME= xemacs-${XEMACS_VER} DIST_SUBDIR= xemacs MAINTAINER?= ports@FreeBSD.org COMMENT?= XEmacs(stable version) text editor with mule(Only the executables) CONFLICTS= emacs-19.* emacs-21.* \ xemacs-[0-9]* xemacs-devel-[0-9]* \ xemacs-devel-mule-[0-9]* BUILD_DEPENDS= ${LOCALBASE}/lib/xemacs/mule-packages/pkginfo/MANIFEST.mule-base:${PORTSDIR}/editors/xemacs-mule-packages RUN_DEPENDS= ${LOCALBASE}/lib/xemacs/mule-packages/pkginfo/MANIFEST.mule-base:${PORTSDIR}/editors/xemacs-mule-packages .if defined(PKGNAMEPREFIX) RUN_DEPENDS+= ${LOCALBASE}/lib/xemacs-${XEMACS_VER}/lisp/x-win-xfree86.elc:${PORTSDIR}/editors/xemacs21-mule .endif LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \ png15:${PORTSDIR}/graphics/png \ tiff.4:${PORTSDIR}/graphics/tiff \ compface.1:${PORTSDIR}/mail/faces XEMACS_REL= 21.4 XEMACS_VER= ${XEMACS_REL}.22 XEMACS_ARCH= ${CONFIGURE_TARGET} USE_BZIP2= yes USE_GETTEXT= yes USE_CSTD= gnu89 USE_XORG= xpm xbitmaps xaw STRIP= USE_AUTOTOOLS= autoconf213 CONFIGURE_TARGET=${MACHINE_ARCH}--freebsd CFLAGS+= -I${LOCALBASE}/include/libpng15 CONFIGURE_ARGS= --with-x11 \ --with-mule \ --with-site-lisp \ --site-libraries='${SITE_LIBRARIES}' \ --site-includes='${SITE_INCLUDES}' \ --with-xface \ --with-sound=native \ --with-pop \ --with-xfs \ --with-jpeg \ --with-png \ --with-tiff \ --with-xpm \ --infopath=${LOCALBASE}/lib/xemacs/info:${LOCALBASE}/info:/usr/info:${LOCALBASE}/lib/texmf/doc/info:/usr/lib/texmf/doc:/usr/share/info \ --with-clash-detection \ --with-database=berkdb \ ${WITH_XIM} \ ${WITH_MENUBARS} ${WITH_SCROLLBARS} \ ${WITH_DIALOGS} ${WITH_WIDGETS} INFO_PATH= lib/xemacs-${XEMACS_VER}/info MAKE_ARGS= prefix=${PREFIX} ALL_TARGET= all dist .if defined(PKGNAMEPREFIX) INSTALL_TARGET= install-arch-dep PLIST= ${PKGDIR}/pkg-plist.arch-dep .else MAN1= ctags.1 etags.1 gnuattach.1 gnuclient.1 gnudoit.1 \ gnuserv.1 xemacs.1 .endif .if defined(WITH_GTK) CONFIGURE_ARGS+=--with-gtk USE_GNOME+= gtk12 .endif PKGDIR= ${.CURDIR}/../../editors/xemacs21-mule PLIST_SUB= XEMACS_VER=${XEMACS_VER} XEMACS_ARCH=${XEMACS_ARCH} .include # Undump and malloc do not behave on amd64 at the moment .if ${ARCH} == "amd64" CONFIGURE_ARGS+=--with-system-malloc --pdump PLIST_SUB+= PDUMP="" .else PLIST_SUB+= PDUMP="@comment " .endif pre-fetch: .if !defined(WITH_GTK) @${ECHO_MSG} "If you want to use GTK, please set the environment variable WITH_GTK and recompile." .endif .if !defined(WITHOUT_MOTIF) .if !defined(MOTIF_STATIC) @${ECHO_MSG} "" @${ECHO_MSG} "If your MOTIF library is actually lesstif, you might occasionally" @${ECHO_MSG} "experience locked-up frames." @${ECHO_MSG} "In this case, set the environment variable MOTIF_STATIC and recompile, " @${ECHO_MSG} "which will force the use of athena widgets for dialogs." .endif USE_MOTIF= yes # hack to avoid shipping binaries linked with Motif .if defined(MOTIF_STATIC) WITH_DIALOGS= --with-dialogs=athena .else WITH_DIALOGS= --with-dialogs=motif .endif .if defined(PACKAGE_BUILDING) CONFIGURE_ARGS+=--with-offix=no .endif WITH_MENUBARS?= --with-menubars=lucid WITH_SCROLLBARS?=--with-scrollbars=motif WITH_WIDGETS?= --with-widgets=motif .endif WITH_XIM?= --with-xim=xlib WITH_MENUBARS?= --with-menubars=athena 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 CONFIGURE_ARGS+=--with-athena=3d .else CONFIGURE_ARGS+=--with-athena=xaw .endif BINNAMEEXT= -mule .if defined(CANNA) && defined(FREEWNN) CONFIGURE_ARGS+= --with-canna --with-wnn --with-wnn6=no LIB_DEPENDS+= canna.1:${PORTSDIR}/japanese/canna-lib \ wnn.0:${PORTSDIR}/japanese/FreeWnn-lib PLIST_SUB+= CANNA="" .elif defined(CANNA) && defined(WNN6) SITE_INCLUDES= ${LOCALBASE}/include/wnn6 CONFIGURE_ARGS+= --with-canna --with-wnn6 LIB_DEPENDS+= canna.1:${PORTSDIR}/japanese/canna-lib \ wnn6.2:${PORTSDIR}/japanese/Wnn6-lib PLIST_SUB+= CANNA="" .elif defined(FREEWNN) CONFIGURE_ARGS+= --with-wnn --with-canna=no --with-wnn6=no LIB_DEPENDS+= wnn.0:${PORTSDIR}/japanese/FreeWnn-lib .elif defined(WNN6) SITE_INCLUDES= ${LOCALBASE}/include/wnn6 CONFIGURE_ARGS+= --with-wnn6 --with-canna=no LIB_DEPENDS+= wnn6.2:${PORTSDIR}/japanese/Wnn6-lib .elif defined(CANNA) CONFIGURE_ARGS+= --with-canna --with-wnn=no --with-wnn6=no LIB_DEPENDS+= canna.1:${PORTSDIR}/japanese/canna-lib PLIST_SUB+= CANNA="" .else CONFIGURE_ARGS+= --with-canna=no --with-wnn=no --with-wnn6=no PLIST_SUB+= CANNA="@comment " .endif SITE_INCLUDES+= ${LOCALBASE}/include SITE_LIBRARIES+= ${LOCALBASE}/lib .if defined(PKGNAMEPREFIX) .if ${PKGNAMEPREFIX} == "ja-" PLIST_FILES+= man/ja/man1/xemacs.1 \ lib/xemacs/mule-packages/etc/app-defaults/ja_JP.eucJP .endif .endif # fix .so references in a few man pages pre-configure:: .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} .endfor @${REINPLACE_CMD} -e 's/^mandir=@mandir@/mandir=@mandir@\/man1/' \ ${WRKSRC}/Makefile.in.in pre-build: @${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) \ -exec ${RM} -f \{} \; @${RM} -f ${WRKSRC}/lib-src/DOC* ${WRKSRC}/src/xemacs post-install:: .for f in b2m ctags ellcc etags gnuclient xemacs-${XEMACS_VER} ${STRIP_CMD} ${PREFIX}/bin/${f} .endfor # 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 ${RM} -f ${PREFIX}/bin/send-pr .if defined(WITH_GTK) @${ECHO_MSG} "Please be aware that GTK support is buggy. Do not report bugs to" @${ECHO_MSG} "the maintainer." @${ECHO_MSG} "Please also be aware that the package's name was automagically changed" @${ECHO_MSG} "to ${PORTNAME}${PKGNAMESUFFIX}-${XEMACS_VER}." .endif .if defined(PKGNAMEPREFIX) .if ${PKGNAMEPREFIX} == "ja-" @${MKDIR} ${PREFIX}/man/ja/man1 @${INSTALL_MAN} ${WRKSRC}/etc/xemacs-ja.1 ${PREFIX}/man/ja/man1/xemacs.1 @${LN} -sf ja ${PREFIX}/lib/xemacs/mule-packages/etc/app-defaults/ja_JP.eucJP .endif .endif .include