- Support staging

- Strip binaries
- Pet portlint

PR:		190504
Submitted by:	vmagerya@gmail.com (maintainer)
This commit is contained in:
Carlo Strub 2014-06-05 21:55:01 +00:00
parent 022524468b
commit 858ba02fba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356715
2 changed files with 10 additions and 7 deletions

View file

@ -19,7 +19,7 @@ ONLY_FOR_ARCHS= i386 amd64
NO_PACKAGE= User must accept license terms before installation
.if defined(PACKAGE_BUILDING)
IGNORE= User must accept license terms before installation
IGNORE= user must accept license terms before installation
.endif
OPTIONS_DEFINE= THREADS
@ -29,18 +29,16 @@ HAS_CONFIGURE= yes
USES= iconv
CONFIGURE_ARGS= --installprefix=${PREFIX} \
--installman=${MANPREFIX}/man \
--temproot=${STAGEDIR} \
--force-relink \
--nogzip-man-pages \
-m=${CHEZ_MACHTYPE}
ALL_TARGET= build
MAN1= petite.1
PLIST_SUB= CHEZ_VERSION="${PORTVERSION}" \
CHEZ_MACHTYPE="${CHEZ_MACHTYPE}"
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
@ -75,4 +73,8 @@ post-configure:
-e 's|-L/usr/local/lib|-L/usr/lib -L${LOCALBASE}/lib|' \
${WRKSRC}/Mf-${CHEZ_MACHTYPE}
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/petite
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/scheme-script
.include <bsd.port.post.mk>

View file

@ -27,6 +27,7 @@ lib/csv%%CHEZ_VERSION%%/lib/scons.ss
lib/csv%%CHEZ_VERSION%%/lib/setof.ss
lib/csv%%CHEZ_VERSION%%/lib/socket.ss
lib/csv%%CHEZ_VERSION%%/lib/unify.ss
@dirrm lib/csv%%CHEZ_VERSION%%/lib
@dirrm lib/csv%%CHEZ_VERSION%%/%%CHEZ_MACHTYPE%%
@dirrm lib/csv%%CHEZ_VERSION%%
man/man1/petite.1.gz
@dirrmtry lib/csv%%CHEZ_VERSION%%/%%CHEZ_MACHTYPE%%
@dirrmtry lib/csv%%CHEZ_VERSION%%/lib
@dirrmtry lib/csv%%CHEZ_VERSION%%