editors/elvis editors/elvis-x11 The latter is now just editors/elvis built with a specific set of options. Changes include: + Add options.mk that supports a new "x11" option. + Remove Makefile.common and move all logic into elvis/Makefile and elvis/options.mk. + Rename PLIST.common to PLIST as there are no PLIST differences between elvis and elvis-x11. + Modify patch-ab to add a --sysconfdir option to the configure script and fix the parsing of --with-x* options so that --with-xft isn't ignored. + Modify patch-ac to handle SYSCONFDIR in Makefile.in passed in from the configure script. + Remove the unnecessary substitution for PKG_SYSCONFDIR now that the configure script and Makefile.in directly support --sysconfdir. + Include termcap.buildlink3.mk to properly deal with termcap/curses issues (elvis needs termcap). + Add full DESTDIR support. + Set HOMEPAGE to the correct URL. + Bump the PKGREVISION for elvis and elvis-x11 to 6. Both packages now track and use the same PKGREVISION number.
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2008/04/22 16:23:57 jlam Exp $
|
|
|
|
# This section contains variables that might be overridden.
|
|
PKGNAME?= ${PKGNAME_BASE}
|
|
COMMENT?= vi clone with regex-search, hex-edit, HTML/LaTeX preview
|
|
|
|
# Normal package Makefile contents follow.
|
|
DISTNAME= elvis-2.2_0
|
|
PKGNAME_BASE= ${DISTNAME:S/_/./}
|
|
PKGREVISION= 6
|
|
CATEGORIES= editors
|
|
MASTER_SITES= ftp://ftp.cs.pdx.edu/pub/elvis/
|
|
|
|
CONFLICTS+= elvis-[0-9]*
|
|
CONFLICTS+= elvis-x11-[0-9]*
|
|
|
|
MAINTAINER= airhead@users.sourceforge.net
|
|
HOMEPAGE= http://elvis.the-little-red-haired-girl.org/
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
.include "options.mk"
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --verbose
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
|
|
CONFIGURE_ARGS+= --docdir=${PREFIX:Q}/share/doc/elvis
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
PKG_SYSCONFSUBDIR?= elvis
|
|
CONF_FILES= ${PREFIX}/share/elvis/elvis.rc \
|
|
${PKG_SYSCONFDIR}/elvis.rc
|
|
|
|
INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX}
|
|
INSTALL_MAKE_FLAGS+= BINDIR=${DESTDIR}${PREFIX}/bin
|
|
INSTALL_MAKE_FLAGS+= DATADIR=${DESTDIR}${PREFIX}/share/elvis
|
|
INSTALL_MAKE_FLAGS+= DOCDIR=${DESTDIR}${PREFIX}/share/doc/elvis
|
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man1
|
|
|
|
.include "../../mk/termcap.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|