# New ports collection makefile for: gettext # Date created: 16 March 1998 # Whom: Yukihiro Nakai # # $FreeBSD$ # PORTNAME= gettext PORTVERSION= 0.11.1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= gettext MAINTAINER= sobomax@FreeBSD.org LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv USE_BISON= yes INSTALLS_SHLIB= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" PLIST_SUB= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MAN1= gettext.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 MAN3= bind_textdomain_codeset.3 bindtextdomain.3 dcgettext.3 \ dcngettext.3 dgettext.3 dngettext.3 gettext.3 ngettext.3 \ textdomain.3 pre-configure: ${RM} ${WRKSRC}/doc/gettext.info* .if !defined(WANT_FULL_GETTEXT) BINFILES= gettext msgattrib msgcat msgcmp msgcomm msgconv msgen \ msgexec msgfilter msgfmt msggrep msginit msgmerge \ msgunfmt msguniq ngettext xgettext PLIST= ${WRKDIR}/PLIST CONFIGURE_ARGS= --disable-shared .undef MAN1 .undef MAN3 .undef INSTALLS_SHLIB do-install: ${INSTALL_SCRIPT} ${WRKSRC}/misc/gettextize \ ${PREFIX}/bin/gettextize-new @${ECHO_CMD} bin/gettextize-new > ${WRKDIR}/PLIST .for file in ${BINFILES} ${INSTALL_PROGRAM} ${WRKSRC}/src/${file} ${PREFIX}/bin/${file}-new @${ECHO_CMD} bin/${file}-new >> ${WRKDIR}/PLIST .endfor .else post-install: @install-info ${PREFIX}/info/gettext.info ${PREFIX}/info/dir ${MKDIR} ${PREFIX}/share/emacs/site-lisp ${INSTALL_DATA} ${WRKSRC}/misc/po-mode.el \ ${PREFIX}/share/emacs/site-lisp/po-mode.el ${MKDIR} ${X11BASE}/share/locale .endif .include