openbsd-ports/lang/icon/interp/Makefile

64 lines
1.8 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.6 2000/10/09 21:50:32 espie Exp $
1999-08-20 15:53:03 -04:00
VERSION= 9.3.2
DISTNAME= icon_interp-${VERSION}
1999-08-20 15:53:03 -04:00
CATEGORIES= lang
2000-03-07 11:59:20 -05:00
NEED_VERSION= 1.224
1999-08-20 15:53:03 -04:00
MASTER_SITES= ftp://ftp.cs.arizona.edu:/icon/packages/unix/
DIST_SUBDIR= icon/${VERSION}
1999-08-20 15:53:03 -04:00
DISTFILES= unix.tgz
# Public domain
2000-03-07 11:59:20 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
1999-08-20 15:53:03 -04:00
MAINTAINER= Marc Espie <espie@openbsd.org>
1999-08-20 15:53:03 -04:00
WRKDIST= ${WRKDIR}
1999-08-20 15:53:03 -04:00
FLAVORS= no_x11
FLAVOR?=
1999-08-20 15:53:03 -04:00
SCRIPTS_ENV= ARCH="${MACHINE_ARCH}"
MAKE_ENV= ARCH="${MACHINE_ARCH}"
CONF_DIR= ${WRKSRC}/config/unix/openbsd
ALL_TARGET= Icon-icont
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_TARGET=Configure
.else
CONFIGURE_TARGET=X-Configure
.endif
1999-08-20 15:53:03 -04:00
pre-configure:
cp -R ${FILESDIR}/openbsd ${WRKSRC}/config/unix
if [ -f ${CONF_DIR}/${ARCH}_rswitch.c ] ; then \
ln -f ${CONF_DIR}/${ARCH}_rswitch.c ${CONF_DIR}/rswitch.c ;\
1999-08-20 15:53:03 -04:00
else \
touch ${CONF_DIR}/rswitch.c ;\
echo "#define NoCoexpr" \
>>${WRKSRC}/config/unix/openbsd/define.h;\
1999-08-20 15:53:03 -04:00
fi
do-configure:
cd ${WRKSRC} && make ${CONFIGURE_TARGET} name=openbsd
1999-08-20 15:53:03 -04:00
# We put a wrapper around icont for finding the library files when
# they're installed
# The icon manpage is available separately... I've included it along
# with the package. Ludicrous to get through a ftp connexion for such
# a small file...
do-install:
2000-03-07 11:59:20 -05:00
perl ${SCRIPTDIR}/mk_icont ${TRUEPREFIX} >${WRKSRC}/icont
1999-08-20 15:53:03 -04:00
${INSTALL_PROGRAM} ${WRKSRC}/bin/icont ${PREFIX}/lib
${INSTALL_PROGRAM} ${WRKSRC}/bin/iconx ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/rtt ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/icont ${PREFIX}/bin
${INSTALL_MAN} ${FILESDIR}/icon.1 ${PREFIX}/man/man1/icont.1
cd ${PREFIX}/man/man1 && ln icont.1 iconx.1
${INSTALL_DATA} ${WRKSRC}/bin/rt.h ${PREFIX}/include
2000-03-07 11:59:20 -05:00
cd ${PREFIX}/bin && ${WRKSRC}/bin/patchstr ${PREFIX}/lib/icont ${TRUEPREFIX}/bin/iconx
1999-08-20 15:53:03 -04:00
.include <bsd.port.mk>