aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/acidwarp
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2010-07-10 19:04:42 +0800
committermakc <makc@FreeBSD.org>2010-07-10 19:04:42 +0800
commit34933858c2b6670477e4fe336de27307f1f28ae9 (patch)
treeb991fafc30e4f99813b156d245fd15b5334a8a1e /graphics/acidwarp
parent3f2442b8fc50791977cbc804dc88d2ee0534c0c8 (diff)
downloadfreebsd-ports-gnome-34933858c2b6670477e4fe336de27307f1f28ae9.tar.gz
freebsd-ports-gnome-34933858c2b6670477e4fe336de27307f1f28ae9.tar.zst
freebsd-ports-gnome-34933858c2b6670477e4fe336de27307f1f28ae9.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>
Diffstat (limited to 'graphics/acidwarp')
-rw-r--r--graphics/acidwarp/Makefile41
-rw-r--r--graphics/acidwarp/files/patch-Makefile2
-rw-r--r--graphics/acidwarp/pkg-descr2
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