Set PREFIX in the build target. Suggested by John Fieber.
This commit is contained in:
parent
a1f1a47dfc
commit
661bef7849
@ -3,7 +3,7 @@
|
||||
# bsd.port.mk - 940820 Jordan K. Hubbard.
|
||||
# This file is in the public domain.
|
||||
#
|
||||
# $Id: bsd.port.mk,v 1.5 1995/01/22 20:37:25 gary Exp $
|
||||
# $Id: bsd.port.mk,v 1.105 1995/01/22 20:40:48 gpalmer Exp $
|
||||
#
|
||||
# Please view me with 4 column tabs!
|
||||
|
||||
@ -98,11 +98,11 @@
|
||||
# install - Install the results of a build.
|
||||
# reinstall - Install the results of a build, ignoring "already installed"
|
||||
# flag.
|
||||
# package - Create a package from a build.
|
||||
# package - Create a package from an _installed_ port.
|
||||
# describe - Try to generate a one-line description for each port for
|
||||
# use in INDEX files and the like.
|
||||
# checksum - Use files/md5 to ensure that your distfiles are valid
|
||||
# makesum - Generate files/md5
|
||||
# makesum - Generate files/md5 (only do this for your own ports!)
|
||||
#
|
||||
# Default sequence for "all" is: fetch extract configure build
|
||||
|
||||
@ -382,9 +382,9 @@ ${BUILD_COOKIE}:
|
||||
@echo "===> Building for ${DISTNAME}"
|
||||
@${MAKE} ${.MAKEFLAGS} pre-build
|
||||
.if defined(USE_GMAKE)
|
||||
@(cd ${WRKSRC}; ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
|
||||
@(cd ${WRKSRC}; ${GMAKE} PREFIX=${PREFIX} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
|
||||
.else defined(USE_GMAKE)
|
||||
@(cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
|
||||
@(cd ${WRKSRC}; ${MAKE} PREFIX=${PREFIX} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
|
||||
.endif
|
||||
@if [ -f ${SCRIPTDIR}/post-build ]; then \
|
||||
env CURDIR=${.CURDIR} DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} \
|
||||
|
Loading…
Reference in New Issue
Block a user