- Support libintl library properly
- Use LOCALBASE to refer external dependancy files PR: 22891 Submitted by: Ports Fury
This commit is contained in:
parent
d749c9a48f
commit
cc2cb0427e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35221
2 changed files with 10 additions and 17 deletions
|
@ -15,17 +15,21 @@ MAINTAINER= ports@FreeBSD.org
|
|||
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --without-included-gettext --with-readline
|
||||
CONFIGURE_ENV= LIBS="-lgnuregex -L${PREFIX}/lib -lintl" \
|
||||
CFLAGS="${CFLAGS} -I${PREFIX}/include"
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LIBS="-L${LOCALBASE}/lib -lgnuregex"
|
||||
CONFIGURE_ARGS= --with-readline
|
||||
|
||||
MAN1= pinfo.1
|
||||
|
||||
pre-patch:
|
||||
@${PERL} -pi -e \
|
||||
's|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 400010
|
||||
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
|
||||
CONFIGURE_ARGS+= --with-ncurses=${PREFIX}
|
||||
CONFIGURE_ARGS+= --with-ncurses=${LOCALBASE}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,21 +1,10 @@
|
|||
bin/pinfo
|
||||
etc/pinforc
|
||||
@unexec install-info --delete --info-dir=%D/info %D/info/pinfo.info
|
||||
@unexec install-info --delete %D/info/pinfo.info %D/info/dir
|
||||
info/pinfo.info
|
||||
@exec install-info --info-dir=%D/info %D/info/pinfo.info
|
||||
@exec install-info %D/info/pinfo.info %D/info/dir
|
||||
share/locale/cs/LC_MESSAGES/pinfo.mo
|
||||
share/locale/de/LC_MESSAGES/pinfo.mo
|
||||
share/locale/pl/LC_MESSAGES/pinfo.mo
|
||||
share/locale/ru/LC_MESSAGES/pinfo.mo
|
||||
share/locale/sv/LC_MESSAGES/pinfo.mo
|
||||
@unexec rmdir %D/share/locale/cs/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/cs 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/de/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/de 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/pl/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/pl 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/ru/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/ru 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/sv/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/sv 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale 2>/dev/null || true
|
||||
|
|
Loading…
Reference in a new issue