mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
9e5632dd66
the libtoolX ports instead of the one included with each port. Ports that set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of the included version. To restore previous behavior, use the new macro, USE_INC_LIBTOOL_VER. Both macros accept the same argument: a libtool version. For example, to use the ports version of libtool-1.5, add the following to your Makefile: USE_LIBTOOL_VER= 15 To use the included version of libtool with extra hacks provided by libtool-1.5, add the following to your Makefile: USE_INC_LIBTOOL_VER= 15 With this change, ports that had to add additional libtool hacks to prevent .la files from being installed or to fix certain threading issues can now delete those hacks (after appropriate testing, of course). PR: 63944 Based on work by:eik and marcus Approved by: ade (autotools maintainer) Tested by: kris on pointyhat Bound to be hidden problems: You bet
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
# New ports collection makefile for: tn5250
|
|
# Date created: 20 January 2000
|
|
# Whom: Elias Mandouvalos <ocean@compulink.gr>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= tn5250
|
|
PORTVERSION= 0.16.5
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= 5250 Telnet protocol and Terminal
|
|
|
|
USE_REINPLACE= yes
|
|
USE_INC_LIBTOOL_VER=13
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ARGS= --enable-os-dir=no
|
|
INSTALLS_SHLIB= yes
|
|
|
|
MAN1= lp5250d.1 scs2ascii.1 scs2pdf.1 scs2ps.1 tn5250.1
|
|
MAN5= tn5250rc.5
|
|
|
|
.if defined(WITH_SLANG)
|
|
LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang
|
|
PKGNAMESUFFIX= -slang
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DUSE_CURSES" \
|
|
LDFLAGS="-L${LOCALBASE}/lib -lcurses"
|
|
CONFIGURE_ARGS+= --with-slang=yes
|
|
.else
|
|
CONFIGURE_ARGS+= --with-slang=no
|
|
.endif
|
|
|
|
pre-everything::
|
|
.if !defined(WITH_SLANG)
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "If you want to compile with S/Lang support,"
|
|
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_SLANG=yes\""
|
|
@${ECHO_MSG}
|
|
.endif
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC}/src -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|<malloc.h>|<stdlib.h>|g'
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/freebsd/5250keys ${PREFIX}/bin
|
|
.for file in README sample.termcap us.5250.kbd
|
|
${INSTALL_DATA} ${WRKSRC}/freebsd/${file} ${DATADIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|