1999-01-10 19:05:23 +00:00
|
|
|
# New ports collection makefile for: libcii
|
|
|
|
# Date created: 21 April 1998
|
|
|
|
# Whom: J Han <hjh@photino.com>
|
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1999-01-10 19:05:23 +00:00
|
|
|
#
|
|
|
|
|
2000-04-11 21:30:15 +00:00
|
|
|
PORTNAME= libcii
|
|
|
|
PORTVERSION= 1.1
|
1999-01-10 19:05:23 +00:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ftp://ftp.cs.princeton.edu/pub/packages/cii/
|
2000-04-11 21:30:15 +00:00
|
|
|
DISTNAME= cii11
|
1999-01-10 19:05:23 +00:00
|
|
|
|
2000-05-21 09:31:39 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= Library from "C Interfaces and Implementations" by David Hanson
|
1999-01-10 19:05:23 +00:00
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2000-09-09 09:04:18 +00:00
|
|
|
MAKEFILE= makefile
|
|
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DMAXALIGH=8 -Iinclude" \
|
|
|
|
AS="${CC} -c -x assembler-with-cpp -traditional" \
|
|
|
|
LD="${CC}" LDFLAGS="" EXTRAS="" BUILDDIR=${PKGNAME}
|
|
|
|
PLIST_SUB= CIIMAJOR="${CIIMAJOR}"
|
1999-01-10 19:05:23 +00:00
|
|
|
|
|
|
|
CIIBUILD= ${WRKDIR}/${PKGNAME}
|
|
|
|
CIIMAJOR= 1
|
|
|
|
CIIDEST= ${PREFIX}/lib/cii
|
|
|
|
|
2000-09-09 09:04:18 +00:00
|
|
|
SAMPLES= double calc ids mpcalc wf xref cref iref kref \
|
|
|
|
idents words basename dirname sort spin sieve
|
1999-01-10 19:05:23 +00:00
|
|
|
|
2004-03-04 09:19:10 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} != "i386" && ${ARCH} != "alpha"
|
|
|
|
BROKEN= "Does not compile on !i386 and !alpha"
|
|
|
|
.endif
|
|
|
|
|
1999-01-10 19:05:23 +00:00
|
|
|
pre-build:
|
|
|
|
@${MKDIR} ${CIIBUILD}
|
|
|
|
@${MKDIR} ${CIIBUILD}/include
|
|
|
|
@${CP} ${WRKDIR}/include/*.h ${CIIBUILD}/include
|
|
|
|
|
2000-09-09 09:04:18 +00:00
|
|
|
# ${PREFIX}/lib/cii/${CIIMAJOR}/
|
|
|
|
# ${PREFIX}/lib/cii/${CIIMAJOR}/include
|
1999-01-10 19:05:23 +00:00
|
|
|
#
|
2000-09-09 09:04:18 +00:00
|
|
|
# libcii.a is placed in ${PREFIX}/lib
|
|
|
|
# .h is placed in ${PREFIX}/include/cii
|
1999-01-10 19:05:23 +00:00
|
|
|
#
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${CIIDEST}
|
|
|
|
@${MKDIR} ${CIIDEST}/${CIIMAJOR}
|
|
|
|
@${MKDIR} ${CIIDEST}/${CIIMAJOR}/include
|
|
|
|
@${MKDIR} ${CIIDEST}/${CIIMAJOR}/examples
|
|
|
|
##
|
2000-09-09 09:04:18 +00:00
|
|
|
${INSTALL_DATA} ${CIIBUILD}/libcii.a ${CIIDEST}/${CIIMAJOR}
|
1999-01-10 19:05:23 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/*.h ${CIIDEST}/${CIIMAJOR}/include
|
|
|
|
##
|
2000-09-09 09:04:18 +00:00
|
|
|
${LN} -sf ${CIIDEST}/${CIIMAJOR}/libcii.a ${PREFIX}/lib/libcii.a
|
|
|
|
${LN} -sf ${CIIDEST}/${CIIMAJOR}/include ${PREFIX}/include/cii
|
1999-01-10 19:05:23 +00:00
|
|
|
##
|
2000-09-09 09:04:18 +00:00
|
|
|
.for a in ${SAMPLES}
|
|
|
|
${INSTALL_PROGRAM} ${CIIBUILD}/${a} ${CIIDEST}/${CIIMAJOR}/examples
|
|
|
|
.endfor
|
1999-01-10 19:05:23 +00:00
|
|
|
##
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/cii
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/cii/examples
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/cii/src
|
2000-09-09 09:04:18 +00:00
|
|
|
.for f in CPYRIGHT README history.html install.html makefile packing.lst
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/cii
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/doc/cii/examples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/* ${PREFIX}/share/doc/cii/src
|
1999-01-10 19:05:23 +00:00
|
|
|
.endif
|
|
|
|
|
2004-03-04 09:19:10 +00:00
|
|
|
.include <bsd.port.post.mk>
|