1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/editors/elvis/Makefile
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00

77 lines
2.0 KiB
Makefile

# New ports collection makefile for: elvis
# Date created: 1999-09-01
# Whom: Christian Weisgerber <naddy@unix-ag.uni-kl.de>
#
# $FreeBSD$
#
PORTNAME= elvis
PORTVERSION= 2.2.0
PORTREVISION= 3
CATEGORIES= editors
MASTER_SITES= ftp://ftp.cs.pdx.edu/pub/elvis/ \
ftp://ftp.false.com/pub/elvis/ \
ftp://the.wiretapped.net/pub/elvis/ \
ftp://ftp.fh-wedel.de/pub/elvis/
DISTNAME= ${PORTNAME}-${PORTVERSION:R}_${PORTVERSION:E}
MAINTAINER= ports@FreeBSD.org
COMMENT= A clone of the ex/vi text editor
EXTRACT_AFTER_ARGS= | ${TAR} --exclude guiwin32 -xf -
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix="${PREFIX}"
ALL_TARGET= all doc/elvtags.man
MAN1= elvfmt.1 elvis.1 elvtags.1 ref.1
.include <bsd.port.pre.mk>
# Support building on systems with or without X11 installed.
.if defined(WITHOUT_X11)
PKGNAMESUFFIX= -nox11
CONFIGURE_ARGS+= --without-x
.else
USE_XORG= xpm
.if defined(WITHOUT_XFT)
CONFIGURE_ARGS+= --without-xft
.else
USE_XORG= xft xt
CONFIGURE_ARGS+= --libs="${LDFLAGS}"
CFLAGS+= `freetype-config --cflags`
LDFLAGS= `freetype-config --libs`
.endif
.endif
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "Elvis has the following tunable option(s):"
@${ECHO_MSG} ""
@${ECHO_MSG} " WITHOUT_X11=yes Turns off X11 support"
@${ECHO_MSG} " WITHOUT_XFT=yes Turns off Xft support"
@${ECHO_MSG} ""
post-patch:
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g ; \
s|-lipc|-lcurses|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS+=|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|FT_FILE|ELVIS_FT_FILE|g' \
${WRKSRC}/guix11/xdialog.c \
${WRKSRC}/guix11/xdialog.h
do-install:
.for file in elvfmt elvis elvtags ref
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/${file}.man ${PREFIX}/man/man1/${file}.1
.endfor
@${MKDIR} ${DATADIR}
${TAR} -C ${WRKSRC}/data -cf - . | \
${TAR} -C ${DATADIR} --unlink -xf -
@${MKDIR} ${DATADIR}/doc
${TAR} -C ${WRKSRC}/doc --exclude "*.man" -cf - . | \
${TAR} -C ${DATADIR}/doc --unlink -xf -
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
.include <bsd.port.post.mk>