mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
bc07afc1c2
the ECHO macro is set to "echo" by default, but it is set to "true" if make(1) is invoked with the -s option while ECHO_CMD is always set to the echo command. Use command macros where appropriate.
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# New ports collection makefile for: linplasma
|
|
# Date created: 2000-10-22
|
|
# Whom: trevor
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= linplasma
|
|
PORTVERSION= 1.0
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
MASTER_SITE_SUBDIR= apps/graphics/hacks/svgalib
|
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
|
|
|
LIB_DEPENDS= vga.1:${PORTSDIR}/graphics/svgalib
|
|
|
|
ALL_TARGET= ${PORTNAME}
|
|
DOCFILES= README GPL
|
|
DOCDIR= share/doc/${PORTNAME}/
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
post-patch:
|
|
@${PERL} -pi -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/Makefile
|
|
@${PERL} -pi -e "s:PI:M_PI:g" ${WRKSRC}/linplasma.c
|
|
|
|
pre-install:
|
|
${ECHO_CMD} "bin/linplasma" > ${PLIST}
|
|
.if !defined(NOPORTDOCS)
|
|
.for i in ${DOCFILES}
|
|
${ECHO_CMD} -n ${DOCDIR} >> ${PLIST}
|
|
${ECHO_CMD} ${i} >> ${PLIST}
|
|
.endfor
|
|
${ECHO_CMD} -n "@dirrm " >> ${PLIST}
|
|
${ECHO_CMD} ${DOCDIR} >> ${PLIST}
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL} -c -g wheel -o root -m 4755 ${WRKSRC}/linplasma ${PREFIX}/bin
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/${DOCDIR}
|
|
.for i in ${DOCFILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|