- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
36 lines
837 B
Makefile
36 lines
837 B
Makefile
# Created by: trevor
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= linplasma
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SUNSITE/apps/graphics/hacks/svgalib
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Sinus plasma, an SVGAlib demo
|
|
|
|
LIB_DEPENDS= libvga.so:${PORTSDIR}/graphics/svgalib
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
ALL_TARGET= ${PORTNAME}
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
PLIST_FILES= bin/linplasma
|
|
PORTDOCS= README
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s:PI:M_PI:" ${WRKSRC}/linplasma.c
|
|
@${REINPLACE_CMD} -e \
|
|
"s:(int)palptr = (int:palptr = (unsigned char *:" \
|
|
${WRKSRC}/linplasma.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/linplasma ${STAGEDIR}${PREFIX}/bin
|
|
${CHMOD} +s ${STAGEDIR}${PREFIX}/bin/linplasma
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|