- Fix PLIST and handling of PORTDOCS
Reported by: PH (via erwin)
This commit is contained in:
parent
fe5705b619
commit
f1c9872d44
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=281457
2 changed files with 10 additions and 11 deletions
|
@ -20,20 +20,20 @@ USE_XZ= yes
|
|||
USE_LDCONFIG= yes
|
||||
GNU_CONFIGURE= yes
|
||||
USE_AUTOTOOLS= libtool
|
||||
CONFIGURE_ARGS+=--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
|
||||
|
||||
PORTDOCS= libHX_Documentation.pdf
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= *
|
||||
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:L}
|
||||
.endif
|
||||
|
||||
MAN1= hxdirstamp.1
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's| -lrt||g' ${WRKSRC}/src/Makefile.in
|
||||
|
||||
post-build:
|
||||
@${REINPLACE_CMD} -e 's|doc src|src|g' ${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
(mv ${PREFIX}/lib/pkgconfig/libHX.pc ${PREFIX}/libdata/pkgconfig/libHX.pc)
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR}/
|
||||
.if defined(NOPORTDOCS)
|
||||
${REINPLACE_CMD} -e 's|libHX_Documentation.pdf||' \
|
||||
${WRKSRC}/doc/Makefile.in ${WRKSRC}/doc/Makefile.am
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -17,5 +17,4 @@ lib/libHX.la
|
|||
lib/libHX.so
|
||||
lib/libHX.so.27
|
||||
libdata/pkgconfig/libHX.pc
|
||||
@dirrm lib/pkgconfig
|
||||
@dirrm include/libHX
|
||||
|
|
Loading…
Reference in a new issue