mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
Fix build with custom PREFIX/LOCALBASE
Reported by: QAT Approved by: wxs (mentor)
This commit is contained in:
parent
f0ba0a2fe4
commit
8edd131358
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=237054
@ -18,6 +18,9 @@ PLIST_FILES= bin/bounix
|
||||
WRKSRC= ${WRKDIR}/bo
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/Makefile.in
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${PREFIX}/bin/bounix
|
||||
|
||||
|
@ -19,8 +19,8 @@ MAN1= etunnel.1
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|%%PREFIX%%|${PREFIX}|g ; \
|
||||
s|CC=gcc|CC?=gcc|g ; \
|
||||
's|CC=gcc|CC?=gcc|g ; \
|
||||
s|PREFIX=|PREFIX?=|g ; \
|
||||
s|CFLAGS=|CFLAGS+=|g' ${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- Makefile.orig Wed Feb 9 07:18:28 2000
|
||||
+++ Makefile Thu Mar 2 00:35:42 2000
|
||||
--- Makefile.orig 2000-02-09 10:18:28.000000000 -0500
|
||||
+++ Makefile 2009-06-30 11:47:12.000000000 -0400
|
||||
@@ -2,11 +2,12 @@
|
||||
## Customizable Shit #######################################
|
||||
############################################################
|
||||
@ -24,3 +24,14 @@
|
||||
LIBS = -pthread -lncurses
|
||||
|
||||
# Solaris
|
||||
@@ -55,8 +56,8 @@
|
||||
rm -rf $(OUTNAME)
|
||||
|
||||
install:
|
||||
- install -c -s $(OUTNAME) /usr/local/sbin
|
||||
- install -c ppptraf.conf.sample /usr/local/etc
|
||||
+ install -c -s $(OUTNAME) $(PREFIX)/sbin
|
||||
+ install -c ppptraf.conf.sample $(PREFIX)/etc
|
||||
|
||||
|
||||
depend:
|
||||
|
Loading…
Reference in New Issue
Block a user