diff options
Diffstat (limited to 'shells/ksh93/Makefile')
-rw-r--r-- | shells/ksh93/Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/shells/ksh93/Makefile b/shells/ksh93/Makefile index d25cf60261b1..3a923caef4a4 100644 --- a/shells/ksh93/Makefile +++ b/shells/ksh93/Makefile @@ -17,20 +17,17 @@ IS_INTERACTIVE= yes # must acknowledge license DISTNAME= ${PORTNAME}-${VERSION} DISTFILES= INIT.${VERSION}.tgz ast-ksh.${VERSION}.tgz -EXTRACT_ONLY= INIT.${VERSION}.tgz NO_WRKSUBDIR= yes +MAKE_ARGS= CC='${CC}' CCFLAGS='${CFLAGS}' SHELL='${SH}' +.if defined(WANT_STATIC) +MAKE_ARGS+= LDFLAGS=-static +.endif MAN1= ksh93.1 -post-extract: - @${MKDIR} ${WRKSRC}/lib/package/tgz - @${LN} -s ${DISTDIR}/ast-ksh.${VERSION}.tgz ${WRKSRC}/lib/package/tgz/ - @cd ${WRKSRC}; bin/package read - do-build: - @cd ${WRKSRC}; bin/package make \ - CC='${CC}' CCFLAGS='${CFLAGS}' LDFLAGS=-static + @cd ${WRKSRC}; bin/package make ${MAKE_ARGS} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/arch/freebsd.${ARCH}/bin/ksh \ |