mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
lang/librep: Optionize INFO
- Pet portclippy
This commit is contained in:
parent
98c47a3f59
commit
af35500586
@ -16,27 +16,42 @@ LIB_DEPENDS= libgdbm.so:databases/gdbm \
|
||||
libgmp.so:math/gmp
|
||||
RUN_DEPENDS= gtar:archivers/gtar
|
||||
|
||||
USES= autoreconf gettext gmake libtool localbase:ldflags \
|
||||
pathfix pkgconfig readline shebangfix tar:xz
|
||||
USE_CSTD= gnu89
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
USES= autoreconf gettext gmake libtool makeinfo pathfix pkgconfig readline \
|
||||
shebangfix tar:xz
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-aclocaldir=${PREFIX}/share/aclocal \
|
||||
--with-stack-direction=-1
|
||||
SHEBANG_FILES= ${WRKSRC}/src/rep-xgettext.jl
|
||||
SHEBANG_LANG= rep
|
||||
rep_OLD_CMD= /usr/bin/rep
|
||||
rep_CMD?= ${PREFIX}/bin/rep
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib -pthread
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-aclocaldir=${PREFIX}/share/aclocal \
|
||||
--with-stack-direction=-1
|
||||
|
||||
INFO= librep
|
||||
LDFLAGS+= -pthread
|
||||
|
||||
OPTION_DEFINE= INFO
|
||||
OPTION_DEFAULT= INFO
|
||||
|
||||
INFO_USES= makeinfo
|
||||
INFO_INFO= librep
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/man/Makefile.in
|
||||
@${REINPLACE_CMD} -E 's|(INSTALL_PROGRAM\))( [^-])|\1 -m 755\2|' \
|
||||
${WRKSRC}/src/Makefile.in
|
||||
@${REINPLACE_CMD} -e '/SUBDIRS/s|man||' ${WRKSRC}/Makefile.in
|
||||
|
||||
post-build-INFO-on:
|
||||
cd ${WRKSRC}/man && \
|
||||
makeinfo --no-split -I . librep.texi -o librep.info
|
||||
|
||||
post-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/man/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
||||
|
||||
post-install-INFO-on:
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/librep.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user