1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Fix build w/o NLS (don't hardcode libintl link)

- Always install docs and examples into stagedir - let plist handle it
  This avoids the need for <bsd.port.options.mk>

Submitted by:	mat
This commit is contained in:
Johan van Selst 2014-01-11 16:24:42 +00:00
parent dfff7fdcd6
commit 5a8d78cbce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339435

View File

@ -18,7 +18,7 @@ LIB_DEPENDS= libmcrypt.so:${PORTSDIR}/security/libmcrypt \
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lintl
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --enable-static --with-catgets
OPTIONS_DEFINE= DOCS NLS EXAMPLES
@ -29,16 +29,10 @@ NLS_CONFIGURE_ENABLE= nls
post-patch:
${REINPLACE_CMD} -e '/malloc\.h/d' ${WRKSRC}/src/rfc2440.c
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/sample.mcryptrc ${STAGEDIR}${EXAMPLESDIR}
.endif
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/doc && ${INSTALL_DATA} FORMAT magic ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>