[Midnightbsd-cvs] mports [16568] trunk/Mk: add desthack.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Aug 23 08:54:29 EDT 2014


Revision: 16568
          http://svnweb.midnightbsd.org/mports/?rev=16568
Author:   laffer1
Date:     2014-08-23 08:54:27 -0400 (Sat, 23 Aug 2014)
Log Message:
-----------
add desthack.

Modified Paths:
--------------
    trunk/Mk/bsd.mport.mk

Added Paths:
-----------
    trunk/Mk/extensions/desthack.mk

Modified: trunk/Mk/bsd.mport.mk
===================================================================
--- trunk/Mk/bsd.mport.mk	2014-08-23 12:44:48 UTC (rev 16567)
+++ trunk/Mk/bsd.mport.mk	2014-08-23 12:54:27 UTC (rev 16568)
@@ -351,7 +351,7 @@
 # This is the order that we used before the extensions where refactored. 
 # in the future if things could be fixed to work when loaded alphabetacally, then
 # we could go back to the above approach.
-_ALL_EXT=	charsetfix pathfix pkgconfig compiler kmod uidfix \
+_ALL_EXT=	charsetfix desthack pathfix pkgconfig compiler kmod uidfix \
 		linux_rpm linux_apps xorg fortran \
 		gcc fmake fpc gmake bison local perl5 openssl \
 		apache autotools bdb cmake display dos2unix efl emacs fuse \

Added: trunk/Mk/extensions/desthack.mk
===================================================================
--- trunk/Mk/extensions/desthack.mk	                        (rev 0)
+++ trunk/Mk/extensions/desthack.mk	2014-08-23 12:54:27 UTC (rev 16568)
@@ -0,0 +1,19 @@
+# $MidnightBSD$
+#
+# Handle gnu configure that does not properly support DESTDIR
+#
+# Feature:	desthack
+# Usage:	USES=desthack
+# Valid ARGS:	none
+#
+
+.if !defined(_INCLUDE_USES_DESTHACK_MK)
+_INCLUDE_USES_DESTHACK_MK=	yes
+
+.if defined(_desthack_ARGS)
+IGNORE=	USES=desthack does not require args
+.endif
+
+GNU_CONFIGURE_PREFIX=	\$${${DESTDIRNAME}}${PREFIX}
+GNU_CONFIGURE_MANPREFIX=	\$${${DESTDIRNAME}}${MANPREFIX}
+.endif



More information about the Midnightbsd-cvs mailing list