mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
61 lines
1.5 KiB
Makefile
61 lines
1.5 KiB
Makefile
# Created by: thierry@pompo.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mined
|
|
PORTVERSION= 2012.23
|
|
CATEGORIES= editors
|
|
MASTER_SITES= http://towo.net/mined/download/
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= Text mode editor with Unicode support
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENCE.GPL
|
|
|
|
.if defined(NOPORTDOCS)
|
|
ALL_TARGET= mined manual
|
|
.else
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
USE_GMAKE= yes
|
|
MAKEFILE= makefile
|
|
REINPLACE_ARGS= -i ""
|
|
MAKE_ARGS= GMAKE=${MAKE_CMD} CC=${CC:T} OPT="${CFLAGS}"
|
|
INSTALL_TARGET= localinstall
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
MAN1= mined.1 minmacs.1 mpico.1 mstar.1 umined.1 uterm.1 xmined.1
|
|
|
|
PRFX2FIX= src/makefile.bsd usrshare/conf_user/xinitrc.mined \
|
|
src/minedaux.c man/mined.1 src/mkinclud.mak \
|
|
src/makefile.gcc
|
|
|
|
NO_STAGE= yes
|
|
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)
|
|
|
|
post-install:
|
|
${MKDIR} ${DESKTOPDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/usrshare/setup_install/mined.desktop \
|
|
${DESKTOPDIR}
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${DOCSDIR}
|
|
cd ${WRKSRC}/usrshare/package_doc && ${INSTALL_DATA} * ${DOCSDIR}
|
|
@${RM} ${DOCSDIR}/CHANGES ${DOCSDIR}/LICENCE.GPL
|
|
.endif
|
|
# @${RM} ${DATADIR}/bin/*.bat
|
|
@${RM} -rf ${DATADIR}/doc_user ${DATADIR}/package_doc
|
|
|
|
.include <bsd.port.mk>
|