openbsd-ports/editors/emacs21/Makefile

71 lines
1.8 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.47 2010/07/18 18:49:01 naddy Exp $
COMMENT-main= GNU editor: extensible, customizable, self documenting
COMMENT-el= elisp sources for those who want to read/modify them
COMMENT-leim= Library of Emacs Input Methods
VERSION= 21.4
DISTNAME= emacs-${VERSION}
PKGNAME-main= ${DISTNAME}p11
2010-02-26 13:17:38 -05:00
FULLPKGNAME-el= emacs-el-${VERSION}p2
FULLPKGPATH-el= editors/emacs21,-el
FULLPKGNAME-leim= emacs-leim-${VERSION}p2
FULLPKGPATH-leim= editors/emacs21,-leim
CATEGORIES= editors
HOMEPAGE= http://www.gnu.org/software/emacs/
2004-02-01 02:09:47 -05:00
MAINTAINER= Rich Cannings <cannings@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
DISTFILES= emacs-${VERSION}a.tar.gz leim-${VERSION}.tar.gz
2006-11-24 17:14:42 -05:00
MULTI_PACKAGES= -main -el -leim
FLAVORS= no_x11
2002-03-17 20:58:03 -05:00
FLAVOR?=
GCCARCH= ${MACHINE_ARCH}-unknown-openbsd${OSREV}
CONFIGURE_STYLE= gnu dest
CONFIGURE_ARGS= ${GCCARCH} --with-pop
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng" \
2003-07-18 09:58:09 -04:00
LDFLAGS="${ELF_TOOLCHAIN:L:S/yes/-Z/:S/no//} \
-L${LOCALBASE}/lib"
# Disable propolice on powerpc due to gcc3+propolice bug.
.if ${MACHINE_ARCH} == "powerpc"
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fno-stack-protector"
.endif
MAKE_ENV= INSTALL_EMACS="${INSTALL_SCRIPT}"
SUBST_VARS= GCCARCH VERSION
2006-11-24 17:14:42 -05:00
WANTLIB-main= c m ncurses ossaudio
2002-03-17 20:58:03 -05:00
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS+= --with-x=no
.else
USE_X11=Yes
LIB_DEPENDS-main= ungif.>=5::graphics/libungif \
2006-08-01 19:39:08 -04:00
jpeg.>=62::graphics/jpeg \
png.>=2::graphics/png \
tiff.>=35::graphics/tiff
WANTLIB-main+= ICE SM X11 Xaw Xext Xmu Xpm Xt pthread-stubs xcb z
.endif
RUN_DEPENDS= :emacs-${VERSION}:${PKGPATH}
2006-11-24 17:14:42 -05:00
RUN_DEPENDS-main=
PKG_ARCH-el= *
.include <bsd.port.mk>