openbsd-ports/lang/icon/lib/Makefile

89 lines
2.7 KiB
Makefile
Raw Normal View History

1999-08-20 15:53:03 -04:00
# Icon library port
# $OpenBSD: Makefile,v 1.20 2007/09/16 00:27:05 merdely Exp $
COMMENT= useful and interesting programs for Icon
1999-08-20 15:53:03 -04:00
VERSION=9.4.3
DISTNAME= icon.v943src
2001-07-03 09:17:23 -04:00
PKGNAME= icon-lib-${VERSION}
#DIST_SUBDIR=icon/${VERSION}
DISTFILES= icon.v943src.tgz
1999-08-20 15:53:03 -04:00
CATEGORIES=lang
MAINTAINER= Marc Espie <espie@openbsd.org>
# PD
2000-03-05 13:30:21 -05:00
PERMIT_DISTFILES_CDROM=Yes
PERMIT_DISTFILES_FTP=Yes
PERMIT_PACKAGE_CDROM=Yes
PERMIT_PACKAGE_FTP=Yes
1999-08-20 15:53:03 -04:00
2001-07-03 09:17:23 -04:00
WRKDIST=${WRKDIR}/${DISTNAME}/ipl
1999-08-20 15:53:03 -04:00
# 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...
2001-07-03 09:17:23 -04:00
#MASTER_SITES=ftp://ftp.cs.arizona.edu/icon/library/
#DISTFILES=bipl.tgz info.tgz
#SUPDISTFILES=gipl.tgz
#WRKDIST= ${WRKDIR}
1999-08-20 15:53:03 -04:00
BUILD_DEPENDS=::lang/icon/interp
RUN_DEPENDS=::lang/icon/interp
1999-08-20 15:53:03 -04:00
# temporary values for building programs
2001-07-03 09:17:23 -04:00
IPATH=${WRKSRC}/gprocs:${WRKSRC}/procs:${LOCALBASE}/share/ipl/ucode
LPATH=${WRKSRC}/gincl:${WRKSRC}/incl
1999-08-20 15:53:03 -04:00
BUILDENV=IPATH="${IPATH}" LPATH="${LPATH}"; export IPATH LPATH;
IPL=${PREFIX}/share/ipl
2000-10-09 18:27:03 -04:00
FLAVORS= no_x11
FLAVOR?=
.if ${FLAVOR:L:Mno_x11}
PATCH_LIST=patch-progs*
.endif
1999-08-20 15:53:03 -04:00
do-build:
# first build library
2001-07-03 09:17:23 -04:00
${BUILDENV} cd ${WRKSRC}/procs && icont -usc *.icn
2000-10-09 18:27:03 -04:00
.if empty(FLAVOR:L:Mno_x11)
2001-07-03 09:17:23 -04:00
${BUILDENV} cd ${WRKSRC}/gprocs && icont -usc *.icn
2000-10-09 18:27:03 -04:00
.endif
1999-08-20 15:53:03 -04:00
# then build programs using library
2001-07-03 09:27:38 -04:00
${BUILDENV} cd ${WRKSRC}/progs && for i in *.icn; do icont -us $$i; done
2000-10-09 18:27:03 -04:00
.if empty(FLAVOR:L:Mno_x11)
2001-07-03 09:17:23 -04:00
${BUILDENV} cd ${WRKSRC}/gprogs && for i in *.icn; do icont -us $$i; done
2000-10-09 18:27:03 -04:00
.endif
1999-08-20 15:53:03 -04:00
# finally build some supplementary packages
2000-10-09 18:27:03 -04:00
.if empty(FLAVOR:L:Mno_x11)
2001-07-03 09:17:23 -04:00
${BUILDENV} cd ${WRKSRC}/gpacks/vib && ${MAKE}
2001-07-03 09:27:38 -04:00
${BUILDENV} cd ${WRKSRC}/gpacks/xtiles && icont -s xtiles.icn
2000-10-09 18:27:03 -04:00
.endif
1999-08-20 15:53:03 -04:00
2002-10-27 09:12:47 -05:00
NO_REGRESS= Yes
1999-08-20 15:53:03 -04:00
do-install:
${INSTALL_DATA_DIR} ${IPL}/ucode
${INSTALL_DATA} ${WRKSRC}/procs/*.u[12] ${IPL}/ucode
${INSTALL_DATA_DIR} ${IPL}/incl
${INSTALL_DATA} ${WRKSRC}/incl/* ${IPL}/incl
2000-10-09 18:27:03 -04:00
${INSTALL_PROGRAM_DIR} ${IPL}/bin
.if empty(FLAVOR:L:Mno_x11)
${INSTALL_DATA} ${WRKSRC}/gprocs/*.u[12] ${IPL}/ucode
1999-08-20 15:53:03 -04:00
${INSTALL_DATA_DIR} ${IPL}/gincl
${INSTALL_DATA} ${WRKSRC}/gincl/* ${IPL}/gincl
${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
2000-10-09 18:27:03 -04:00
.endif
1999-08-20 15:53:03 -04:00
# 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 \;
2000-10-09 18:27:03 -04:00
-find ${WRKSRC}/gprogs -type f -perm -a+x -exec ${INSTALL_SCRIPT} {} ${IPL}/bin \;
1999-08-20 15:53:03 -04:00
.include <bsd.port.mk>