1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/editors/mined/Makefile
Thierry Thomas 26ff5695b2 Respect $PREFIX.
Reported by:	dosirak via Kris
2005-10-18 19:50:22 +00:00

58 lines
1.3 KiB
Makefile

# New ports collection makefile for: mined
# Date created: 24 December 2004
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= mined
PORTVERSION= 2000.11
CATEGORIES= editors
MASTER_SITES= http://towo.net/mined/
MAINTAINER= thierry@FreeBSD.org
COMMENT= Text mode editor with Unicode support
MAKEFILE= makefile
.if defined(NOPORTDOCS)
ALL_TARGET= mined manual
.else
PORTDOCS= *
.endif
USE_GMAKE= yes
USE_REINPLACE= yes
REINPLACE_ARGS= -i ""
MAKE_ARGS= GMAKE=${GMAKE} CC=${CC:T} OPT="${CFLAGS}"
INSTALL_TARGET= localinstall
MAN1= mined.1
PRFX2FIX= src/makefile.bsd src/makefile.gcc usrshare/xinitrc.mined \
usrshare/mined.desktop src/mined1.c
pre-configure:
.for FILE in ${PRFX2FIX}
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/${FILE}
.endfor
pre-build:
${MV} ${WRKSRC}/src/mkinclud.cc ${WRKSRC}/src/mkinclud.cc.bak
${CP} ${WRKSRC}/src/mkinclud.gcc ${WRKSRC}/src/mkinclud.cc
(if [ ! -f ${WRKSRC}/src/mkinclud.${CC:T} ] ; then \
${LN} -sf ${WRKSRC}/src/mkinclud.cc ${WRKSRC}/src/mkinclud.${CC:T} ; \
fi)
@${ECHO_MSG}
@${ECHO_MSG} "Warning: conversion of all keyboard mapping tables may take a long time!"
@${ECHO_MSG}
post-install:
@${RM} ${DATADIR}/LICENSE.GNU ${DATADIR}/*.bat
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${DOCSDIR}
.endif
.include <bsd.port.mk>