1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add staging support

- Convert to new LIB_DEPENDS format, options framework
This commit is contained in:
Pawel Pekala 2014-04-27 20:50:28 +00:00
parent 9298b2b523
commit 2056e14475
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352461

View File

@ -11,7 +11,7 @@ MASTER_SITE_SUBDIR= apps/graphics/hacks/svgalib
MAINTAINER= ports@FreeBSD.org
COMMENT= Sinus plasma, an SVGAlib demo
LIB_DEPENDS= vga.1:${PORTSDIR}/graphics/svgalib
LIB_DEPENDS= libvga.so:${PORTSDIR}/graphics/svgalib
ONLY_FOR_ARCHS= i386
@ -20,7 +20,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= bin/linplasma
PORTDOCS= README
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e "s:PI:M_PI:" ${WRKSRC}/linplasma.c
@${REINPLACE_CMD} -e \
@ -28,11 +29,9 @@ post-patch:
${WRKSRC}/linplasma.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/linplasma ${PREFIX}/bin
${CHMOD} +s ${PREFIX}/bin/linplasma
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
${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>