diff options
author | kris <kris@FreeBSD.org> | 2003-10-26 23:28:19 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-10-26 23:28:19 +0000 |
commit | 5242c4214f839656cd38d2e6b1853d56622a2edf (patch) | |
tree | d7977a80cace4589f8d4c984af2456e85717ef0e | |
parent | 03c67e3d7f99e3ffb1433d91704b5a6646350ba9 (diff) | |
download | FreeBSD-ports-5242c4214f839656cd38d2e6b1853d56622a2edf.zip FreeBSD-ports-5242c4214f839656cd38d2e6b1853d56622a2edf.tar.gz |
portlint ($() -> ${}, DISTFILES -> DISTNAME, set WRKSRC, remove unused
CC/CFLAGS defaults)
-rw-r--r-- | astro/stars/Makefile | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/astro/stars/Makefile b/astro/stars/Makefile index e6799c0..c8050bc 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> |