freebsd-ports/devel/fhist/Makefile
Tijl Coosemans 88c67cd38c - Update devel/libtool and devel/libltdl to version 2.4.2.418
- Patch libtool so it uses the same library version specification as on
  Darwin, Linux and other systems.  Given the version current:revision:age
  a library will be given the extension .so.major.age.revision with major
  equal to current-age.  Before libtool would use .so.current on FreeBSD.
- Patch libtoolize to remove two cases of umask 0 that caused libltdl
  files to be copied world writable (--ltdl option)
- Let USES=libtool patch this new version correctly
- Adjust all ports with USES=libtool:build and bump PORTREVISION on their
  dependent ports if a library version changed

PR:		194068
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-10-05 18:01:19 +00:00

65 lines
1.5 KiB
Makefile

# Created by: <jkoshy@FreeBSD.org>
# $FreeBSD$
PORTNAME= fhist
PORTVERSION= 1.21
DISTVERSIONSUFFIX= .D001
PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Utilities to maintain file history, do file comparisons, and merges
LICENSE= GPLv3
LIB_DEPENDS= libexplain.so:${PORTSDIR}/devel/libexplain
OPTIONS_DEFINE= NLS
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_CSTD= gnu89
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-nlsdir=${PREFIX}/share/locale/en/LC_MESSAGES
ALL_TARGET= all-bin
MAKE_JOBS_UNSAFE=yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_FILES= bin/fcomp bin/fhist bin/fmerge \
man/man1/fcomp.1.gz man/man1/fhist.1.gz \
man/man1/fmerge.1.gz
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
.for file in fcomp fhist fmerge
PLIST_FILES+= share/locale/en/LC_MESSAGES/${file}.mo
.endfor
.else
CONFIGURE_ENV+= ac_cv_lib_intl_main=no
.endif
post-build:
.for file in fcomp fhist fmerge
.if ${PORT_OPTIONS:MNLS}
@(cd ${WRKSRC}/lib/en/LC_MESSAGES && ${LOCALBASE}/bin/msgfmt -o \
${file}.mo ${file}.po)
.endif
.endfor
do-install:
.for file in fcomp fhist fmerge
${INSTALL_PROGRAM} ${WRKSRC}/bin/${file} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/lib/en/man1/${file}.1 ${STAGEDIR}${MANPREFIX}/man/man1
.if ${PORT_OPTIONS:MNLS}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/en/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/lib/en/LC_MESSAGES/${file}.mo \
${STAGEDIR}${PREFIX}/share/locale/en/LC_MESSAGES
.endif
.endfor
.include <bsd.port.mk>