1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/french/xtel/Makefile
Martin Wilke 3e4ed01146 - 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 17:56:05 +00:00

85 lines
2.1 KiB
Makefile

# Ports collection makefile for: xtel
# Date created: Wed Jul 11, 2001
# Whom: Thierry Thomas (<thierry@thomas.as>)
#
# $FreeBSD$
#
PORTNAME= xtel
PORTVERSION= 3.3.0
PORTREVISION= 4
CATEGORIES= french comms emulators
MASTER_SITES= http://pficheux.free.fr/xtel/download/
MAINTAINER= thierry@FreeBSD.org
COMMENT= An emulator for the french Minitel
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
# 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
USE_XORG= xpm xbitmaps
MAN1= xtel.1 xteld.1
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
.if defined(LANG)
LANGUE!=${ECHO_CMD} ${LANG} | ${CUT} -c 1-2
.else
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}
${CHMOD} u+w ${WRKSRC}/${FILE}
${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/${FILE}
.endfor
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
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for FILE in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
@${ECHO}
@(if [ 0${LANGUE} = 0fr ] ; then \
${ECHO_MSG} "===> La documentation a été installée dans ${DOCSDIR}." ; \
else \
${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." ; \
fi)
.endif
@${TOUCH} ${PREFIX}/lib/X11/xtel/xtel.log
@(if [ 0${LANGUE} = 0fr ] ; then \
${CP} ${FILESDIR}/pkg-message-fr.in ${PKGMESSAGE} ; \
else \
${CP} ${FILESDIR}/pkg-message.in ${PKGMESSAGE} ; \
fi)
@${ECHO}
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${PKGMESSAGE}
@${ECHO}
.include <bsd.port.post.mk>