aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2011-08-20 23:08:59 +0800
committerdanfe <danfe@FreeBSD.org>2011-08-20 23:08:59 +0800
commit416529d64250b86cfbc1083caa242a5e57e1fb7b (patch)
tree2c69aed5f66b98223b520083df60c4a319a68cd7 /comms
parent5a24c8cae0c99b59f0051ffe2f27683c8e5f3b71 (diff)
downloadfreebsd-ports-graphics-416529d64250b86cfbc1083caa242a5e57e1fb7b.tar.gz
freebsd-ports-graphics-416529d64250b86cfbc1083caa242a5e57e1fb7b.tar.zst
freebsd-ports-graphics-416529d64250b86cfbc1083caa242a5e57e1fb7b.zip
- Switch from currently unsupported ALL_TARGET `krbmit' to `freebsd+ssl'
- Remove home-rolled MAKE_ARGS bundle, leave only FreeBSD specific things - Do not trim version suffix when assigning HERALD value - Adjust PREFIX -> MANPREFIX for manpage installation Discussed with: upstream maintainer (Frank da Cruz)
Diffstat (limited to 'comms')
-rw-r--r--comms/kermit/Makefile24
1 files changed, 8 insertions, 16 deletions
diff --git a/comms/kermit/Makefile b/comms/kermit/Makefile
index 8bb4e32f4dc..d3d7dc2f741 100644
--- a/comms/kermit/Makefile
+++ b/comms/kermit/Makefile
@@ -20,30 +20,22 @@ LICENSE= BSD
USE_OPENSSL= yes
NO_WRKSUBDIR= yes
MAKEFILE= makefile
-ALL_TARGET= krbmit
+ALL_TARGET= freebsd+ssl
+MAKE_ARGS= CC2=${CC} SSLINC=-I${OPENSSLINC} SSLLIB=-L${OPENSSLLIB}
+CFLAGS+= -DHERALD=\\\"\\\\\\\" ${HERALD}\\\\\\\"\\\"
PLIST_FILES= bin/kermit
PORTDOCS= *
PORTEXAMPLES= *
MAN1= kermit.1
-MAKE_ARGS= KTARGET=freebsd CC="${CC}" CC2="${CC}" \
- CFLAGS="${CFLAGS} -I${OPENSSLINC} -DBSD44 \
- -DCK_NCURSES -DCK_NEWTERM -DHERALD=\"\\\" ${HERALD}\\\"\" \
- -DTCPSOCKET -DNOCOTFMC -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT \
- -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR -DCKHTTP \
- -DCK_SSL -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES \
- -DOPENSSL_DES_LIBDES_COMPATIBILITY -DOPENSSL_097" \
- LIBS="-L${OPENSSLLIB} \
- -lssl -lcrypto -lncurses -lcrypt -lutil -lm"
-
.include <bsd.port.pre.mk>
-# Explicitly pass version of our beloved OS; upstream routine is not robust
-# enough to handle all cases correctly
-HERALD!= ${UNAME} -sr | ${CUT} -d - -f 1
+# Explicitly pass version of our beloved OS until upstream code is fixed
+HERALD!= ${UNAME} -sr
post-patch:
+ @${REINPLACE_CMD} -e 's,-O -pipe,${CFLAGS},' ${WRKSRC}/${MAKEFILE}
# Catch up with recent <utmp.h> replacement by <utmpx.h>
.if ${OSVERSION} > 900006
@${REINPLACE_CMD} -e 's,ut\.ut_name,ut.ut_user,g' \
@@ -51,8 +43,8 @@ post-patch:
.endif
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/krbmit ${PREFIX}/bin/kermit
- ${INSTALL_MAN} ${WRKSRC}/ckuker.nr ${PREFIX}/man/man1/kermit.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/wermit ${PREFIX}/bin/kermit
+ ${INSTALL_MAN} ${WRKSRC}/ckuker.nr ${MANPREFIX}/man/man1/kermit.1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}