Changeset View
Changeset View
Standalone View
Standalone View
devel/libexplain/Makefile
Show All 11 Lines | |||||
COMMENT= Library which may be used to explain Unix and Linux system call errors | COMMENT= Library which may be used to explain Unix and Linux system call errors | ||||
LICENSE= LGPL3+ | LICENSE= LGPL3+ | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
BUILD_DEPENDS= gsed:textproc/gsed | BUILD_DEPENDS= gsed:textproc/gsed | ||||
RUN_DEPENDS= lsof:sysutils/lsof | RUN_DEPENDS= lsof:sysutils/lsof | ||||
USES= bison gettext ghostscript:build gmake iconv libtool:build | USES= bison gettext ghostscript:build gmake iconv libtool:build pathfix | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ENV= ac_cv_header_linux_kd_h=no | CONFIGURE_ENV= ac_cv_header_linux_kd_h=no | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
LIBS+= -L${LOCALBASE}/lib | LIBS+= -L${LOCALBASE}/lib | ||||
PATCHLEVEL= D012 | PATCHLEVEL= D012 | ||||
OPTIONS_DEFINE= DOCS | OPTIONS_DEFINE= DOCS | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if empty(ICONV_LIB) | .if empty(ICONV_LIB) | ||||
CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv=no | CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv=no | ||||
.else | .else | ||||
CONFIGURE_ARGS+=ac_cv_func_iconv_open=yes ac_cv_func_iconv_close=yes \ | CONFIGURE_ARGS+=ac_cv_func_iconv_open=yes ac_cv_func_iconv_close=yes \ | ||||
ac_cv_lib_iconv_iconv=yes | ac_cv_lib_iconv_iconv=yes | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e \ | @${REINPLACE_CMD} -e 's|[[:<:]]sed|gsed|g' ${WRKSRC}/Makefile.in | ||||
's|$$(libdir)/pkgconfig|$$(libdir)/../libdata/pkgconfig|g ; \ | |||||
s|\([[:blank:]]\)sed|\1gsed|g' ${WRKSRC}/Makefile.in | |||||
post-install: | post-install: | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libexplain.so | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libexplain.so | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |