1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/editors/e93/Makefile
Adam Weinberger a84c115a09 Convert a bunch of EXTRACT_SUFX=... into USES=tar:...
Approved by:	portmgr (not really, but touches unstaged ports)
2014-07-29 19:11:51 +00:00

46 lines
1.1 KiB
Makefile

# Created by: Satoshi Asami (asami)
# $FreeBSD$
PORTNAME= e93
PORTVERSION= 1.4.2
CATEGORIES= editors tcl
MASTER_SITES= ftp://ftp.e93.org/pub/
DISTNAME= ${PORTNAME}-${PORTVERSION:R}r${PORTVERSION:E}X
MAINTAINER= ports@FreeBSD.org
COMMENT= Nifty editor based on Tcl
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= gmake tcl tar:tgz
USE_XORG= x11 xinerama
MAKE_ARGS= PREFIX="${PREFIX}" \
TCL_INCLUDE="-I${TCL_INCLUDEDIR}" \
TCL_LIB="-L${LOCALBASE}/lib" \
TCL_VERSION="${TCL_VER:S/.//}" \
X_INCLUDE="-I${LOCALBASE}/include" \
X_LIB="-L${LOCALBASE}/lib" \
EXTRALIBS="-lm" \
CC="${CXX}" \
OPTIONS="${CXXFLAGS}"
MAKE_JOBS_UNSAFE= yes
post-patch:
@${REINPLACE_CMD} -e 's|-lstdc++||g ; \
s|;make|;$$(MAKE)|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/<X11\/Intrinsic.h>/d ; \
/<X11\/Shell.h>/d' ${WRKSRC}/xgui/includes.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/e93 ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/e93lib
cd ${WRKSRC}/e93lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/e93lib
.for ext in e93 regex syntaxmaps
${INSTALL_DATA} ${WRKSRC}/README.${ext} ${STAGEDIR}${PREFIX}/lib/e93lib
.endfor
.include <bsd.port.mk>