diff options
author | wiz <wiz@pkgsrc.org> | 2016-12-30 14:25:01 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2016-12-30 14:25:01 +0000 |
commit | 73b3573140931f5ff7368162dafc38ceeb28405b (patch) | |
tree | 85433316368439c03be5146e52557e3313200055 /editors/elvis | |
parent | bc0f3e7f47755457fb9ccef29a125c4edda9f951 (diff) | |
download | pkgsrc-73b3573140931f5ff7368162dafc38ceeb28405b.tar.gz |
Fix options framework abuse by elvis*.
Diffstat (limited to 'editors/elvis')
-rw-r--r-- | editors/elvis/Makefile | 41 | ||||
-rw-r--r-- | editors/elvis/Makefile.common | 38 | ||||
-rw-r--r-- | editors/elvis/options.mk | 21 |
3 files changed, 43 insertions, 57 deletions
diff --git a/editors/elvis/Makefile b/editors/elvis/Makefile index b4d68cfb5db..9776324dbc2 100644 --- a/editors/elvis/Makefile +++ b/editors/elvis/Makefile @@ -1,41 +1,10 @@ -# $NetBSD: Makefile,v 1.14 2015/12/29 04:22:50 dholland Exp $ +# $NetBSD: Makefile,v 1.15 2016/12/30 14:25:01 wiz Exp $ -# This section contains variables that might be overridden. -PKGNAME?= ${PKGNAME_BASE} -COMMENT?= Clone of vi with regex-search, hex-edit, HTML/LaTeX preview - -# Normal package Makefile contents follow. -DISTNAME= elvis-2.2_0 -PKGNAME_BASE= ${DISTNAME:S/_/./} +PKGNAME= elvis-${VERSION} +COMMENT= Clone of vi with regex-search, hex-edit, HTML/LaTeX preview PKGREVISION= 11 -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.vi-editor.org/ -LICENSE= artistic - -.include "options.mk" - -HAS_CONFIGURE= yes -CONFIGURE_ARGS+= --verbose -CONFIGURE_ARGS+= --prefix=${PREFIX} -CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/elvis -CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} - -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 +CONFIGURE_ARGS+= --without-x -.include "../../mk/termcap.buildlink3.mk" +.include "Makefile.common" .include "../../mk/bsd.pkg.mk" diff --git a/editors/elvis/Makefile.common b/editors/elvis/Makefile.common new file mode 100644 index 00000000000..c8881f275f9 --- /dev/null +++ b/editors/elvis/Makefile.common @@ -0,0 +1,38 @@ +# $NetBSD: Makefile.common,v 1.9 2016/12/30 14:25:01 wiz Exp $ +# +# used by editors/elvis-x11/Makefile +# used by editors/elvis/Makefile + +# Normal package Makefile contents follow. +DISTNAME= elvis-2.2_0 +CATEGORIES= editors +MASTER_SITES= ftp://ftp.cs.pdx.edu/pub/elvis/ + +MAINTAINER= airhead@users.sourceforge.net +HOMEPAGE= http://elvis.vi-editor.org/ +LICENSE= artistic + +VERSION= 2.2.0 + +PATCHDIR= ${.CURDIR}/../../editors/elvis/patches +DISTINFO_FILE= ${.CURDIR}/../../editors/elvis/distinfo +PLIST_SRC= ${.CURDIR}/../../editors/elvis/PLIST + +HAS_CONFIGURE= yes +CONFIGURE_ARGS+= --verbose +CONFIGURE_ARGS+= --prefix=${PREFIX} +CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/elvis +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} + +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" diff --git a/editors/elvis/options.mk b/editors/elvis/options.mk deleted file mode 100644 index 258ac6767e9..00000000000 --- a/editors/elvis/options.mk +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: options.mk,v 1.4 2015/12/29 04:22:50 dholland Exp $ - -PKG_OPTIONS_VAR= PKG_OPTIONS.elvis -PKG_SUPPORTED_OPTIONS= x11 - -.include "../../mk/bsd.options.mk" - -.if !empty(PKG_OPTIONS:Mx11) -BUILDLINK_DEPMETHOD.libXt= build -. include "../../x11/libXft/buildlink3.mk" -. include "../../graphics/freetype2/buildlink3.mk" -. include "../../x11/libXpm/buildlink3.mk" -. include "../../x11/libXt/buildlink3.mk" -CONFIGURE_ARGS+= --with-x -CONFIGURE_ARGS+= --with-xft -CONFIGURE_ARGS+= --x-includes=${X11BASE}/include -CONFIGURE_ARGS+= --x-libraries=${X11BASE}/lib -USE_TOOLS+= pkg-config -.else -CONFIGURE_ARGS+= --without-x -.endif |