66 lines
2.2 KiB
Makefile
66 lines
2.2 KiB
Makefile
# Icon library port
|
|
# $OpenBSD: Makefile,v 1.9 2000/08/02 23:03:27 espie Exp $
|
|
|
|
VERSION=9.3.3
|
|
DISTNAME=icon_lib-${VERSION}
|
|
DIST_SUBDIR=icon/${VERSION}
|
|
|
|
CATEGORIES=lang
|
|
NEED_VERSION= 1.317
|
|
|
|
MAINTAINER=espie@openbsd.org
|
|
# PD
|
|
PERMIT_DISTFILES_CDROM=Yes
|
|
PERMIT_DISTFILES_FTP=Yes
|
|
PERMIT_PACKAGE_CDROM=Yes
|
|
PERMIT_PACKAGE_FTP=Yes
|
|
|
|
# if you really want, the ipl.tgz file holds precompiled u1/u2 files
|
|
# however, you will still have to grab the source for the necessary
|
|
# includes, especially for the graphics API.
|
|
# Anyway, since source is available, using pre-compiled binaries is not
|
|
# OpenBSD policy...
|
|
|
|
MASTER_SITES=ftp://ftp.cs.arizona.edu/icon/library/
|
|
DISTFILES=bipl.tgz gipl.tgz info.tgz
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
BUILD_DEPENDS=${PREFIX}/bin/icont::lang/icon/interp
|
|
RUN_DEPENDS=${PREFIX}/bin/iconx::lang/icon/interp
|
|
|
|
# temporary values for building programs
|
|
IPATH=${WRKSRC}/gprocs ${WRKSRC}/procs
|
|
LPATH=${WRKSRC}/gincl ${WRKSRC}/incl
|
|
BUILDENV=IPATH="${IPATH}" LPATH="${LPATH}"; export IPATH LPATH;
|
|
|
|
IPL=${PREFIX}/share/ipl
|
|
|
|
do-build:
|
|
# first build library
|
|
${BUILDENV} cd ${WRKSRC} && /bin/sh Ucode && /bin/sh Ugcode
|
|
# then build programs using library
|
|
${BUILDENV} cd ${WRKSRC} && /bin/sh Icode && /bin/sh Igcode
|
|
# finally build some supplementary packages
|
|
${BUILDENV} cd ${WRKSRC}/gpacks/vib && make
|
|
${BUILDENV} cd ${WRKSRC}/gpacks/xtiles && icont xtiles.icn
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${IPL}/ucode
|
|
${INSTALL_DATA} ${WRKSRC}/procs/*.u[12] ${IPL}/ucode
|
|
${INSTALL_DATA} ${WRKSRC}/gprocs/*.u[12] ${IPL}/ucode
|
|
${INSTALL_DATA_DIR} ${IPL}/incl
|
|
${INSTALL_DATA} ${WRKSRC}/incl/* ${IPL}/incl
|
|
${INSTALL_DATA_DIR} ${IPL}/gincl
|
|
${INSTALL_DATA} ${WRKSRC}/gincl/* ${IPL}/gincl
|
|
${INSTALL_PROGRAM_DIR} ${IPL}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gpacks/vib/vib ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gpacks/xtiles/xtiles ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/gpacks/xtiles/xtiles.6 ${PREFIX}/man/man6
|
|
|
|
# we separate icon sample program from the rest of the world, especially
|
|
# as we can share them between architectures
|
|
find ${WRKSRC}/progs -type f -perm -a+x -exec ${INSTALL_SCRIPT} {} ${IPL}/bin \;
|
|
find ${WRKSRC}/gprogs -type f -perm -a+x -exec ${INSTALL_SCRIPT} {} ${IPL}/bin \;
|
|
|
|
.include <bsd.port.mk>
|