1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/editors/fte/Makefile
Niclas Zeising d52303ea80 Add USES=xorg USES=gl, ports categories e
Add USES=xorg, USES=gl and in a few cases USES=gnome to ports in categories
starting with 'e'.
2019-11-05 15:48:40 +00:00

49 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 xorg
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:
.for i in cfte xfte
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i}
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>