diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2010-07-10 11:04:42 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2010-07-10 11:04:42 +0000 |
commit | 8c9977d410c1726ae247dbb723a3591e4a4a116c (patch) | |
tree | 15a68d7e5451b7a939025b9d9b62d373f699d6ee /graphics | |
parent | fe3d19d770872f25bf42764d8cf495a54a235cd3 (diff) | |
download | ports-8c9977d410c1726ae247dbb723a3591e4a4a116c.tar.gz ports-8c9977d410c1726ae247dbb723a3591e4a4a116c.zip |
respect LOCALBASE in CFLAGS
prefer PLIST_FILES and PORTDOCS to `dynamic plist'
use BINMODE rather than using INSTALL directly
PR: ports/148433
Submitted by: Anonymous <swell.k at gmail.com>
Notes
Notes:
svn path=/head/; revision=257605
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/acidwarp/Makefile | 41 | ||||
-rw-r--r-- | graphics/acidwarp/files/patch-Makefile | 2 | ||||
-rw-r--r-- | graphics/acidwarp/pkg-descr | 2 |
3 files changed, 19 insertions, 26 deletions
diff --git a/graphics/acidwarp/Makefile b/graphics/acidwarp/Makefile index ee34355741ef..a1d4494e1e2c 100644 --- a/graphics/acidwarp/Makefile +++ b/graphics/acidwarp/Makefile @@ -12,40 +12,35 @@ MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= apps/graphics/hacks/svgalib MAINTAINER= ports@FreeBSD.org -COMMENT=SVGAlib demo which displays trippy mathematical images in cycling colors +COMMENT= SVGAlib demo which displays trippy mathematical images in cycling colors LIB_DEPENDS= vga.1:${PORTSDIR}/graphics/svgalib -ALL_TARGET= acidwarp -DOCFILES= README TODO Thanks ONLY_FOR_ARCHS= i386 -PLIST= ${WRKDIR}/pkg-plist -REINPLACE_ARGS= -i'' -E -WRKSRC= ${WRKDIR}/acidwarp +ALL_TARGET= ${PORTNAME} +WRKSRC= ${WRKDIR}/${PORTNAME} -post-extract: - ${RM} ${WRKSRC}/acidwarp +PLIST_FILES= bin/acidwarp +PORTDOCS= README TODO Thanks -post-patch: - @${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile +OPTION= SETUID "Install with setuid bit set" on -pre-install: - ${ECHO_CMD} "bin/acidwarp" > ${PLIST} -.if !defined(NOPORTDOCS) -.for i in ${DOCFILES} - ${ECHO_CMD} -n "share/doc/acidwarp/" >> ${PLIST} - ${ECHO_CMD} ${i} >> ${PLIST} -.endfor - ${ECHO_CMD} "@dirrm share/doc/acidwarp" >> ${PLIST} +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_SETUID) +BINMODE= 4555 .endif +post-extract: + ${RM} -f ${WRKSRC}/acidwarp + do-install: - ${INSTALL} -c -g wheel -o root -m 4755 ${WRKSRC}/acidwarp ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/acidwarp ${PREFIX}/bin .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/acidwarp -.for i in ${DOCFILES} - ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/acidwarp + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} .endfor .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/graphics/acidwarp/files/patch-Makefile b/graphics/acidwarp/files/patch-Makefile index f4e2459dd2a9..0b13b315a329 100644 --- a/graphics/acidwarp/files/patch-Makefile +++ b/graphics/acidwarp/files/patch-Makefile @@ -4,7 +4,7 @@ -CC=gcc -CFLAGS = -O2 -funroll-all-loops +CC ?= gcc -+CFLAGS += -L%%PREFIX%%/lib -I%%PREFIX%%/include ++CFLAGS += -L$(LOCALBASE)/lib -I$(LOCALBASE)/include LFLAGS = -lvgagl -lvga PROGS = acidwarp OSOURCES = bit_map.o palinit.o rolnfade.o lut.o diff --git a/graphics/acidwarp/pkg-descr b/graphics/acidwarp/pkg-descr index c6c5bbef8bf3..3c5f859d8166 100644 --- a/graphics/acidwarp/pkg-descr +++ b/graphics/acidwarp/pkg-descr @@ -6,5 +6,3 @@ After exiting the program, you must switch consoles before the display will be usable again. WWW: http://www.noah.org/acidwarp/index.html - -Trevor Johnson |