mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Redo CONFIGURE/MAKE_ARGS handling
This commit is contained in:
parent
1398ed57d7
commit
32ecce3c9f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=137057
4 changed files with 10 additions and 53 deletions
|
@ -14,21 +14,22 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
|
|||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= An IRC bot written in C for UNIX, Windows, and AmigaOS
|
||||
|
||||
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
||||
GNU_CONFIGURE= yes
|
||||
MAKE_ARGS+= CSPECIAL="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/share/${PORTNAME}
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
|
||||
${INSTALL_DATA} \
|
||||
${WRKSRC}/example/dancer.config \
|
||||
${WRKSRC}/example/dancer.users \
|
||||
${WRKSRC}/example/dancer.funcs \
|
||||
${WRKSRC}/example/dancer.explain \
|
||||
${PREFIX}/share/${PORTNAME}/
|
||||
@${MKDIR} ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/../${PORTNAME} ${PREFIX}/bin/
|
||||
cd ${WRKSRC}/../example && ${INSTALL_DATA} \
|
||||
dancer.config dancer.users \
|
||||
dancer.funcs dancer.explain ${DATADIR}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} > 500000
|
||||
LDFLAGS+= -lm
|
||||
MAKE_ARGS+= LDFLAGS="${LDFLAGS}"
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- Makefile Thu Jun 26 23:43:33 2003
|
||||
+++ Makefile.new Thu Jun 26 23:44:58 2003
|
||||
@@ -23,7 +23,7 @@
|
||||
PRG = dancer
|
||||
|
||||
all: src/config.h
|
||||
- (cd src; make debug)
|
||||
+ (cd src; make)
|
||||
|
||||
src/config.h:
|
||||
(cd src; ./configure; cd ..)
|
|
@ -1,15 +0,0 @@
|
|||
--- Makefile Sun Mar 18 03:58:38 2001
|
||||
+++ Makefile.new Fri Jan 3 00:51:20 2003
|
||||
@@ -26,10 +26,10 @@
|
||||
(cd src; make debug)
|
||||
|
||||
src/config.h:
|
||||
- (cd src; ./configure; cd ..; /bin/sh fplcheck)
|
||||
+ (cd src; ./configure; cd ..)
|
||||
|
||||
configure:
|
||||
- (cd src; ./configure; cd ..; /bin/sh fplcheck)
|
||||
+ (cd src; ./configure; cd ..)
|
||||
|
||||
install:
|
||||
/bin/sh installbot
|
|
@ -1,18 +0,0 @@
|
|||
--- src/Makefile.in Mon Nov 13 02:42:37 2000
|
||||
+++ src/Makefile.in.new Thu Jun 26 23:32:18 2003
|
||||
@@ -22,10 +22,11 @@
|
||||
|
||||
CSPECIAL =
|
||||
|
||||
-CC = @CC@
|
||||
-CFLAGS = @CPPFLAGS@ @CFLAGS@ @DEFS@ $(CSPECIAL)
|
||||
-LDFLAGS = @LDFLAGS@
|
||||
-LIBS = @LIBS@
|
||||
+CC ?= @CC@
|
||||
+CFLAGS ?= @CFLAGS@
|
||||
+CFLAGS += @DEFS@ $(CSPECIAL)
|
||||
+LDFLAGS ?= @LDFLAGS@
|
||||
+LIBS ?= @LIBS@
|
||||
|
||||
RM = 'rm'
|
||||
|
Loading…
Add table
Reference in a new issue