mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-12-23 21:11:07 +00:00
More robust FreeBSD port creation.
Instead of using the enclosing source tree, use automake's distdir target to copy a clean set of sources into WRKSRC. This protects us from a polluted tree, prevents us from polluting it in turn, and allows the ports framework to perform necessary substitutions in libtool and the like.
This commit is contained in:
parent
6e70e11df9
commit
2464c55c6e
1 changed files with 10 additions and 14 deletions
|
@ -11,27 +11,23 @@ COMMENT= Collection of cryptographic and security-related libraries
|
|||
|
||||
LICENSE= BSD3CLAUSE
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
USES= gmake libtool pkgconfig
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
USE_LDCONFIG= yes
|
||||
GNU_CONFIGURE= yes
|
||||
INSTALL_TARGET= install-strip
|
||||
TEST_TARGET= check
|
||||
|
||||
DESCR= ${WRKDIR}/pkg-descr
|
||||
|
||||
do-extract:
|
||||
(${CAT} @top_srcdir@/README && ${ECHO} && \
|
||||
${ECHO} "WWW: @PACKAGE_URL@") >${DESCR}
|
||||
|
||||
do-build:
|
||||
(cd @top_srcdir@ && \
|
||||
${GMAKE} all)
|
||||
|
||||
do-install:
|
||||
(cd @top_srcdir@ && \
|
||||
${GMAKE} install-strip DESTDIR=${STAGEDIR} PREFIX=${PREFIX})
|
||||
(cd @abs_top_srcdir@ && \
|
||||
${GMAKE} distdir && ${MV} ${PKGNAME} ${WRKDIR})
|
||||
(${CAT} ${WRKSRC}/README && ${ECHO} && \
|
||||
${ECHO} "WWW: http://cryb.to/") >${DESCR}
|
||||
|
||||
post-stage:
|
||||
(cd ${STAGEDIR} && \
|
||||
${FIND} -s . -type f -or -type l | cut -c 2-) >>${TMPPLIST}
|
||||
${FIND} -s . -type f -or -type l | cut -c 2- | \
|
||||
${SED} -E '/\/man\//s/([0-9])$$/\1.gz/') >>${TMPPLIST}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue