Changeset View
Changeset View
Standalone View
Standalone View
archivers/liblz4/Makefile
Show All 10 Lines | |||||
COMMENT= LZ4 compression library, lossless and very fast | COMMENT= LZ4 compression library, lossless and very fast | ||||
LICENSE= BSD2CLAUSE GPLv2 | LICENSE= BSD2CLAUSE GPLv2 | ||||
LICENSE_COMB= multi | LICENSE_COMB= multi | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= Cyan4973 | GH_ACCOUNT= Cyan4973 | ||||
USES= gmake pkgconfig | USES= gmake pathfix pkgconfig | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
PATHFIX_MAKEFILEIN= Makefile | |||||
ALL_TARGET= default # don't remove this | ALL_TARGET= default # don't remove this | ||||
SO_VER= 1.7.1 | SO_VER= 1.7.1 | ||||
PLIST_SUB+= SO_VER=${SO_VER} SO_VER_MAJ=${SO_VER:R:R} | PLIST_SUB+= SO_VER=${SO_VER} SO_VER_MAJ=${SO_VER:R:R} | ||||
LIBDIR= ${PREFIX}/lib | |||||
post-patch: | post-patch: | ||||
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \ | @${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \ | ||||
-e 's/LIBDIR?=/LOCALLIBDIR=/; s/$$(LIBDIR)/$$(LOCALLIBDIR)/g' \ | |||||
-e 's|$$(LOCALLIBDIR)/pkgconfig|$$(PREFIX)/libdata/pkgconfig|' \ | |||||
-e '/^MANDIR :=/s|share/||' \ | -e '/^MANDIR :=/s|share/||' \ | ||||
-e 's/kFreeBSD/& FreeBSD/' \ | -e 's/kFreeBSD/& FreeBSD/' | ||||
-e 's|$$(MAKE)|${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS}|' | |||||
@${REINPLACE_CMD} -e '/^all:/s/$$/ liblz4.pc/' \ | @${REINPLACE_CMD} -e '/^all:/s/$$/ liblz4.pc/' \ | ||||
${WRKSRC}/lib/Makefile | ${WRKSRC}/lib/Makefile | ||||
@${REINPLACE_CMD} -e '/^all:/s|fullbench.*||' \ | @${REINPLACE_CMD} -e '/^all:/s|fullbench.*||' \ | ||||
${WRKSRC}/programs/Makefile | ${WRKSRC}/programs/Makefile | ||||
post-install: | post-install: | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lz4* | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lz4* | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblz4.so.${SO_VER} | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblz4.so.${SO_VER} | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |