pkgsrc/devel/gettext-tools/Makefile
ryoon 3e3ccaae4a Fix build on Cygwin.
* Remove -Wl,--disable-auto-import option. With this option, I have gotten
  "undefined reference to environ" error.
2013-07-30 13:28:40 +00:00

45 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.21 2013/07/30 13:28:40 ryoon Exp $
.include "../../devel/gettext/Makefile.common"
PKGNAME= ${DISTNAME:S/-/-tools-/}
COMMENT= Tools for providing messages in different languages
DISTINFO_FILE= ${.CURDIR}/../../devel/gettext/distinfo
PATCHDIR= ${.CURDIR}/../../devel/gettext/patches
USE_LANGUAGES= c c++
USE_PKGLOCALEDIR= yes
CONFIGURE_ARGS+= --disable-csharp
CONFIGURE_ARGS+= --with-included-libcroco
CONFIGURE_ARGS+= --without-git
CONFIGURE_ARGS+= --without-included-gettext
CONFIGURE_ENV+= GCJ= ac_cv_prog_GCJ= ac_cv_prog_JAR=
CONFIGURE_ENV+= HAVE_GCJ_IN_PATH=
CONFIGURE_ENV+= HAVE_JAVAC_IN_PATH=
CONFIGURE_ENV+= HAVE_JIKES_IN_PATH=
CONFIGURE_ENV+= ac_cv_libexpat=no
LDFLAGS.AIX+= -Wl,-brtl
SHLIBTOOL_OVERRIDE= # empty
INFO_FILES= yes
BROKEN_GETTEXT_DETECTION= yes
USE_BUILTIN.gettext= no # force use of pkgsrc gettext-lib
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Cygwin"
BUILDLINK_TRANSFORM+= rm:-Wl,--disable-auto-import
.endif
post-install:
cd ${WRKSRC}/gettext-tools/misc && ${MAKE} install DESTDIR=${DESTDIR}
${INSTALL_MAN} ${WRKSRC}/gettext-tools/man/autopoint.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/gettext-tools/man/gettextize.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../archivers/xz/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"