summaryrefslogtreecommitdiff
path: root/doc/Makefile-example
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2018-05-21 18:35:22 +0000
committerwiz <wiz@pkgsrc.org>2018-05-21 18:35:22 +0000
commit7296c715b3a0242fef3a775229b9121c2efaff1e (patch)
tree130afd4afb8ace539da554ebe05b039db6655d2a /doc/Makefile-example
parent5b4b792764a3d5dfd498794d87cd17508c7c96db (diff)
downloadpkgsrc-7296c715b3a0242fef3a775229b9121c2efaff1e.tar.gz
doc/Makefile-example: reorder targets
buildlink3.mk file inclusions come last.
Diffstat (limited to 'doc/Makefile-example')
-rw-r--r--doc/Makefile-example20
1 files changed, 8 insertions, 12 deletions
diff --git a/doc/Makefile-example b/doc/Makefile-example
index 91042fb6f30..7916ce76ee1 100644
--- a/doc/Makefile-example
+++ b/doc/Makefile-example
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile-example,v 1.24 2016/01/29 23:10:18 rillig Exp $
+# $NetBSD: Makefile-example,v 1.25 2018/05/21 18:35:22 wiz Exp $
# First paragraph - distfile and binary package data
# DISTNAME PKGNAME PKGREVISION CATEGORIES MASTER_SITES
@@ -69,17 +69,6 @@ CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX}
PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
BUILD_DEFS+= GNU_PROGRAM_PREFIX
-# buildlink3 files should come after all variables have been set,
-# sorted alphabetically.
-.include "../../devel/gettext-lib/buildlink3.mk"
-
-# The section that handles pthreads should come after all other buildlink3
-# files have been included.
-.include "../../mk/pthread.buildlink3.mk"
-.if ${PTHREAD_TYPE} == "none"
-CONFIGURE_ARGS+= --disable-threads
-.endif
-
# Makefile targets should occur after all the other definitions in the file
post-install:
${CHMOD} g-s ${PREFIX}/bin/${GNU_PROGRAM_PREFIX}make
@@ -90,5 +79,12 @@ post-install:
${LN} -s ${GNU_PROGRAM_PREFIX}make ${PREFIX}/bin/gmake
.endif
+# buildlink3 files should come after all variables have been set,
+# sorted alphabetically.
+.include "../../devel/gettext-lib/buildlink3.mk"
+
+# Files from mk/ should be after other buildlink3 files have been included.
+.include "../../mk/pthread.buildlink3.mk"
+
# Finally, please include bsd.pkg.mk
.include "../../mk/bsd.pkg.mk"