View | Details | Raw Unified | Return to bug 148433
Collapse All | Expand All

(-)graphics/acidwarp/Makefile (-23 / +16 lines)
Lines 12-51 MASTER_SITES= ${MASTER_SITE_SUNSITE} Link Here
12
MASTER_SITE_SUBDIR=	apps/graphics/hacks/svgalib
12
MASTER_SITE_SUBDIR=	apps/graphics/hacks/svgalib
13
13
14
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=SVGAlib demo which displays trippy mathematical images in cycling colors
15
COMMENT=	SVGAlib demo which displays trippy mathematical images in cycling colors
16
16
17
LIB_DEPENDS=	vga.1:${PORTSDIR}/graphics/svgalib
17
LIB_DEPENDS=	vga.1:${PORTSDIR}/graphics/svgalib
18
18
19
ALL_TARGET=	acidwarp
20
DOCFILES=	README TODO Thanks
21
ONLY_FOR_ARCHS=	i386
19
ONLY_FOR_ARCHS=	i386
22
PLIST=		${WRKDIR}/pkg-plist
20
ALL_TARGET=	${PORTNAME}
23
REINPLACE_ARGS=	-i'' -E
21
WRKSRC=		${WRKDIR}/${PORTNAME}
24
WRKSRC=		${WRKDIR}/acidwarp
25
22
26
post-extract:
23
PLIST_FILES=	bin/acidwarp
27
	${RM} ${WRKSRC}/acidwarp
24
PORTDOCS=	README TODO Thanks
28
25
29
post-patch:
26
.include <bsd.port.pre.mk>
30
	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile
31
27
32
pre-install:
28
.if !defined(WITHOUT_SETUID)
33
	${ECHO_CMD} "bin/acidwarp" > ${PLIST}
29
BINMODE=	4555
34
.if !defined(NOPORTDOCS)
35
.for i in ${DOCFILES}
36
	${ECHO_CMD} -n "share/doc/acidwarp/" >> ${PLIST}
37
	${ECHO_CMD} ${i} >> ${PLIST}
38
.endfor
39
	${ECHO_CMD} "@dirrm share/doc/acidwarp" >> ${PLIST}
40
.endif
30
.endif
41
31
32
post-extract:	.SILENT
33
	${RM} -f ${WRKSRC}/acidwarp
34
42
do-install:
35
do-install:
43
	${INSTALL} -c -g wheel -o root -m 4755 ${WRKSRC}/acidwarp ${PREFIX}/bin
36
	${INSTALL_PROGRAM} ${WRKSRC}/acidwarp ${PREFIX}/bin
44
.if !defined(NOPORTDOCS)
37
.if !defined(NOPORTDOCS)
45
	${MKDIR} ${PREFIX}/share/doc/acidwarp
38
	${MKDIR} ${DOCSDIR}
46
.for i in ${DOCFILES}
39
.for f in ${PORTDOCS}
47
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/acidwarp
40
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
48
.endfor
41
.endfor
49
.endif
42
.endif
50
43
51
.include <bsd.port.mk>
44
.include <bsd.port.post.mk>
(-)graphics/acidwarp/files/patch-Makefile (-1 / +1 lines)
Lines 4-10 Link Here
4
-CC=gcc
4
-CC=gcc
5
-CFLAGS = -O2 -funroll-all-loops
5
-CFLAGS = -O2 -funroll-all-loops
6
+CC ?= gcc
6
+CC ?= gcc
7
+CFLAGS += -L%%PREFIX%%/lib -I%%PREFIX%%/include
7
+CFLAGS += -L$(LOCALBASE)/lib -I$(LOCALBASE)/include
8
 LFLAGS = -lvgagl -lvga
8
 LFLAGS = -lvgagl -lvga
9
 PROGS = acidwarp 
9
 PROGS = acidwarp 
10
 OSOURCES = bit_map.o palinit.o rolnfade.o lut.o
10
 OSOURCES = bit_map.o palinit.o rolnfade.o lut.o

Return to bug 148433