aboutsummaryrefslogtreecommitdiff
path: root/graphics/linplasma
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2007-07-02 16:07:07 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2007-07-02 16:07:07 +0000
commit5ab5b44616bf7b26f4aaca51bd4ba7d0f0f48199 (patch)
treea1647c9c8cc951939b892d82831a638171348aec /graphics/linplasma
parentc01c9255e69b84775fdbc4f5464fe5a40e11595d (diff)
downloadports-5ab5b44616bf7b26f4aaca51bd4ba7d0f0f48199.tar.gz
ports-5ab5b44616bf7b26f4aaca51bd4ba7d0f0f48199.zip
Notes
Diffstat (limited to 'graphics/linplasma')
-rw-r--r--graphics/linplasma/Makefile32
-rw-r--r--graphics/linplasma/files/patch-Makefile2
2 files changed, 11 insertions, 23 deletions
diff --git a/graphics/linplasma/Makefile b/graphics/linplasma/Makefile
index 266a422d9144..0bd237353940 100644
--- a/graphics/linplasma/Makefile
+++ b/graphics/linplasma/Makefile
@@ -7,6 +7,7 @@
PORTNAME= linplasma
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= apps/graphics/hacks/svgalib
@@ -16,38 +17,25 @@ COMMENT= Sinus plasma, an SVGAlib demo
LIB_DEPENDS= vga.1:${PORTSDIR}/graphics/svgalib
-ALL_TARGET= ${PORTNAME}
-DOCFILES= README GPL
-DOCDIR= share/doc/${PORTNAME}/
ONLY_FOR_ARCHS= i386
-PLIST= ${WRKDIR}/pkg-plist
+
+ALL_TARGET= ${PORTNAME}
WRKSRC= ${WRKDIR}/${PORTNAME}
+PLIST_FILES= bin/linplasma
+PORTDOCS= README
post-patch:
- @${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/Makefile
- @${REINPLACE_CMD} -e "s:PI:M_PI:g" ${WRKSRC}/linplasma.c
+ @${REINPLACE_CMD} -e "s:PI:M_PI:" ${WRKSRC}/linplasma.c
@${REINPLACE_CMD} -e \
"s:(int)palptr = (int:palptr = (unsigned char *:" \
${WRKSRC}/linplasma.c
-pre-install:
- ${ECHO_CMD} "bin/linplasma" > ${PLIST}
-.if !defined(NOPORTDOCS)
-.for i in ${DOCFILES}
- ${ECHO_CMD} -n ${DOCDIR} >> ${PLIST}
- ${ECHO_CMD} ${i} >> ${PLIST}
-.endfor
- ${ECHO_CMD} -n "@dirrm " >> ${PLIST}
- ${ECHO_CMD} ${DOCDIR} >> ${PLIST}
-.endif
-
do-install:
- ${INSTALL} -c -g wheel -o root -m 4755 ${WRKSRC}/linplasma ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/linplasma ${PREFIX}/bin
+ ${CHMOD} +s ${PREFIX}/bin/linplasma
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/${DOCDIR}
-.for i in ${DOCFILES}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}
-.endfor
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/graphics/linplasma/files/patch-Makefile b/graphics/linplasma/files/patch-Makefile
index da0bc0f23e4b..393430b3ab4e 100644
--- a/graphics/linplasma/files/patch-Makefile
+++ b/graphics/linplasma/files/patch-Makefile
@@ -9,7 +9,7 @@
-# optimize a lot
-CFLAGS=-O3
-+CFLAGS += -L%%PREFIX%%/lib -I%%PREFIX%%/include
++CFLAGS += -L${LOCALBASE}/lib -I${LOCALBASE}/include
LIBS=-lvga -lvgagl -lm