openbsd-ports/lang/icon/book/Makefile

44 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2007/09/16 00:27:05 merdely Exp $
CATEGORIES= books lang
COMMENT= Icon programming language reference book
MAINTAINER= Marc Espie <espie@openbsd.org>
MASTER_SITES= http://www.cs.arizona.edu/icon/ftp/doc/
# This documents version 9.3 of the language.
V=9.3
DISTNAME= icon-book-$V
FLAVORS=two_sided
FLAVOR?=
.if ${FLAVOR:L} == "two_sided"
DISTFILES= lb2up.pdf
FULLPKGNAME= icon-book-two_sided-$Vp0
.else
DISTFILES= lb1up.pdf
FULLPKGNAME= icon-book-$V
.endif
SUPDISTFILES= lb1up.pdf lb2up.pdf
# Book says:
# 'This book originally was published by Peer-to-Peer Communications.
# It is out of print and the rights have reverted to the authors, who hereby
# place it in the public domain'.
PERMIT_PACKAGE_FTP=Yes
PERMIT_PACKAGE_CDROM=Yes
PERMIT_DISTFILES_FTP=Yes
PERMIT_DISTFILES_CDROM=Yes
EXTRACT_ONLY=
NO_BUILD=Yes
PKG_ARCH=*
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/icon
${INSTALL_DATA} ${FULLDISTDIR}/${DISTFILES} ${PREFIX}/share/doc/icon/icon-book${FLAVOR_EXT}.pdf
.include <bsd.port.mk>