2007-07-02 17:55:31 +02:00
|
|
|
# New ports collection makefile for: LinPlasma
|
2000-10-22 13:47:59 +02:00
|
|
|
# Date created: 2000-10-22
|
2007-07-02 17:55:31 +02:00
|
|
|
# Whom: Trevor Johnson <trevor@FreeBSD.org>
|
2000-10-22 13:47:59 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= linplasma
|
|
|
|
PORTVERSION= 1.0
|
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= apps/graphics/hacks/svgalib
|
|
|
|
|
2005-01-14 12:11:37 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-01 15:34:33 +01:00
|
|
|
COMMENT= Sinus plasma, an SVGAlib demo
|
2000-10-22 13:47:59 +02:00
|
|
|
|
|
|
|
LIB_DEPENDS= vga.1:${PORTSDIR}/graphics/svgalib
|
|
|
|
|
|
|
|
ALL_TARGET= ${PORTNAME}
|
|
|
|
DOCFILES= README GPL
|
|
|
|
DOCDIR= share/doc/${PORTNAME}/
|
2003-10-12 07:12:46 +02:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2000-10-22 13:47:59 +02:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
post-patch:
|
2002-11-09 00:03:48 +01:00
|
|
|
@${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e "s:PI:M_PI:g" ${WRKSRC}/linplasma.c
|
2007-07-02 17:55:31 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
"s:(int)palptr = (int:palptr = (unsigned char *:" \
|
|
|
|
${WRKSRC}/linplasma.c
|
2000-10-22 13:47:59 +02:00
|
|
|
|
|
|
|
pre-install:
|
2002-01-29 11:53:27 +01:00
|
|
|
${ECHO_CMD} "bin/linplasma" > ${PLIST}
|
2000-10-22 13:47:59 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.for i in ${DOCFILES}
|
2002-01-29 11:53:27 +01:00
|
|
|
${ECHO_CMD} -n ${DOCDIR} >> ${PLIST}
|
|
|
|
${ECHO_CMD} ${i} >> ${PLIST}
|
2000-10-22 13:47:59 +02:00
|
|
|
.endfor
|
2002-01-29 11:53:27 +01:00
|
|
|
${ECHO_CMD} -n "@dirrm " >> ${PLIST}
|
|
|
|
${ECHO_CMD} ${DOCDIR} >> ${PLIST}
|
2000-10-22 13:47:59 +02:00
|
|
|
.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>
|