mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
Use MAKE_ARGS
Approved by: maintainers
This commit is contained in:
parent
38582511ca
commit
61dc2c2a2d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145347
@ -13,12 +13,8 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
MAINTAINER= chuck@pkix.net
|
||||
COMMENT= Accrete is a physical simulation of solar system planet formation
|
||||
|
||||
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" PREFIX=${PREFIX} \
|
||||
CDEBUG="" COPT=""
|
||||
PLIST_FILES= bin/accrete
|
||||
USE_REINPLACE= yes
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
|
||||
s|%%CC%%|${CC}|g ; \
|
||||
s|%%CFLAGS%%|${CFLAGS}|g' ${WRKSRC}/Makefile
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,25 +0,0 @@
|
||||
--- Makefile.org Tue Jul 29 14:53:03 2003
|
||||
+++ Makefile Tue Jul 29 14:53:37 2003
|
||||
@@ -7,17 +7,17 @@
|
||||
INSTALL = /usr/bin/install -s
|
||||
|
||||
# installation prefix
|
||||
-PREFIX = /usr/local
|
||||
+PREFIX = %%PREFIX%%
|
||||
|
||||
# Compiler flags
|
||||
-CC ?= cc
|
||||
-CDEBUG = -g -O -Wall
|
||||
-COPT = -O3 -ffast-math
|
||||
+CC = %%CC%%
|
||||
+CDEBUG =
|
||||
+COPT =
|
||||
|
||||
# Enable this to greatly increase the verbosity of the output
|
||||
# DEFS = -DDEBUG -DVERBOSE
|
||||
|
||||
-CFLAGS ?= -pipe $(CDEBUG) $(DEFS)
|
||||
+CFLAGS = %%CFLAGS%%
|
||||
|
||||
# Any libraries that are needed...
|
||||
LDFLAGS = -lm
|
@ -17,6 +17,10 @@ COMMENT= Displays the phase of the moon
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
USE_REINPLACE= yes
|
||||
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" \
|
||||
BINDIR=${LOCALBASE}/bin \
|
||||
MANDIR=${MANPREFIX}/man/man1
|
||||
|
||||
MAN1= phoon.1
|
||||
PLIST_FILES= bin/phoon
|
||||
|
||||
|
@ -1,33 +0,0 @@
|
||||
--- Makefile.orig Thu May 15 09:07:10 2003
|
||||
+++ Makefile Thu May 15 09:08:24 2003
|
||||
@@ -1,13 +1,13 @@
|
||||
# Makefile for phoon
|
||||
|
||||
-BINDIR = /usr/local/bin
|
||||
-MANDIR = /usr/local/man/man1
|
||||
+BINDIR = ${PREFIX}/bin
|
||||
+MANDIR = ${MANPREFIX}/man/man1
|
||||
|
||||
DEFINES = -DOS_BSD
|
||||
#DEFINES = -DOS_SYSV
|
||||
|
||||
-CC = gcc
|
||||
-CFLAGS = -O $(DEFINES)
|
||||
+CC ?= gcc
|
||||
+CFLAGS ?= ${CFLAGS}
|
||||
|
||||
LDFLAGS = -s
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
all: phoon
|
||||
|
||||
phoon: phoon.o date_parse.o astro.o
|
||||
- $(CC) $(LDFLAGS) -o phoon phoon.o date_parse.o astro.o -lm
|
||||
+ ${CC} $(LDFLAGS) -o phoon phoon.o date_parse.o astro.o -lm
|
||||
|
||||
.c.o:
|
||||
- $(CC) $(CFLAGS) -c $<
|
||||
+ ${CC} $(CFLAGS) -c $<
|
||||
|
||||
date_parse.o: date_parse.h
|
||||
astro.o: astro.h
|
Loading…
Reference in New Issue
Block a user