diff options
author | steve <steve@FreeBSD.org> | 1999-01-11 03:05:23 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-01-11 03:05:23 +0800 |
commit | 7c1d75b1376be573dfa1fa9f49b021ccd473f1c8 (patch) | |
tree | 0b72a809abe23c6f5b4d8972cda683b2a2a5b010 /devel/libcii/Makefile | |
parent | 63d2da66dba44e9b1a9ee71d6a0fa3d4c628da67 (diff) | |
download | freebsd-ports-gnome-7c1d75b1376be573dfa1fa9f49b021ccd473f1c8.tar.gz freebsd-ports-gnome-7c1d75b1376be573dfa1fa9f49b021ccd473f1c8.tar.zst freebsd-ports-gnome-7c1d75b1376be573dfa1fa9f49b021ccd473f1c8.zip |
Initial import of libcii version 1.1.
Library from "C Interfaces and Implementations" by David Hanson.
PR: 6504
Submitted by: J Han <hjh@photino.com>
Diffstat (limited to 'devel/libcii/Makefile')
-rw-r--r-- | devel/libcii/Makefile | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/devel/libcii/Makefile b/devel/libcii/Makefile new file mode 100644 index 000000000000..5c03317c0934 --- /dev/null +++ b/devel/libcii/Makefile @@ -0,0 +1,81 @@ +# New ports collection makefile for: libcii +# Version required: 1.1 +# Date created: 21 April 1998 +# Whom: J Han <hjh@photino.com> +# +# $Id$ +# + +DISTNAME= cii11 +PKGNAME= libcii-1.1 +CATEGORIES= devel +MASTER_SITES= ftp://ftp.cs.princeton.edu/pub/packages/cii/ + +MAINTAINER= hjh@photino.com + +NO_INSTALL_MANPAGES= yes +NO_WRKSUBDIR= yes + +SAMPLES= double calc ids mpcalc wf xref cref iref kref \ + idents words basename dirname sort spin sieve + +CIIBUILD= ${WRKDIR}/${PKGNAME} +CIICUSTOM= ${FILESDIR}/freebsd.mk +CIIMAJOR= 1 +CIIDEST= ${PREFIX}/lib/cii + +MAKEFILE= makefile +MAKE_FLAGS+= BUILDDIR=${PKGNAME} # ${CIIBUILD} +MAKE_FLAGS+= CUSTOM=${CIICUSTOM} + +pre-build: + @${MKDIR} ${CIIBUILD} + @${MKDIR} ${CIIBUILD}/include + @${CP} ${WRKDIR}/include/*.h ${CIIBUILD}/include + +do-build: + @(cd ${WRKDIR}; ${MAKE} ${MAKE_FLAGS}) + +# /usr/local/lib/cii/1/ +# /usr/local/lib/cii/1/include +# +# libcii.a is placed in /usr/local/lib +# .h is placed in /usr/local/include/cii +# +do-install: + @${MKDIR} ${CIIDEST} + @${MKDIR} ${CIIDEST}/${CIIMAJOR} + @${MKDIR} ${CIIDEST}/${CIIMAJOR}/include + @${MKDIR} ${CIIDEST}/${CIIMAJOR}/examples +# @${MKDIR} ${PREFIX}/include/cii +## + ${INSTALL} ${COPY} ${CIIBUILD}/libcii.a ${CIIDEST}/${CIIMAJOR} + ${INSTALL_DATA} ${WRKSRC}/include/*.h ${CIIDEST}/${CIIMAJOR}/include +## + ${LN} -s ${CIIDEST}/${CIIMAJOR}/libcii.a ${PREFIX}/lib/libcii.a + ${LN} -s ${CIIDEST}/${CIIMAJOR}/include ${PREFIX}/include/cii +## + (for a in ${SAMPLES}; \ + do \ + ${INSTALL_PROGRAM} ${CIIBUILD}/$$a ${CIIDEST}/${CIIMAJOR}/examples; \ + done) +## + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/cii + @${MKDIR} ${PREFIX}/share/doc/cii/examples + @${MKDIR} ${PREFIX}/share/doc/cii/src + ${INSTALL_DATA} ${WRKSRC}/makefile ${PREFIX}/share/doc/cii + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/cii + ${INSTALL_DATA} ${WRKSRC}/history.html ${PREFIX}/share/doc/cii + ${INSTALL_DATA} ${WRKSRC}/CPYRIGHT ${PREFIX}/share/doc/cii + ${INSTALL_DATA} ${WRKSRC}/install.html ${PREFIX}/share/doc/cii + ${INSTALL_DATA} ${WRKSRC}/packing.lst ${PREFIX}/share/doc/cii + ${INSTALL_DATA} ${WRKSRC}/examples/* \ + ${PREFIX}/share/doc/cii/examples + ${INSTALL_DATA} ${WRKSRC}/src/* \ + ${PREFIX}/share/doc/cii/src +.endif + +.include <bsd.port.mk> |