freebsd-ports/devel/gettext/Makefile

127 lines
3.8 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: gettext
# Date created: 16 March 1998
# Whom: Yukihiro Nakai <Nakai@technologist.com>
#
1999-08-25 07:57:29 +02:00
# $FreeBSD$
#
2000-04-11 23:30:15 +02:00
PORTNAME= gettext
2004-01-25 03:19:25 +01:00
PORTVERSION= 0.13.1
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= gettext
2002-09-07 10:44:49 +02:00
MAINTAINER= ports@FreeBSD.org
2003-02-20 18:07:10 +01:00
COMMENT= GNU gettext package
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
2004-02-05 20:30:43 +01:00
USE_ICONV= yes
CONFIGURE_ENV= ACLOCAL="${TRUE}" \
AUTOCONF="${TRUE}" \
AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}" \
MAKEINFO="makeinfo --no-split" \
CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --mandir=${PREFIX}/man
INSTALLS_SHLIB= yes
Upgrade to GNOME 1.0. The following are the details: ports/audio/esound 0.2.7 -> 0.2.8 PR ports/10422 ports/audio/gnomeaudio 0.99.8 -> 1.0.0 PR ports/10426 ports/audio/libaudiofile 0.1.5 -> 0.1.6 PR ports/10421 ports/deskutils/gnomepim 0.99.8.1 -> 1.0.1 PR ports/10435 ports/devel/ORBit 0.3.98 -> 0.4.0 PR ports/10423 ports/devel/gettext shared libs now PR ports/10293 ports/devel/glib12 1.1.16 -> 1.2.0 PR ports/10419 ports/devel/libgtop 0.99.8 -> 1.0.1 PR ports/10430 ports/games/gnomegames 0.99.8 -> 1.0.1 PR ports/10436 ports/graphics/electriceyes distfile moved PR ports/10437 ports/graphics/imlib 1.9.3 -> 1.9.4 PR ports/10424 ports/lang/gnomeobjc 0.99.3 -> 1.0.1 PR ports/10441 ports/math/gnumeric 0.6 -> 0.15 PR ports/10439 ports/misc/gnomeutils 0.99.5 -> 1.0.1 PR ports/10442 ports/sysutils/gnomeadmin 0.99.1 -> 1.0.1 PR ports/10445 ports/sysutils/gnomecontrolcenter 0.99.3.1 -> 1.0.1 PR ports/10446 ports/sysutils/gtop 0.99.2 -> 1.0.1 PR ports/10477 ports/textproc/libxml 0.99.8 -> 1.0.0 PR ports/10438 ports/www/libghttp distfile moved PR ports/10429 ports/x11/gnome 0.99.3 -> 1.0.0 PR ports/10450 ports/x11/gnomecore 0.99.8.1 -> 1.0.1 PR ports/10432 ports/x11/gnomelibs 0.99.8.1 -> 1.0.1 PR ports/10425 ports/x11-fm/gnomemc 4.5.10 -> 4.5.23 PR ports/10448 ports/x11-toolkits/gtk-engines 0.1 -> 0.5 PR ports/10427 ports/x11-toolkits/gtk12 1.1.6 -> 1.2.0 PR ports/10420 Note that repository copies were made before this commit, as follows: ports/devel/glib11-devel -> ports/devel/glib12 ports/x11-toolkits/gtk11-devel -> ports/x11-toolkits/gtk12 Submitted by: Jeremy Lea <reg@shale.csir.co.za>
1999-03-09 02:13:40 +01:00
.if !defined(WITHOUT_GETTEXT_OPTIONS)
OPTIONS= EXAMPLES "install example files" off \
HTMLMAN "install man pages in HTML format" off
2004-08-27 03:16:48 +02:00
.endif
PLIST= ${WRKDIR}/plist
2004-04-03 04:03:27 +02:00
PLISTU= ${WRKDIR}/plist-unsorted
PLIST_SUB= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} \
VERSION=${PORTVERSION}
MAN1= autopoint.1 gettext.1 gettextize.1 msgattrib.1 msgcat.1 \
msgcmp.1 msgcomm.1 msgconv.1 msgen.1 msgexec.1 \
msgfilter.1 msgfmt.1 msggrep.1 msginit.1 msgmerge.1 \
msgunfmt.1 msguniq.1 ngettext.1 xgettext.1 envsubst.1
MAN3= bind_textdomain_codeset.3 bindtextdomain.3 dcgettext.3 \
dcngettext.3 dgettext.3 dngettext.3 gettext.3 ngettext.3 \
textdomain.3
HTML= gettext.3 ngettext.3 textdomain.3 \
bindtextdomain.3 bind_textdomain_codeset.3
INFO= autosprintf gettext
1998-08-31 15:54:51 +02:00
.ifdef USE_GETTEXT
.error USE_GETTEXT is defined as an environment variable, or in the arguments \
to "make". Please unset it and restart the build.
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
CONFIGURE_ARGS+= --with-libexpat-prefix=${LOCALBASE}/lib
LIB_DEPENDS+= expat.5:${PORTSDIR}/textproc/expat2
.endif
pre-extract:
.if exists(${PREFIX}/bin/kaffe)
@${ECHO_MSG} "Gettext won't build with Kaffe's jar utility. Doing:"
-${MV} ${PREFIX}/bin/jar ${PREFIX}/bin/jar.backup
@${ECHO_MSG} "Be sure to mv" ${PREFIX}/bin/jar.backup ${PREFIX}/bin/jar
@${ECHO_MSG} "if you abandon your attempt to build gettext.
@sleep 5
.endif
2004-04-03 04:34:13 +02:00
post-build:
.if exists(${PREFIX}/bin/kaffe)
-${MV} ${PREFIX}/bin/jar.backup ${PREFIX}/bin/jar
@${ECHO_MSG}
@${ECHO_MSG} "Your" ${PREFIX}/bin/jar "has been restored."
@sleep 5
.endif
pre-install:
2004-04-03 04:03:27 +02:00
@${RM} -f ${PLISTU}
@${TOUCH} ${PLISTU}
.if !defined (NOPORTDOCS)
.for ii in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 foot toc
${ECHO_CMD} %%DOCSDIR%%/gettext_${ii}.html >> ${PLISTU}
.endfor
.endif
.if defined (WITH_HTMLMAN)
.for ii in ${MAN1} ${HTML}
${ECHO_CMD} %%DOCSDIR%%/${ii}.html >> ${PLISTU}
.endfor
.endif
.if defined (WITH_EXAMPLES)
cd ${WRKSRC}/gettext-tools && \
${FIND} -s examples -type f | ${GREP} -vw examples/po | \
${GREP} -v ChangeLog | ${GREP} -v examples/Makefile | \
${GREP} -v examples/installpaths.in | \
${SED} 's:^:share/doc/gettext/:' >> ${PLISTU} && \
${FIND} -d examples -type d | ${GREP} -v examples/po | \
2004-04-03 04:03:27 +02:00
${GREP} / | ${SED} -e 's:^:@dirrm share/doc/gettext/:' \
>> ${PLISTU}
.endif
2004-04-03 04:03:27 +02:00
@${CAT} ${.CURDIR}/pkg-plist ${PLISTU} | ${GREP} -v ^@ > ${PLIST}
@${SORT} -r ${.CURDIR}/pkg-plist ${PLISTU} | ${GREP} ^@dirrm >> ${PLIST}
@${GREP} -h ^@ ${.CURDIR}/pkg-plist ${PLISTU} | ${GREP} exec >> ${PLIST}
1998-09-23 19:58:38 +02:00
post-install:
.for f in po-compat.el po-mode.el
${INSTALL_DATA} ${WRKSRC}/gettext-tools/misc/${f} ${PREFIX}/share/emacs/site-lisp
.endfor
Upgrade to GNOME 1.0. The following are the details: ports/audio/esound 0.2.7 -> 0.2.8 PR ports/10422 ports/audio/gnomeaudio 0.99.8 -> 1.0.0 PR ports/10426 ports/audio/libaudiofile 0.1.5 -> 0.1.6 PR ports/10421 ports/deskutils/gnomepim 0.99.8.1 -> 1.0.1 PR ports/10435 ports/devel/ORBit 0.3.98 -> 0.4.0 PR ports/10423 ports/devel/gettext shared libs now PR ports/10293 ports/devel/glib12 1.1.16 -> 1.2.0 PR ports/10419 ports/devel/libgtop 0.99.8 -> 1.0.1 PR ports/10430 ports/games/gnomegames 0.99.8 -> 1.0.1 PR ports/10436 ports/graphics/electriceyes distfile moved PR ports/10437 ports/graphics/imlib 1.9.3 -> 1.9.4 PR ports/10424 ports/lang/gnomeobjc 0.99.3 -> 1.0.1 PR ports/10441 ports/math/gnumeric 0.6 -> 0.15 PR ports/10439 ports/misc/gnomeutils 0.99.5 -> 1.0.1 PR ports/10442 ports/sysutils/gnomeadmin 0.99.1 -> 1.0.1 PR ports/10445 ports/sysutils/gnomecontrolcenter 0.99.3.1 -> 1.0.1 PR ports/10446 ports/sysutils/gtop 0.99.2 -> 1.0.1 PR ports/10477 ports/textproc/libxml 0.99.8 -> 1.0.0 PR ports/10438 ports/www/libghttp distfile moved PR ports/10429 ports/x11/gnome 0.99.3 -> 1.0.0 PR ports/10450 ports/x11/gnomecore 0.99.8.1 -> 1.0.1 PR ports/10432 ports/x11/gnomelibs 0.99.8.1 -> 1.0.1 PR ports/10425 ports/x11-fm/gnomemc 4.5.10 -> 4.5.23 PR ports/10448 ports/x11-toolkits/gtk-engines 0.1 -> 0.5 PR ports/10427 ports/x11-toolkits/gtk12 1.1.6 -> 1.2.0 PR ports/10420 Note that repository copies were made before this commit, as follows: ports/devel/glib11-devel -> ports/devel/glib12 ports/x11-toolkits/gtk11-devel -> ports/x11-toolkits/gtk12 Submitted by: Jeremy Lea <reg@shale.csir.co.za>
1999-03-09 02:13:40 +01:00
${MKDIR} ${X11BASE}/share/locale
cd ${WRKSRC}/gettext-tools/doc && make install-info-am
.if !defined (NOPORTDOCS)
2004-04-07 20:47:06 +02:00
cd ${WRKSRC}/gettext-runtime/doc && make install-data
cd ${WRKSRC}/gettext-tools/doc && make install-data-local
.endif
.if defined (WITH_EXAMPLES)
cd ${WRKSRC}/gettext-tools/examples && make install
.endif
.if !defined (WITH_HTMLMAN)
cd ${WRKSRC}/gettext-runtime/man && make uninstall-html
cd ${WRKSRC}/gettext-tools/man && make uninstall-html
.endif
1998-09-23 19:58:38 +02:00
.include <bsd.port.post.mk>