2013-08-19 16:40:36 +00:00
|
|
|
# Created by: thierry@pompo.net
|
2004-12-25 15:27:13 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mined
|
2013-08-19 16:40:36 +00:00
|
|
|
PORTVERSION= 2012.23
|
2004-12-25 15:27:13 +00:00
|
|
|
CATEGORIES= editors
|
2010-07-22 20:01:21 +00:00
|
|
|
MASTER_SITES= http://towo.net/mined/download/
|
2004-12-25 15:27:13 +00:00
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
|
|
COMMENT= Text mode editor with Unicode support
|
|
|
|
|
2014-01-25 01:15:59 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2011-11-20 22:06:59 +00:00
|
|
|
LICENSE= GPLv3
|
2004-12-25 15:27:13 +00:00
|
|
|
|
2005-08-28 12:56:29 +00:00
|
|
|
PORTDOCS= *
|
2004-12-25 15:27:13 +00:00
|
|
|
|
2014-01-25 01:15:59 +00:00
|
|
|
USES= gmake
|
2006-04-01 19:55:53 +00:00
|
|
|
MAKEFILE= makefile
|
2005-10-18 19:50:22 +00:00
|
|
|
REINPLACE_ARGS= -i ""
|
2013-09-12 16:10:31 +00:00
|
|
|
MAKE_ARGS= GMAKE=${MAKE_CMD} CC=${CC:T} OPT="${CFLAGS}"
|
2005-02-05 22:47:21 +00:00
|
|
|
INSTALL_TARGET= localinstall
|
2009-11-20 22:53:09 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2004-12-25 15:27:13 +00:00
|
|
|
|
2006-03-30 23:39:27 +00:00
|
|
|
PRFX2FIX= src/makefile.bsd usrshare/conf_user/xinitrc.mined \
|
2013-08-19 16:40:36 +00:00
|
|
|
src/minedaux.c man/mined.1 src/mkinclud.mak \
|
|
|
|
src/makefile.gcc
|
2005-10-18 19:50:22 +00:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.for FILE in ${PRFX2FIX}
|
2011-06-21 19:57:48 +00:00
|
|
|
${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/${FILE}
|
2005-10-18 19:50:22 +00:00
|
|
|
.endfor
|
|
|
|
|
2004-12-25 15:27:13 +00:00
|
|
|
pre-build:
|
2005-08-28 12:56:29 +00:00
|
|
|
${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 \
|
2004-12-25 15:27:13 +00:00
|
|
|
${LN} -sf ${WRKSRC}/src/mkinclud.cc ${WRKSRC}/src/mkinclud.${CC:T} ; \
|
|
|
|
fi)
|
|
|
|
|
|
|
|
post-install:
|
2006-03-30 23:39:27 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/usrshare/setup_install/mined.desktop \
|
2014-01-25 01:15:59 +00:00
|
|
|
${STAGEDIR}${DESKTOPDIR}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/usrshare/package_doc && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${RM} ${STAGEDIR}${DOCSDIR}/CHANGES ${STAGEDIR}${DOCSDIR}/LICENCE.GPL
|
|
|
|
@${RM} -rf ${STAGEDIR}${DATADIR}/doc_user ${STAGEDIR}${DATADIR}/package_doc
|
2004-12-25 15:27:13 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|