Changeset View
Changeset View
Standalone View
Standalone View
editors/emacs-devel/Makefile
# Created by: Kenneth Vestergaard Schmidt <kvs@pil.dk> | # Created by: Kenneth Vestergaard Schmidt <kvs@pil.dk> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= emacs | PORTNAME= emacs | ||||
DISTVERSION= ${EMACS_VER}.${EMACS_REV} | DISTVERSION= ${EMACS_VER}.${EMACS_REV} | ||||
PORTREVISION= 1 | |||||
PORTEPOCH= 2 | PORTEPOCH= 2 | ||||
CATEGORIES= editors ipv6 | CATEGORIES= editors ipv6 | ||||
PKGNAMESUFFIX= -devel | PKGNAMESUFFIX= -devel | ||||
MAINTAINER= ashish@FreeBSD.org | MAINTAINER= ashish@FreeBSD.org | ||||
COMMENT= GNU editing macros | COMMENT= GNU editing macros | ||||
LICENSE= GPLv3 | LICENSE= GPLv3+ | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
CONFLICTS= emacs25-[0-9]* emacs-nox11-[0-9]* | CONFLICTS= emacs25-[0-9]* emacs-nox11-[0-9]* | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= emacs-mirror | GH_ACCOUNT= emacs-mirror | ||||
GH_TAGNAME= 25dca60d | GH_TAGNAME= 51b2669 | ||||
EMACS_VER= 25.2.50 | EMACS_VER= 26.0.50 | ||||
EMACS_REV= 20161001 | EMACS_REV= 20161214 | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
USES= autoreconf cpe gmake makeinfo ncurses pkgconfig | USES= autoreconf cpe gmake makeinfo ncurses pkgconfig | ||||
INFO_PATH= ${DATADIR_REL}/info | INFO_PATH= ${DATADIR_REL}/info | ||||
CPE_VENDOR= gnu | CPE_VENDOR= gnu | ||||
SUB_FILES+= sources.el | SUB_FILES= sources.el | ||||
SUB_LIST+= ARCHLIBDIR=${PREFIX}/libexec/emacs/${EMACS_VER}/${CONFIGURE_TARGET} | SUB_LIST= EMACS_VER=${EMACS_VER} | ||||
SUB_LIST+= EMACS_VER=${EMACS_VER} | |||||
CONFIGURE_ARGS= --localstatedir=/var \ | CONFIGURE_ARGS= --localstatedir=/var \ | ||||
--with-gameuser=games:games | --with-gameuser=games:games | ||||
PLIST_SUB= EMACS_VER=${EMACS_VER} GNU_HOST=${CONFIGURE_TARGET} | PLIST_SUB= EMACS_VER=${EMACS_VER} GNU_HOST=${CONFIGURE_TARGET} | ||||
MAKE_ENV= LC_ALL=C | MAKE_ENV= LC_ALL=C | ||||
▲ Show 20 Lines • Show All 166 Lines • ▼ Show 20 Lines | |||||
XPM_CONFIGURE_WITH= xpm | XPM_CONFIGURE_WITH= xpm | ||||
XPM_IMPLIES= X11 | XPM_IMPLIES= X11 | ||||
XWIDGETS_USE= XORG=xcomposite | XWIDGETS_USE= XORG=xcomposite | ||||
XWIDGETS_CONFIGURE_WITH=xwidgets | XWIDGETS_CONFIGURE_WITH=xwidgets | ||||
XWIDGETS_LIB_DEPENDS= libwebkitgtk-3.0.so:www/webkit-gtk3 | XWIDGETS_LIB_DEPENDS= libwebkitgtk-3.0.so:www/webkit-gtk3 | ||||
XWIDGETS_IMPLIES= GTK3 | XWIDGETS_IMPLIES= GTK3 | ||||
.include <bsd.port.options.mk> | |||||
# clang is broken on i386 platform in -O2, due to use of alloca, and | |||||
# stack realignment and %esi as frame pointer register | |||||
# http://llvm.org/bugs/show_bug.cgi?id=18171 fixed in r263312 | |||||
# (11-CURRENT), and fixed in r263765 (10-STABLE) | |||||
.if ${ARCH} == "i386" | |||||
.if (${OSVERSION} < 1000706) || (${OSVERSION} >= 1100000 && \ | |||||
${OSVERSION} < 1100015) | |||||
USE_GCC=any | |||||
.endif | |||||
.endif | |||||
.if ! ${PORT_OPTIONS:MGTK2} && ! ${PORT_OPTIONS:MGTK3} && \ | |||||
! ${PORT_OPTIONS:MMOTIF} && ! ${PORT_OPTIONS:MXAW} && ! ${PORT_OPTIONS:MXAW3D} | |||||
CONFIGURE_ARGS+= --with-x-toolkit=no | |||||
.endif | |||||
.include <bsd.port.pre.mk> | |||||
# Building with GCC 4.6+ requires it | |||||
.if ${ncurses_ARGS} == "port" | |||||
LDFLAGS+=-ltinfo | |||||
.endif | |||||
post-patch: | |||||
@${RM} ${WRKSRC}/info/* | |||||
## stage-qa will give a warning, but don't pull in desktop-file-utils | ## stage-qa will give a warning, but don't pull in desktop-file-utils | ||||
## portlint -AC will give a warning about INSTALL_ICONS, but don't pull in those | ## portlint -AC will give a warning about INSTALL_ICONS, but don't pull in those | ||||
## dependencies | ## dependencies | ||||
post-patch-X11-off: | post-patch-X11-off: | ||||
@${REINPLACE_CMD} -e 's/^Terminal=.*$$/Terminal=true/' \ | @${REINPLACE_CMD} -e 's/^Terminal=.*$$/Terminal=true/' \ | ||||
${WRKSRC}/etc/emacs.desktop | ${WRKSRC}/etc/emacs.desktop | ||||
pre-configure: | |||||
@cd ${WRKSRC} && ./autogen.sh | |||||
post-install-SOURCES-on: | post-install-SOURCES-on: | ||||
@${MKDIR} ${STAGEDIR}${DATADIR}/${EMACS_VER}/src | @${MKDIR} ${STAGEDIR}${DATADIR}/${EMACS_VER}/src | ||||
${INSTALL_DATA} ${WRKSRC}/src/*.[ch] \ | ${INSTALL_DATA} ${WRKSRC}/src/*.[ch] \ | ||||
${STAGEDIR}${DATADIR}/${EMACS_VER}/src | ${STAGEDIR}${DATADIR}/${EMACS_VER}/src | ||||
${INSTALL_DATA} ${WRKDIR}/sources.el \ | ${INSTALL_DATA} ${WRKDIR}/sources.el \ | ||||
${STAGEDIR}${DATADIR}/${EMACS_VER}/site-lisp/site-start.el | ${STAGEDIR}${DATADIR}/${EMACS_VER}/site-lisp/site-start.el | ||||
.include <bsd.port.post.mk> | .include <bsd.port.mk> |