diff Makefile @ 28:1342c5fc9960

FIX: Honor PREFIX properly: as recommended in the porter's handbook test for required files with LOCALBASE and not PREFIX. Now the ports builds properly with an altered PREFIX: make clean; make PREFIX=/foo/bar package
author Franz Glasner <hg@dom66.de>
date Sun, 24 Sep 2017 21:56:37 +0200
parents 99e00e5a3823
children 3ee3540aa2b0
line wrap: on
line diff
--- a/Makefile	Sun Sep 24 17:56:29 2017 +0200
+++ b/Makefile	Sun Sep 24 21:56:37 2017 +0200
@@ -30,7 +30,7 @@
 MAKE_ENV+=	UWSGI_PROFILE_OVERRIDE=plugin_build_dir=${STAGEDIR}${PREFIX}/${PLUGIN_DIR};plugin_dir=${PREFIX}/${PLUGIN_DIR} PYTHON=${PYTHON_CMD}
 
 UWSGI_NAME=	uwsginl
-UWSGI_PATH=	${PREFIX}/bin/${UWSGI_NAME}
+UWSGI_PATH=	${LOCALBASE}/bin/${UWSGI_NAME}
 PLUGIN_DIR=	lib/${UWSGI_NAME}/plugins
 
 # The name of the plugin to be created (to eventually  distingush py2 and py3)