Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison Makefile @ 16:08fc189baf67
Put some keyword expansion into the port.
This is done in the "extract" stage after copying by an inplace sed.
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Fri, 27 Oct 2017 02:23:22 +0200 |
| parents | f5f04faa9acf |
| children | 089afc4908c0 |
comparison
equal
deleted
inserted
replaced
| 15:532757223c28 | 16:08fc189baf67 |
|---|---|
| 18 | 18 |
| 19 SRC= ${.CURDIR} | 19 SRC= ${.CURDIR} |
| 20 | 20 |
| 21 PLIST_FILES= bin/check-ports | 21 PLIST_FILES= bin/check-ports |
| 22 | 22 |
| 23 HGREVISION:= ${:!hg id -R "${.CURDIR}" -q!} | |
| 24 HGROOT:= ${:!basename "${.CURDIR}"!} | |
| 25 HGPATH:= ${:!hg paths default!} | |
| 26 | |
| 23 do-extract: | 27 do-extract: |
| 24 ${MKDIR} ${WRKSRC}/bin | 28 ${MKDIR} ${WRKSRC}/bin |
| 25 ${CP} -R -v ${SRC}/bin/ ${WRKSRC}/bin | 29 ${CP} -R -v ${SRC}/bin/ ${WRKSRC}/bin |
| 30 .for _f in check-ports | |
| 31 ${SED} -i "" -e "s|@@HGREVISION@@|\$$HGrevision: ${HGREVISION} \$$|" ${WRKSRC}/bin/${_f} | |
| 32 ${SED} -i "" -e "s|@@HGROOT@@|\$$HGroot: ${HGROOT} \$$|" ${WRKSRC}/bin/${_f} | |
| 33 ${SED} -i "" -e "s|@@HGSOURCE@@|\$$HGsource: ${HGPATH}/bin/${_f} \$$|" ${WRKSRC}/bin/${_f} | |
| 34 .endfor | |
| 26 | 35 |
| 27 do-install: | 36 do-install: |
| 28 ${INSTALL_SCRIPT} ${WRKSRC}/bin/check-ports ${STAGEDIR}${PREFIX}/bin/check-ports | 37 ${INSTALL_SCRIPT} ${WRKSRC}/bin/check-ports ${STAGEDIR}${PREFIX}/bin/check-ports |
| 29 | 38 |
| 30 .include <bsd.port.mk> | 39 .include <bsd.port.mk> |
