1998-06-28 03:22:37 +00:00
|
|
|
# New ports collection makefile for: micq
|
1998-10-26 17:58:30 +00:00
|
|
|
# Date created: 11 Oct 1998
|
1998-06-28 03:22:37 +00:00
|
|
|
# Whom: mph
|
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1998-06-28 03:22:37 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= micq
|
2001-01-25 03:19:53 +00:00
|
|
|
PORTVERSION= 0.4.6.1
|
2001-03-23 19:39:30 +00:00
|
|
|
PORTREVISION= 1
|
1998-06-28 03:22:37 +00:00
|
|
|
CATEGORIES= net
|
2001-01-25 03:19:53 +00:00
|
|
|
MASTER_SITES= http://micq.ukeer.de/source/
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/1/p1/}
|
1998-06-28 03:22:37 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2001-01-06 20:24:32 +00:00
|
|
|
MAINTAINER= ports@freebsd.org
|
2000-05-22 08:25:02 +00:00
|
|
|
|
2001-01-25 03:19:53 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.1/-p1/}/src
|
2001-01-18 23:45:14 +00:00
|
|
|
|
2001-03-21 18:55:23 +00:00
|
|
|
MAN1= micq.1
|
|
|
|
|
2001-03-23 19:39:30 +00:00
|
|
|
SUP_LANGS= `${SED} 's|$$|,|' < ${FILESDIR}/slangs`
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.if !defined(WITH_MICQ_LANG)
|
|
|
|
@${ECHO_MSG} "If you want to compile ${PORTNAME} with your native"
|
|
|
|
@${ECHO_MSG} "language support:"
|
|
|
|
@${ECHO_MSG} "make WITH_MICQ_LANG=<your_lang>"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Currently supported <your_lang> values are:"
|
|
|
|
@${ECHO} " "${SUP_LANGS} | /usr/bin/fmt
|
|
|
|
.else
|
2001-03-25 21:05:02 +00:00
|
|
|
@/usr/bin/printf "#define ${WITH_MICQ_LANG}_LANG\n#undef ENGLISH_LANG" >> \
|
2001-03-23 19:39:30 +00:00
|
|
|
${WRKSRC}/../include/config.h
|
|
|
|
@${ECHO_MSG} "Compiling ${PORTNAME} with ${WITH_MICQ_LANG}."
|
|
|
|
.endif
|
|
|
|
|
1998-06-28 03:22:37 +00:00
|
|
|
do-install:
|
2001-03-23 19:39:30 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/micq ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/../micq.1 ${PREFIX}/man/man1
|
1998-06-28 03:22:37 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-03-23 19:39:30 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/micq
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/micq
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../CHANGELOG ${PREFIX}/share/doc/micq
|
1998-06-28 03:22:37 +00:00
|
|
|
.endif
|
|
|
|
|
2001-03-23 19:39:30 +00:00
|
|
|
# Administrative rule to automatically extract
|
|
|
|
# names of supported langs
|
|
|
|
update-slangs: patch
|
|
|
|
${GREP} '#define .*_LANG' < ${WRKSRC}/../include/config.h | \
|
|
|
|
${SED} 's|.*#define || ; s|_LANG.*||' | /usr/bin/sort | \
|
|
|
|
/usr/bin/uniq > ${FILESDIR}/slangs
|
|
|
|
|
1998-06-28 03:22:37 +00:00
|
|
|
.include <bsd.port.mk>
|