aboutsummaryrefslogtreecommitdiff
path: root/astro/stars
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-10-26 23:28:19 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-10-26 23:28:19 +0000
commit7953e7162a3ab2e8543a4e78606ec429e2b31af8 (patch)
treef0a4363f74e5debc64d74ce0ae7525bf780ad054 /astro/stars
parent2c8b0494f30dbe40e31d96d6e16e8a55599e6ed7 (diff)
downloadports-7953e7162a3ab2e8543a4e78606ec429e2b31af8.tar.gz
ports-7953e7162a3ab2e8543a4e78606ec429e2b31af8.zip
Notes
Diffstat (limited to 'astro/stars')
-rw-r--r--astro/stars/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/astro/stars/Makefile b/astro/stars/Makefile
index e6799c030e3f..c8050bc91621 100644
--- a/astro/stars/Makefile
+++ b/astro/stars/Makefile
@@ -10,22 +10,20 @@ PORTVERSION= 1.0
CATEGORIES= astro
MASTER_SITES= ftp://ftp.planetmirror.com/pub/hpux/X11/Demos/stars-1.0/ \
http://public.www.planetmirror.com/pub/hpux/X11/Demos/stars-1.0/
-DISTFILES= stars-1.0-ss-11.00.tar.gz
+DISTNAME= stars-1.0-ss-11.00
MAINTAINER= ports@FreeBSD.org
COMMENT= Star field demo
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_X_PREFIX= yes
-CC?= cc
-CFLAGS?= -O2
-
do-build:
- $(CC) -I$(PREFIX)/include $(CFLAGS) -c $(WRKSRC)/xwin.c -o $(WRKSRC)/xwin.o
- $(CC) -I$(PREFIX)/include $(CFLAGS) -c $(WRKSRC)/main.c -o $(WRKSRC)/main.o
- $(CC) $(WRKSRC)/main.o $(WRKSRC)/xwin.o -L$(PREFIX)/lib -lX11 -lm -o $(WRKSRC)/stars
+ ${CC} -I${PREFIX}/include ${CFLAGS} -c ${WRKSRC}/xwin.c -o ${WRKSRC}/xwin.o
+ ${CC} -I${PREFIX}/include ${CFLAGS} -c ${WRKSRC}/main.c -o ${WRKSRC}/main.o
+ ${CC} ${WRKSRC}/main.o ${WRKSRC}/xwin.o -L${PREFIX}/lib -lX11 -lm -o ${WRKSRC}/stars
do-install:
- $(INSTALL_PROGRAM) $(WRKSRC)/stars $(PREFIX)/bin/stars
+ ${INSTALL_PROGRAM} ${WRKSRC}/stars ${PREFIX}/bin/stars
.include <bsd.port.mk>