mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
f0a1969d34
is better studied o Turn PORTCOMMENT variable in Makefile back into pkg-comment files Approved by: kris (portmgr hat), portmgr, re (silence)
70 lines
1.9 KiB
Makefile
70 lines
1.9 KiB
Makefile
# New ports collection makefile for: libcii
|
|
# Date created: 21 April 1998
|
|
# Whom: J Han <hjh@photino.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libcii
|
|
PORTVERSION= 1.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.cs.princeton.edu/pub/packages/cii/
|
|
DISTNAME= cii11
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
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}"
|
|
|
|
CIIBUILD= ${WRKDIR}/${PKGNAME}
|
|
CIIMAJOR= 1
|
|
CIIDEST= ${PREFIX}/lib/cii
|
|
|
|
SAMPLES= double calc ids mpcalc wf xref cref iref kref \
|
|
idents words basename dirname sort spin sieve
|
|
|
|
pre-build:
|
|
@${MKDIR} ${CIIBUILD}
|
|
@${MKDIR} ${CIIBUILD}/include
|
|
@${CP} ${WRKDIR}/include/*.h ${CIIBUILD}/include
|
|
|
|
# ${PREFIX}/lib/cii/${CIIMAJOR}/
|
|
# ${PREFIX}/lib/cii/${CIIMAJOR}/include
|
|
#
|
|
# libcii.a is placed in ${PREFIX}/lib
|
|
# .h is placed in ${PREFIX}/include/cii
|
|
#
|
|
do-install:
|
|
@${MKDIR} ${CIIDEST}
|
|
@${MKDIR} ${CIIDEST}/${CIIMAJOR}
|
|
@${MKDIR} ${CIIDEST}/${CIIMAJOR}/include
|
|
@${MKDIR} ${CIIDEST}/${CIIMAJOR}/examples
|
|
##
|
|
${INSTALL_DATA} ${CIIBUILD}/libcii.a ${CIIDEST}/${CIIMAJOR}
|
|
${INSTALL_DATA} ${WRKSRC}/include/*.h ${CIIDEST}/${CIIMAJOR}/include
|
|
##
|
|
${LN} -sf ${CIIDEST}/${CIIMAJOR}/libcii.a ${PREFIX}/lib/libcii.a
|
|
${LN} -sf ${CIIDEST}/${CIIMAJOR}/include ${PREFIX}/include/cii
|
|
##
|
|
.for a in ${SAMPLES}
|
|
${INSTALL_PROGRAM} ${CIIBUILD}/${a} ${CIIDEST}/${CIIMAJOR}/examples
|
|
.endfor
|
|
##
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${PREFIX}/share/doc/cii
|
|
@${MKDIR} ${PREFIX}/share/doc/cii/examples
|
|
@${MKDIR} ${PREFIX}/share/doc/cii/src
|
|
.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
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|