2001-12-25 22:39:56 +01:00
|
|
|
|
# Ports collection makefile for: xtel
|
|
|
|
|
# Date created: Wed Jul 11, 2001
|
|
|
|
|
# Whom: Thierry Thomas (<thierry@thomas.as>)
|
|
|
|
|
#
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
PORTNAME= xtel
|
|
|
|
|
PORTVERSION= 3.3.0
|
2009-07-18 13:11:29 +02:00
|
|
|
|
PORTREVISION= 6
|
2001-12-25 22:39:56 +01:00
|
|
|
|
CATEGORIES= french comms emulators
|
|
|
|
|
MASTER_SITES= http://pficheux.free.fr/xtel/download/
|
|
|
|
|
|
2004-08-15 18:36:23 +02:00
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
|
COMMENT= An emulator for the french Minitel
|
2001-12-25 22:39:56 +01:00
|
|
|
|
|
2009-07-18 13:11:29 +02:00
|
|
|
|
LIB_DEPENDS= jpeg.10:${PORTSDIR}/graphics/jpeg
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
|
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
|
|
|
|
|
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
|
|
|
|
|
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
|
2001-12-25 22:39:56 +01:00
|
|
|
|
|
|
|
|
|
# Remark: Xtel can serve a network, and emulate TVR and I-Minitel, but this is
|
|
|
|
|
# the first release of this port, and these functionnalities have not (yet)
|
|
|
|
|
# been implemented.
|
|
|
|
|
|
|
|
|
|
USE_IMAKE= yes
|
2008-07-22 23:55:48 +02:00
|
|
|
|
USE_XORG= xaw xbitmaps
|
2009-11-19 23:07:43 +01:00
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2001-12-25 22:39:56 +01:00
|
|
|
|
|
|
|
|
|
MAN1= xtel.1 xteld.1
|
|
|
|
|
|
2004-08-15 18:36:23 +02:00
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
|
2002-01-20 13:21:45 +01:00
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
2001-12-25 22:39:56 +01:00
|
|
|
|
.if defined(LANG)
|
2002-01-29 11:53:27 +01:00
|
|
|
|
LANGUE!=${ECHO_CMD} ${LANG} | ${CUT} -c 1-2
|
2001-12-27 06:27:00 +01:00
|
|
|
|
.else
|
2001-12-25 22:39:56 +01:00
|
|
|
|
LANGUE= english
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
DOCS= COPYING COPYRIGHT FAQ.txt HISTOIRE.txt LISEZMOI.txt README_IMINITEL.txt
|
|
|
|
|
PATCH_FILES= Imakefile
|
|
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
|
.for FILE in ${PATCH_FILES}
|
2002-07-07 20:34:07 +02:00
|
|
|
|
${CHMOD} u+w ${WRKSRC}/${FILE}
|
|
|
|
|
${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/${FILE}
|
2001-12-25 22:39:56 +01:00
|
|
|
|
.endfor
|
|
|
|
|
|
2002-01-01 15:10:16 +01:00
|
|
|
|
pre-configure:
|
|
|
|
|
.if !exists(${PREFIX}/lib/X11/config/host.def)
|
|
|
|
|
${CP} ${FILESDIR}/host.def ${PREFIX}/lib/X11/config
|
|
|
|
|
HOST_DEF_INSTALLED_BY_XTEL= yes
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
|
.if defined(HOST_DEF_INSTALLED_BY_XTEL)
|
|
|
|
|
${RM} ${PREFIX}/lib/X11/config/host.def
|
|
|
|
|
.endif
|
|
|
|
|
|
2001-12-25 22:39:56 +01:00
|
|
|
|
post-install:
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
|
.for FILE in ${DOCS}
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
|
.endfor
|
|
|
|
|
@${ECHO}
|
|
|
|
|
@(if [ 0${LANGUE} = 0fr ] ; then \
|
2004-08-15 18:36:23 +02:00
|
|
|
|
${ECHO_MSG} "===> La documentation a <20>t<EFBFBD> install<6C>e dans ${DOCSDIR}." ; \
|
2001-12-25 22:39:56 +01:00
|
|
|
|
else \
|
2004-08-15 18:36:23 +02:00
|
|
|
|
${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." ; \
|
2001-12-25 22:39:56 +01:00
|
|
|
|
fi)
|
|
|
|
|
.endif
|
|
|
|
|
@${TOUCH} ${PREFIX}/lib/X11/xtel/xtel.log
|
|
|
|
|
@(if [ 0${LANGUE} = 0fr ] ; then \
|
2004-08-15 18:36:23 +02:00
|
|
|
|
${CP} ${FILESDIR}/pkg-message-fr.in ${PKGMESSAGE} ; \
|
2001-12-25 22:39:56 +01:00
|
|
|
|
else \
|
2004-08-15 18:36:23 +02:00
|
|
|
|
${CP} ${FILESDIR}/pkg-message.in ${PKGMESSAGE} ; \
|
2001-12-25 22:39:56 +01:00
|
|
|
|
fi)
|
|
|
|
|
@${ECHO}
|
2004-08-15 18:36:23 +02:00
|
|
|
|
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${PKGMESSAGE}
|
2001-12-25 22:39:56 +01:00
|
|
|
|
@${ECHO}
|
|
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|