blob: 37bfb3c92a8a2c99d303d962f4b7d12e540e4aab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# New ports collection makefile for: mined
# Date created: 24 December 2004
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= mined
PORTVERSION= 2000.12.2
CATEGORIES= editors
MASTER_SITES= http://towo.net/mined/
MAINTAINER= thierry@FreeBSD.org
COMMENT= Text mode editor with Unicode support
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
.if defined(NOPORTDOCS)
ALL_TARGET= mined manual
.else
PORTDOCS= *
.endif
USE_GMAKE= yes
MAKEFILE= makefile
MAKE_SHELL= ${LOCALBASE}/bin/bash # To avoid "shift: can't shift that many"
REINPLACE_ARGS= -i ""
MAKE_ARGS= GMAKE=${GMAKE} CC=${CC:T} OPT="${CFLAGS}"
INSTALL_TARGET= localinstall
NOMANCOMPRESS= 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/makefile.curses src/mined1.c man/mined.1 \
usrshare/setup_install/mined.desktop src/makefile.gcc
pre-configure:
.for FILE in ${PRFX2FIX}
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/${FILE}
.endfor
${REINPLACE_CMD} -e 's|#! ${SH}|#! ${MAKE_SHELL}|' ${WRKSRC}/makemined
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:
${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}/LICENSE.GNU
.endif
@${RM} ${DATADIR}/bin/*.bat
@${RM} -rf ${DATADIR}/doc_user ${DATADIR}/package_doc
.include <bsd.port.mk>
|