openbsd-ports/lang/unicon/Makefile

87 lines
2.5 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.13 2006/07/19 15:11:53 steven Exp $
# XXX crashes & hangs, to be dealt with
NOT_FOR_ARCHS= powerpc m68k hppa arm sparc
COMMENT= "programming language with generators, X11 graphics and more"
2000-10-08 14:25:01 -04:00
CATEGORIES= lang
DISTNAME= unicon-10.0beta
PKGNAME= ${DISTNAME}p0
2000-10-08 14:25:01 -04:00
DISTFILES= uni.zip
HOMEPAGE= http://unicon.sourceforge.net/
2000-10-08 14:25:01 -04:00
MASTER_SITES= http://icon.cs.unlv.edu/v9/
MAINTAINER= Marc Espie <espie@openbsd.org>
# GPL
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
2005-02-24 08:20:41 -05:00
WANTLIB= c m X11 Xpm
2000-10-08 14:25:01 -04:00
WRKDIST= ${WRKDIR}
LIB_DEPENDS= gdbm.::databases/gdbm
2003-03-31 09:11:50 -05:00
USE_X11= Yes
2000-10-08 14:25:01 -04:00
SCRIPTS_ENV= ARCH="${MACHINE_ARCH}"
MAKE_ENV= ARCH="${MACHINE_ARCH}"
CONF_DIR= ${WRKSRC}/config/unix/openbsd
ALL_TARGET= Unicon
2000-10-09 19:29:57 -04:00
CONFIGURE_TARGET=X-Configure
2002-10-27 09:10:23 -05:00
REGRESS_TARGET= Test
2000-10-08 14:25:01 -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 ;\
else \
touch ${CONF_DIR}/rswitch.c ;\
2000-10-09 19:29:57 -04:00
echo "#define NoCoexpr" \
>>${WRKSRC}/config/unix/openbsd/define.h;\
2000-10-08 14:25:01 -04:00
fi
2000-10-09 19:29:57 -04:00
do-configure:
cd ${WRKSRC} && make ${CONFIGURE_TARGET} name=openbsd
2000-10-08 14:25:01 -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...
pre-install:
.for i in unicon ivib
2000-10-09 19:29:57 -04:00
-cd ${WRKBUILD}/bin && mv $i $i.bak && \
2000-10-08 14:25:01 -04:00
sed -e s,`pwd -P`,${TRUEPREFIX}/bin, <$i.bak >$i
.endfor
do-install:
perl ${SCRIPTDIR}/mk_icont ${TRUEPREFIX} >${WRKBUILD}/icont
${INSTALL_PROGRAM} ${WRKBUILD}/bin/icont ${PREFIX}/lib
${INSTALL_PROGRAM} ${WRKBUILD}/bin/iconx ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKBUILD}/bin/miconx ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKBUILD}/bin/rtt ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKBUILD}/icont ${PREFIX}/bin
${INSTALL_MAN} ${FILESDIR}/icon.1 ${PREFIX}/man/man1/icont.1
cd ${PREFIX}/man/man1 && ln -f icont.1 iconx.1
${INSTALL_DATA} ${WRKBUILD}/bin/rt.h ${PREFIX}/include
cd ${PREFIX}/bin && ${WRKBUILD}/bin/patchstr ${PREFIX}/lib/icont ${TRUEPREFIX}/bin/iconx
${INSTALL_SCRIPT} ${WRKBUILD}/bin/unicon ${PREFIX}/bin
2000-10-09 19:29:57 -04:00
-${INSTALL_SCRIPT} ${WRKBUILD}/bin/ivib ${PREFIX}/bin
2000-10-08 14:25:01 -04:00
${INSTALL_DATA_DIR} ${PREFIX}/share/ipl/lib
${INSTALL_DATA_DIR} ${PREFIX}/share/ipl/include
for i in ${WRKBUILD}/ipl/lib/*.u; do \
${INSTALL_DATA} $$i ${PREFIX}/share/ipl/lib; \
done
for i in ${WRKBUILD}/ipl/{incl,gincl}/*.icn; do \
${INSTALL_DATA} $$i ${PREFIX}/share/ipl/include; \
done
.include <bsd.port.mk>