1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/editors/fte/Makefile
Mathieu Arnold 88bfe4bd43 Cleanup DIST* variables.
When appropriate:
- Try to use DISTVERSION{SUF,PRE}FIX
- Replace PORTNAME-PORTVERSION by DISTNAME
- Convert MASTER_SITES to use macros
- Other light cleanup

With hat:	portmgr
Sponsored by:	Absolight
2015-05-11 18:34:57 +00:00

47 lines
1.1 KiB
Makefile

# Created by: gelf
# $FreeBSD$
PORTNAME= fte
PORTVERSION= 20110708
CATEGORIES= editors
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
DISTFILES= ${DISTNAME}-src${EXTRACT_SUFX} \
${DISTNAME}-common${EXTRACT_SUFX}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Full-featured text editor for X11
LICENSE= ART10 GPLv2
LICENSE_COMB= dual
WRKSRC= ${WRKDIR}/fte
USES= perl5 zip
USE_PERL5= build
USE_XORG= x11 xpm
CFLAGS+= -DHAVE_STRLCAT -DHAVE_STRLCPY
MAKE_ENV= INSTALL_NONROOT=1
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
's|^PREFIX=|PREFIX?=|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
's|\([[:space:]]\)\($$BINDIR\)|\1$$DESTDIR\2|g ; \
s|\([[:space:]]\)\($$LIBDIR\)|\1$$DESTDIR\2|g ; \
s|\([[:space:]]\)\($$CONFIGDIR\)|\1$$DESTDIR\2|g ; \
s|\([[:space:]]\)\($$LOCALCONFIGDIR\)|\1$$DESTDIR\2|g ; \
/fterc/s|^|#|' ${WRKSRC}/install
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.for i in cfte xfte
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i}
.endfor
.include <bsd.port.mk>